Skip to content
Snippets Groups Projects
Commit 99987787 authored by gwenn's avatar gwenn
Browse files

Added escape sequence for Home ([1~) and End ([4~) keys for xterm

https://github.com/antirez/linenoise/pull/76
parent 02e34fb4
No related branches found
No related tags found
No related merge requests found
......@@ -130,9 +130,9 @@ impl PosixRawReader {
let seq3 = try!(self.next_char());
if seq3 == '~' {
match seq2 {
// '1' => Ok(KeyPress::Home),
'1' => Ok(KeyPress::Home), // xterm
'3' => Ok(KeyPress::Delete),
// '4' => Ok(KeyPress::End),
'4' => Ok(KeyPress::End), // xterm
'5' => Ok(KeyPress::PageUp),
'6' => Ok(KeyPress::PageDown),
'7' => Ok(KeyPress::Home),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment