aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-11-08 21:22:46 +0100
committerGitHub <noreply@github.com>2020-11-08 21:22:46 +0100
commitee0167f3afe616a48e454ec748c0e95ccf7ed8dd (patch)
treea99be866511764c9810cfdbe84202e2fada2a4d9 /src/main.rs
parentfix(compatibility): better stdin reading to fix various issues (#28) (diff)
downloadsl0ppij-ee0167f3afe616a48e454ec748c0e95ccf7ed8dd.tar.gz
sl0ppij-ee0167f3afe616a48e454ec748c0e95ccf7ed8dd.tar.xz
sl0ppij-ee0167f3afe616a48e454ec748c0e95ccf7ed8dd.zip
fix(compatibility): do not interpret esc as scroll-up (#29)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 698ec8e2..6050af3b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -276,10 +276,10 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: Opt) {
send_pty_instructions.send(PtyInstruction::Quit).unwrap();
break;
},
- [27, 0, 0, 0, 0, 0, 0, 0, 0, 0] => { // ctrl-[
+ [27, 91, 53, 94, 0, 0, 0, 0, 0, 0] => { // ctrl-PgUp
send_screen_instructions.send(ScreenInstruction::ScrollUp).unwrap();
},
- [29, 0, 0, 0, 0, 0, 0, 0, 0, 0] => { // ctrl-]
+ [27, 91, 54, 94, 0, 0, 0, 0, 0, 0] => { // ctrl-PgDown
send_screen_instructions.send(ScreenInstruction::ScrollDown).unwrap();
},
[24, 0, 0, 0, 0, 0, 0, 0, 0, 0] => { // ctrl-x