xterm.dart icon indicating copy to clipboard operation
xterm.dart copied to clipboard

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

Open jooy2 opened this issue 2 years ago • 2 comments

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.

jooy2 avatar Mar 09 '23 01:03 jooy2

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

mr-wolf-gb avatar Mar 21 '23 08:03 mr-wolf-gb

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

connectTimeout avatar Oct 19 '23 04:10 connectTimeout