Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal cursor does not display correctly when cursor type is underline, verticalBar #165

Open
jooy2 opened this issue Mar 9, 2023 · 2 comments
Assignees

Comments

@jooy2
Copy link

jooy2 commented Mar 9, 2023

image

As of the latest version of xterm.dart 3.4.1, the cursor does not seem to display correctly in the terminal if the cursorType is TerminalCursorType.verticalBar or TerminalCursorType.underline rather than block.

TerminalView(
    Terminal(
        maxLines: 10000,
        onResize: (width, height, pixelWidth, pixelHeight) {
            // ...
        },
        onOutput: (data) {
          / ...
        }),
      focusNode: _focusNode,
      padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
      cursorType: TerminalCursorType.verticalBar,
      textStyle: TerminalStyle(fontFamily: 'monospace', fontSize: 14),
);

However, if you set the font size to large(e.g. fontSize: 30), you may notice that the cursor appears in the wrong place in the terminal (at the top, as shown in the photo below).

image

This problem does not occur if the terminal cursor is of type block.

@mr-wolf-gb
Copy link

i have the same problem, also when typing with mobile keyboard and hint the enter button text replicate also auto correction problem
android device

@xtyxtyx xtyxtyx self-assigned this Mar 21, 2023
@connectTimeout
Copy link

@xtyxtyx
image
Big guy, look at this problem, I used to use it so well, but not today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants