mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-20 10:31:16 -03:00
Add some logging for XTGETTCAP
This commit is contained in:
@@ -1277,11 +1277,20 @@ fn parse_dcs(&mut self, buffer: &mut Vec<u8>) -> Option<Key> {
|
||||
}
|
||||
buffer.pop();
|
||||
buffer.pop();
|
||||
// \e P 1 r + Pn ST
|
||||
// \e P 0 r + msg ST
|
||||
let buffer = &buffer[5..];
|
||||
if !success {
|
||||
FLOG!(
|
||||
reader,
|
||||
format!(
|
||||
"Received XTGETTCAP failure response: {}",
|
||||
str2wcstring(&parse_hex(buffer)?),
|
||||
)
|
||||
);
|
||||
return None;
|
||||
}
|
||||
// \e P 1 r + Pn ST
|
||||
let mut buffer = buffer[5..].splitn(2, |&c| c == b'=');
|
||||
let mut buffer = buffer.splitn(2, |&c| c == b'=');
|
||||
let key = buffer.next().unwrap();
|
||||
let value = buffer.next()?;
|
||||
let key = parse_hex(key)?;
|
||||
|
||||
Reference in New Issue
Block a user