File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,18 @@ function _readkey(stream::IO=stdin)
23
23
24
24
# Escape characters
25
25
if c == ' \x 1b'
26
- bytesavailable (stream) < 2 && return ' \x 1b'
26
+ bytesavailable (stream) < 1 && return ' \x 1b'
27
27
esc_a = readbyte (stream)
28
28
esc_a == ' v' && return PAGE_UP # M-v
29
29
esc_a == ' <' && return HOME_KEY # M-<
30
30
esc_a == ' >' && return END_KEY # M->
31
31
32
- bytesavailable (stream) < 3 && return ' \x 1b'
32
+ bytesavailable (stream) < 1 && return ' \x 1b'
33
33
esc_b = readbyte (stream)
34
34
35
35
if esc_a == ' [' || esc_a == ' O'
36
36
if esc_b >= ' 0' && esc_b <= ' 9'
37
- bytesavailable (stream) < 4 && return ' \x 1b'
37
+ bytesavailable (stream) < 1 && return ' \x 1b'
38
38
esc_c = readbyte (stream)
39
39
if esc_c == ' ~'
40
40
esc_b == ' 1' && return HOME_KEY
You can’t perform that action at this time.
0 commit comments