mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 05:12:40 +03:00
term: avoid fragmenting version/attribute query responses
Keep them in a single write call to minimize the chances of issues like https://github.com/wez/wezterm/issues/2060
This commit is contained in:
parent
2b083cc131
commit
1ae72bccae
@ -76,6 +76,7 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
* Windows: spawning new panes/tabs wouldn't automatically use the working directory of the current pane when OSC 7 was not being used [#2036](https://github.com/wez/wezterm/issues/2036)
|
||||
* Wayland: panic when display scaling is enabled. [#1727](https://github.com/wez/wezterm/issues/1727)
|
||||
* `Dark+` color scheme background color [#2013](https://github.com/wez/wezterm/pull/2013)
|
||||
* Avoid fragmenting XTVERSION, DA2, DA3 query responses [#2060](https://github.com/wez/wezterm/issues/2060)
|
||||
|
||||
### 20220408-101518-b908e2dd
|
||||
|
||||
|
@ -1225,16 +1225,18 @@ impl TerminalState {
|
||||
self.writer.flush().ok();
|
||||
}
|
||||
Device::RequestTertiaryDeviceAttributes => {
|
||||
self.writer.write(b"\x1bP!|00000000").ok();
|
||||
self.writer.write(ST.as_bytes()).ok();
|
||||
self.writer
|
||||
.write(format!("\x1bP!|00000000{}", ST).as_bytes())
|
||||
.ok();
|
||||
self.writer.flush().ok();
|
||||
}
|
||||
Device::RequestTerminalNameAndVersion => {
|
||||
self.writer.write(DCS.as_bytes()).ok();
|
||||
self.writer
|
||||
.write(format!(">|{} {}", self.term_program, self.term_version).as_bytes())
|
||||
.write(
|
||||
format!(">|{} {}{}", self.term_program, self.term_version, ST).as_bytes(),
|
||||
)
|
||||
.ok();
|
||||
self.writer.write(ST.as_bytes()).ok();
|
||||
self.writer.flush().ok();
|
||||
}
|
||||
Device::RequestTerminalParameters(a) => {
|
||||
|
Loading…
Reference in New Issue
Block a user