Skip to content

Commit

Permalink
Merge pull request #2592 from unxed/comment_fix
Browse files Browse the repository at this point in the history
- remove irrelevant comment
  • Loading branch information
elfmz authored Dec 23, 2024
2 parents 7c68a7f + e53f336 commit 64fec5d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions WinPort/src/Backend/TTY/TTYOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@ void TTYOutput::Flush()

void TTYOutput::ChangeCursorHeight(unsigned int height)
{
// See also:
// https://unix.stackexchange.com/questions/49485/escape-code-to-change-cursor-shape
// https://github.com/kovidgoyal/kitty/issues/715

if (_far2l_tty) {
StackSerializer stk_ser;
stk_ser.PushNum(UCHAR(height));
Expand All @@ -400,17 +404,6 @@ void TTYOutput::ChangeCursorHeight(unsigned int height)
// Available sizes are from 2 to 8
Format(ESC "[?2c");

/**
Same for FreeBSD:
https://man.freebsd.org/cgi/man.cgi?query=screen
E[=s;eC Set custom cursor shape, where
s is the starting and e is the ending
scanlines of the cursor
**/

} else {
Format(ESC "[3 q"); // Blink Underline
Format(ESC "]50;CursorShape=2\x07"); // Same for iTerm2
Expand Down

0 comments on commit 64fec5d

Please sign in to comment.