Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
6d6f5bd4
Commit
6d6f5bd4
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: check earlier on for sufficient length of the sequence
parent
e3dbffc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winio.c
+3
-11
src/winio.c
with
3 additions
and
11 deletions
+3
-11
src/winio.c
View file @
6d6f5bd4
...
...
@@ -668,13 +668,10 @@ int convert_sequence(const int *seq, size_t seq_len)
case
'O'
:
switch
(
seq
[
1
])
{
case
'1'
:
if
(
seq_len
>=
3
)
{
switch
(
seq
[
2
])
{
case
';'
:
if
(
seq_len
>=
4
)
{
if
(
seq_len
>
4
&&
seq
[
2
]
==
';'
)
{
switch
(
seq
[
3
])
{
case
'2'
:
if
(
seq_len
>=
5
)
{
switch
(
seq
[
4
])
{
case
'A'
:
/* Esc O 1 ; 2 A == Shift-Up on
* Terminal. */
...
...
@@ -694,10 +691,8 @@ int convert_sequence(const int *seq, size_t seq_len)
case
'S'
:
/* Esc O 1 ; 2 S == F16 on Terminal. */
return
KEY_F
(
16
);
}
}
break
;
case
'5'
:
if
(
seq_len
>=
5
)
{
switch
(
seq
[
4
])
{
case
'A'
:
/* Esc O 1 ; 5 A == Ctrl-Up on Terminal. */
return
CONTROL_UP
;
...
...
@@ -708,12 +703,9 @@ int convert_sequence(const int *seq, size_t seq_len)
case
'D'
:
/* Esc O 1 ; 5 D == Ctrl-Left on Terminal. */
return
CONTROL_LEFT
;
}
}
break
;
}
}
break
;
}
}
break
;
case
'2'
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment