Skip to content

Commit

Permalink
- removed irrelevant comment (it was screen tool related, not FreeBSD…
Browse files Browse the repository at this point in the history
… kernel console related)

- added relevant comment (links to resources related to cursor shape modification escape sequences)
  • Loading branch information
unxed committed Dec 23, 2024
1 parent e087a3c commit e53f336
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 e53f336

Please sign in to comment.