]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/terminal-util: accept ST or BEL to end escape sequence queries
authorSam Leonard <sam.leonard@codethink.co.uk>
Tue, 27 Feb 2024 14:35:14 +0000 (14:35 +0000)
committerSam Leonard <sam.leonard@codethink.co.uk>
Wed, 28 Feb 2024 11:50:18 +0000 (11:50 +0000)
commit73a72e3a7b0e125dfabdf9e16ccb3a129ecdeab6
tree426d096d1cb1ca029f9d01c7a1ed3932b23b7a91
parent9924d3c595958982b331c7e5f326bb3a4c1c7db6
basic/terminal-util: accept ST or BEL to end escape sequence queries

Currently scan_background_color_response only accepts BEL (\x07) to end
a response, however some terminals (namely kitty in my case) will reply
with the string terminator (ST - https://en.wikipedia.org/wiki/ANSI_escape_code).

This commit changes the behaviour to now accept either ending.
src/basic/terminal-util.c