When "\x1b]11;?\x1b\\" is used to query the background color, the loop reading stdin breaks after receiving the 0x1b byte. But there is still one byte left in stdin to be read (In my case 0x5c) which causes problems if I try to read stdin after this.
I'm not sure if this also happens in the other two cases as well.
https://github.com/dalance/termbg/blob/6a1bdcb86cf103648bcad4f0b6c8c3dc48d057b3/src/lib.rs#L175-L181
When
"\x1b]11;?\x1b\\"
is used to query the background color, the loop reading stdin breaks after receiving the0x1b
byte. But there is still one byte left in stdin to be read (In my case0x5c
) which causes problems if I try to read stdin after this. I'm not sure if this also happens in the other two cases as well. https://github.com/dalance/termbg/blob/6a1bdcb86cf103648bcad4f0b6c8c3dc48d057b3/src/lib.rs#L175-L181I'm running bash in alacritty.