Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
272a9538
Commit
272a9538
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: fix compilation when configured with --with-slang
parent
db310ac9
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/nano.h
+2
-0
src/nano.h
src/winio.c
+10
-4
src/winio.c
with
12 additions
and
4 deletions
+12
-4
src/nano.h
View file @
272a9538
...
...
@@ -576,6 +576,8 @@ enum
#define SHIFT_ALT_DOWN 0x40c
#define SHIFT_PAGEUP 0x40d
#define SHIFT_PAGEDOWN 0x40e
#define SHIFT_HOME 0x40f
#define SHIFT_END 0x410
#ifndef NANO_TINY
/* An imaginary key for when we get a SIGWINCH (window resize). */
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
272a9538
...
...
@@ -584,6 +584,7 @@ int parse_kbinput(WINDOW *win)
shift_held
=
TRUE
;
return
sc_seq_or
(
do_right
,
keycode
);
#endif
#ifdef KEY_SR
#ifdef KEY_SUP
/* ncurses and Slang don't support KEY_SUP. */
case
KEY_SUP
:
...
...
@@ -591,6 +592,8 @@ int parse_kbinput(WINDOW *win)
case
KEY_SR
:
/* Scroll backward, on Xfce4-terminal. */
shift_held
=
TRUE
;
return
sc_seq_or
(
do_up_void
,
keycode
);
#endif
#ifdef KEY_SF
#ifdef KEY_SDOWN
/* ncurses and Slang don't support KEY_SDOWN. */
case
KEY_SDOWN
:
...
...
@@ -598,18 +601,21 @@ int parse_kbinput(WINDOW *win)
case
KEY_SF
:
/* Scroll forward, on Xfce4-terminal. */
shift_held
=
TRUE
;
return
sc_seq_or
(
do_down_void
,
keycode
);
#endif
#ifdef KEY_SHOME
/* HP-UX 10-11 and Slang don't support KEY_SHOME. */
case
KEY_SHOME
:
shift_held
=
TRUE
;
#endif
case
SHIFT_HOME
:
shift_held
=
TRUE
;
case
KEY_A1
:
/* Home (7) on keypad with NumLock off. */
return
sc_seq_or
(
do_home
,
keycode
);
#ifdef KEY_SEND
/* HP-UX 10-11 and Slang don't support KEY_SEND. */
case
KEY_SEND
:
shift_held
=
TRUE
;
#endif
case
SHIFT_END
:
shift_held
=
TRUE
;
case
KEY_C1
:
/* End (1) on keypad with NumLock off. */
return
sc_seq_or
(
do_end
,
keycode
);
#ifndef NANO_TINY
...
...
@@ -927,9 +933,9 @@ int convert_sequence(const int *seq, size_t seq_len)
case
'B'
:
/* Esc [ 1 ; 4 B == Shift-Alt-Down on xterm. */
return
SHIFT_PAGEDOWN
;
case
'C'
:
/* Esc [ 1 ; 4 C == Shift-Alt-Right on xterm. */
return
KEY_S
END
;
return
SHIFT_
END
;
case
'D'
:
/* Esc [ 1 ; 4 D == Shift-Alt-Left on xterm. */
return
KEY_S
HOME
;
return
SHIFT_
HOME
;
}
break
;
#endif
...
...
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
Menu
Projects
Groups
Snippets
Help