]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/ptyfwd: allow window title but not background color as a valid state
authorSam Leonard <sam.leonard@codethink.co.uk>
Tue, 27 Feb 2024 15:08:37 +0000 (15:08 +0000)
committerSam Leonard <sam.leonard@codethink.co.uk>
Wed, 28 Feb 2024 11:50:18 +0000 (11:50 +0000)
commit9eb118eea7396cb33b37de0d993091cfab0bf3c5
tree463a9cae03fe27282a487de2ab1f50b05b3480e9
parent73a72e3a7b0e125dfabdf9e16ccb3a129ecdeab6
shared/ptyfwd: allow window title but not background color as a valid state

Previously if a PTYForward instance had the window title set but no
background color set then it would crash in an assertion as
pty_forward_ansi_process didn't require both to be present.

systemd-vmspawn could get into this state if it failed to get the
terminal tint color.

Now any method that would have called background_color_sequence now
becomes just a NOP if the background color is not set.

This allows keeping the functionality to set window titles even if the
terminal doesn't support the background coloring.
src/shared/ptyfwd.c