aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src
diff options
context:
space:
mode:
authorDaftMouse <daftmouse@protonmail.com>2022-01-15 00:35:05 -0300
committerGitHub <noreply@github.com>2022-01-15 03:35:05 +0000
commit60ef17e8e98b0ed219a145881d10ecd6b9f26e85 (patch)
tree3e257a8ad78e9b8eb0a4c54fd909fe1bc7d31b4e /alacritty/src
parente38f51c6bd73999e4e36110ca21cdb473de00bd5 (diff)
downloadr-alacritty-60ef17e8e98b0ed219a145881d10ecd6b9f26e85.tar.gz
r-alacritty-60ef17e8e98b0ed219a145881d10ecd6b9f26e85.tar.bz2
r-alacritty-60ef17e8e98b0ed219a145881d10ecd6b9f26e85.zip
Add ´?´ support to OSC 4
Diffstat (limited to 'alacritty/src')
-rw-r--r--alacritty/src/event.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs
index a29a101a..aea6010d 100644
--- a/alacritty/src/event.rs
+++ b/alacritty/src/event.rs
@@ -1076,8 +1076,9 @@ impl input::Processor<EventProxy, ActionContext<'_, Notifier, EventProxy>> {
self.ctx.write_to_pty(text.into_bytes());
},
TerminalEvent::ColorRequest(index, format) => {
- let text = format(self.ctx.display.colors[index]);
- self.ctx.write_to_pty(text.into_bytes());
+ let color = self.ctx.terminal().colors()[index]
+ .unwrap_or(self.ctx.display.colors[index]);
+ self.ctx.write_to_pty(format(color).into_bytes());
},
TerminalEvent::PtyWrite(text) => self.ctx.write_to_pty(text.into_bytes()),
TerminalEvent::MouseCursorDirty => self.reset_mouse_cursor(),