- nano.c:
help_init()
- Added message re: having multiple blank buffers (DLR).
+ main()
+ - Add 407 as equiv of 26, this seems to be sent when using
+ ^Z in linux console with keypad() enabled.
- winio.c:
do_cursorpos()
- Rewritten to show col place as well as charcter place, without
int kbinput; /* Input from keyboard */
long startline = 0; /* Line to try and start at */
int keyhandled; /* Have we handled the keystroke yet? */
- int i, modify_control_seq;
+ int modify_control_seq;
char *argv0;
shortcut *s;
toggle *t;
if (kbinput == 17 || kbinput == 19)
keyhandled = 1;
- /* Catch ^Z by hand when triggered also */
- if (kbinput == 26) {
+ /* Catch ^Z by hand when triggered also
+ 407 == ^Z in Linux console when keypad() is used? */
+ if (kbinput == 26 || kbinput == 407) {
if (ISSET(SUSPEND))
do_suspend(0);
keyhandled = 1;
int nanogetstr(int allowtabs, char *buf, char *def, shortcut *s,
int start_x, int list)
{
- int kbinput = 0, j = 0, x = 0, xend, slen;
+ int kbinput = 0, x = 0, xend, slen;
int x_left = 0, inputlen, tabbed = 0;
char *inputbuf;
shortcut *t;
void bottombars(shortcut *s)
{
- int i, j, k;
+ int i, k;
char keystr[10];
shortcut *t;
int slen;
{
va_list ap;
char foo[133];
- int ret, slen;
+ int ret;
#ifndef DISABLE_TABCOMP
int list = 0;
int i, j, row = 0, page = 1, kbinput = 0, no_more = 0, kp, kp2;
int no_help_flag = 0;
shortcut *oldshortcut;
- int oldslen;
blank_edit();
curs_set(0);