- Document the support for Esc Esc [character]'s being
interpreted as Ctrl-[character], and the support for Pico's
Esc Esc [three-digit decimal ASCII code] input method. (DLR)
+ abcd()
+ - Removed, as it's unneeded due to the low-level input overhaul.
+ (DLR)
- nano.h:
- Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as
slang has no equivalent of either. When nano is compiled with
}
#endif /* !NANO_SMALL */
-/* This function returns the correct keystroke, given the A,B,C or D
- input key. This is a common sequence of many terms which send
- Esc-O-[A-D] or Esc-[-[A-D]. */
-int abcd(int input)
-{
- switch (input) {
- case 'A':
- case 'a':
- return KEY_UP;
- case 'B':
- case 'b':
- return KEY_DOWN;
- case 'C':
- case 'c':
- return KEY_RIGHT;
- case 'D':
- case 'd':
- return KEY_LEFT;
- default:
- return 0;
- }
-}
-
int main(int argc, char *argv[])
{
int optchr;
#ifndef NANO_SMALL
void do_toggle(const toggle *which);
#endif
-int abcd(int input);
/* Public functions in rcfile.c */
#ifdef ENABLE_NANORC