diff options
author | Joe Wilm <joe@jwilm.com> | 2016-12-04 15:48:30 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-11 20:23:41 -0800 |
commit | ed48d08c0398d5905398d48575884a0226e10dc1 (patch) | |
tree | b9b43167887f3d5ca47f13c359899520bfc8ae4a /src/term | |
parent | 61c1e37c4652e3668546f4d332d31f24a8eea7bb (diff) | |
download | alacritty-ed48d08c0398d5905398d48575884a0226e10dc1.tar.gz alacritty-ed48d08c0398d5905398d48575884a0226e10dc1.zip |
Implement Handler::identify_terminal for Term
The identify_terminal function signature had to change to support
writing to the terminal before processing additional input.
Diffstat (limited to 'src/term')
-rw-r--r-- | src/term/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 9ed19c81..979999a9 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -16,6 +16,7 @@ use std::ops::{Deref, Range}; use std::ptr; use std::cmp; +use std::io; use ansi::{self, Attr, Handler}; use grid::{Grid, ClearRegion}; @@ -557,8 +558,8 @@ impl ansi::Handler for Term { } #[inline] - fn identify_terminal(&mut self) { - err_println!("[unimplemented] identify_terminal"); + fn identify_terminal<W: io::Write>(&mut self, writer: &mut W) { + let _ = writer.write_all("\x1b[?6c".as_bytes()); } #[inline] |