aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorDominik MiedziƄski <dominik@mdzn.pl>2017-05-08 16:50:34 +0200
committerJoe Wilm <jwilm@users.noreply.github.com>2017-05-08 08:38:01 -0700
commit5c6b7dd244e309067141a206c2e2518580068d9e (patch)
tree5e9bf879ad3c8b5e7d994efcfa15b517b2ca52c1 /src/ansi.rs
parent08447a220c1bcf9d2e071798da3e1edcde9366cf (diff)
downloadalacritty-5c6b7dd244e309067141a206c2e2518580068d9e.tar.gz
alacritty-5c6b7dd244e309067141a206c2e2518580068d9e.zip
Fix Device Status reports
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index a3f5c2d2..a2adcf90 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -129,7 +129,7 @@ pub trait Handler {
fn identify_terminal<W: io::Write>(&mut self, &mut W) {}
// Report device status
- fn device_status<W: io::Write>(&mut self, &mut W) {}
+ fn device_status<W: io::Write>(&mut self, &mut W, usize) {}
/// Move cursor forward `cols`
fn move_forward(&mut self, Column) {}
@@ -874,7 +874,7 @@ impl<'a, H, W> vte::Perform for Performer<'a, H, W>
i += 1; // C-for expr
}
}
- 'n' => handler.device_status(writer),
+ 'n' => handler.device_status(writer, arg_or_default!(idx: 0, default: 0) as usize),
'r' => {
if private {
unhandled!();