From e53f33695582165f32d2c7e034be344d33836919 Mon Sep 17 00:00:00 2001 From: Ivan Sorokin Date: Mon, 23 Dec 2024 02:12:26 +0100 Subject: [PATCH] - removed irrelevant comment (it was screen tool related, not FreeBSD kernel console related) - added relevant comment (links to resources related to cursor shape modification escape sequences) --- WinPort/src/Backend/TTY/TTYOutput.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/WinPort/src/Backend/TTY/TTYOutput.cpp b/WinPort/src/Backend/TTY/TTYOutput.cpp index 459ade308..35bdc61d5 100644 --- a/WinPort/src/Backend/TTY/TTYOutput.cpp +++ b/WinPort/src/Backend/TTY/TTYOutput.cpp @@ -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)); @@ -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