Skip to content

Commit f8a9705

Browse files
committed
Added escape sequence for Home ([1~) and End ([4~) keys for xterm
antirez/linenoise#76
1 parent 41074a5 commit f8a9705

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tty/unix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ impl PosixRawReader {
129129
let seq3 = try!(self.next_char());
130130
if seq3 == '~' {
131131
match seq2 {
132-
// '1' => Ok(KeyPress::Home),
132+
'1' => Ok(KeyPress::Home), // xterm
133133
'3' => Ok(KeyPress::Delete),
134-
// '4' => Ok(KeyPress::End),
134+
'4' => Ok(KeyPress::End), // xterm
135135
'5' => Ok(KeyPress::PageUp),
136136
'6' => Ok(KeyPress::PageDown),
137137
'7' => Ok(KeyPress::Home),

0 commit comments

Comments
 (0)