terminal-util: also send ANSI_NORMAL in terminal_reset_ansi_seq
Certain terminal emulators (alacritty, ghostty and kitty) require ANSI_NORMAL
to be sent to reset the colours.
Followup for 3d97db8f3c.
Fixes: #40163
This commit is contained in:
committed by
Lennart Poettering
parent
1978e42197
commit
1afe5c7b4b
@@ -969,7 +969,8 @@ int terminal_reset_ansi_seq(int fd) {
|
||||
|
||||
k = loop_write_full(fd,
|
||||
"\033[!p" /* soft terminal reset */
|
||||
"\033]104\007" /* reset colors */
|
||||
"\033]104\007" /* reset colors via OSC104 */
|
||||
ANSI_NORMAL /* reset colors */
|
||||
"\033[?7h" /* enable line-wrapping */
|
||||
"\033[1G" /* place cursor at beginning of current line */
|
||||
"\033[0J", /* erase till end of screen */
|
||||
|
||||
Reference in New Issue
Block a user