Minor cosmetic changes
This commit is contained in:
parent
10f6654005
commit
07b25731a6
|
@ -92,17 +92,17 @@ pub trait TermControl {
|
||||||
|
|
||||||
impl<W: Write> TermControl for W {
|
impl<W: Write> TermControl for W {
|
||||||
fn csi(&mut self, b: &[u8]) -> IoResult<usize> {
|
fn csi(&mut self, b: &[u8]) -> IoResult<usize> {
|
||||||
self.write(b"\x1b[").and_then(|x| {
|
self.write(b"\x1B[").and_then(|x| {
|
||||||
self.write(b).map(|y| x + y)
|
self.write(b).map(|y| x + y)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
fn osc(&mut self, b: &[u8]) -> IoResult<usize> {
|
fn osc(&mut self, b: &[u8]) -> IoResult<usize> {
|
||||||
self.write(b"\x1b]").and_then(|x| {
|
self.write(b"\x1B]").and_then(|x| {
|
||||||
self.write(b).map(|y| x + y)
|
self.write(b).map(|y| x + y)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
fn dsc(&mut self, b: &[u8]) -> IoResult<usize> {
|
fn dsc(&mut self, b: &[u8]) -> IoResult<usize> {
|
||||||
self.write(b"\x1bP").and_then(|x| {
|
self.write(b"\x1BP").and_then(|x| {
|
||||||
self.write(b).map(|y| x + y)
|
self.write(b).map(|y| x + y)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue