fix slang compilation problem
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1544 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
298b975264
commit
e0a9f50a64
11
ChangeLog
11
ChangeLog
|
@ -60,11 +60,12 @@ CVS code -
|
||||||
interpreted as Ctrl-[character], and the support for Pico's
|
interpreted as Ctrl-[character], and the support for Pico's
|
||||||
Esc Esc [three-digit decimal ASCII code] input method. (DLR)
|
Esc Esc [three-digit decimal ASCII code] input method. (DLR)
|
||||||
- nano.h:
|
- nano.h:
|
||||||
- Define KEY_SUSPEND as -1 when slang is used, as slang has no
|
- Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as
|
||||||
KEY_SUSPEND equivalent. When nano is compiled with slang
|
slang has no equivalent of either. When nano is compiled with
|
||||||
support, pressing Ctrl-Z to suspend nano at the Linux console
|
slang support, resizing the window doesn't generate
|
||||||
with keypad(TRUE) generates Ctrl-Z instead of KEY_SUSPEND
|
KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux
|
||||||
(which is what ncurses generates then). (DLR)
|
console with keypad(TRUE) generates Ctrl-Z instead of
|
||||||
|
KEY_SUSPEND, both unlike ncurses. (DLR)
|
||||||
- rcfile.c:
|
- rcfile.c:
|
||||||
parse_colors()
|
parse_colors()
|
||||||
- Generate an error if we try to use a bright background color
|
- Generate an error if we try to use a bright background color
|
||||||
|
|
|
@ -46,8 +46,9 @@
|
||||||
|
|
||||||
#ifdef USE_SLANG /* Slang support enabled */
|
#ifdef USE_SLANG /* Slang support enabled */
|
||||||
#include <slcurses.h>
|
#include <slcurses.h>
|
||||||
#define KEY_IC SL_KEY_IC
|
|
||||||
#define KEY_DC SL_KEY_DELETE
|
#define KEY_DC SL_KEY_DELETE
|
||||||
|
#define KEY_IC SL_KEY_IC
|
||||||
|
#define KEY_RESIZE -1
|
||||||
#define KEY_SUSPEND -1
|
#define KEY_SUSPEND -1
|
||||||
#elif defined(HAVE_NCURSES_H)
|
#elif defined(HAVE_NCURSES_H)
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
|
|
Loading…
Reference in New Issue