Removed now unnecessary raw/cbreak combos.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@51 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
6e80585b0d
commit
5204ea9e86
|
@ -3,6 +3,10 @@ CVS code changes since last release -
|
||||||
- Removed dual alt_speller variables, oops! (Rocco Corsi)
|
- Removed dual alt_speller variables, oops! (Rocco Corsi)
|
||||||
- de.po
|
- de.po
|
||||||
- Revised translations by floki@bigfoot.com.
|
- Revised translations by floki@bigfoot.com.
|
||||||
|
- winio.c
|
||||||
|
do_yesno(), nanogetstr():
|
||||||
|
- Removed now unnecessary raw/cbreak combos.
|
||||||
|
|
||||||
|
|
||||||
nano-0.9.11 - 06/20/2000
|
nano-0.9.11 - 06/20/2000
|
||||||
- New flag "-T" or "--tabsize" to specify how to display tab widths.
|
- New flag "-T" or "--tabsize" to specify how to display tab widths.
|
||||||
|
|
10
winio.c
10
winio.c
|
@ -237,14 +237,10 @@ int nanogetstr(char *buf, char *def, shortcut s[], int slen, int start_x)
|
||||||
strcpy(answer, def);
|
strcpy(answer, def);
|
||||||
strcpy(inputbuf, def);
|
strcpy(inputbuf, def);
|
||||||
}
|
}
|
||||||
/* Go into raw mode so we can actually get ^C, for example */
|
|
||||||
raw();
|
|
||||||
|
|
||||||
while ((kbinput = wgetch(bottomwin)) != 13) {
|
while ((kbinput = wgetch(bottomwin)) != 13) {
|
||||||
for (j = 0; j <= slen - 1; j++) {
|
for (j = 0; j <= slen - 1; j++) {
|
||||||
if (kbinput == s[j].val) {
|
if (kbinput == s[j].val) {
|
||||||
noraw();
|
|
||||||
cbreak();
|
|
||||||
strcpy(answer, "");
|
strcpy(answer, "");
|
||||||
return s[j].val;
|
return s[j].val;
|
||||||
}
|
}
|
||||||
|
@ -417,8 +413,6 @@ int nanogetstr(char *buf, char *def, shortcut s[], int slen, int start_x)
|
||||||
|
|
||||||
strncpy(answer, inputbuf, 132);
|
strncpy(answer, inputbuf, 132);
|
||||||
|
|
||||||
noraw();
|
|
||||||
cbreak();
|
|
||||||
if (!strcmp(answer, ""))
|
if (!strcmp(answer, ""))
|
||||||
return -2;
|
return -2;
|
||||||
else
|
else
|
||||||
|
@ -985,8 +979,6 @@ int do_yesno(int all, int leavecursor, char *msg, ...)
|
||||||
if (leavecursor == 1)
|
if (leavecursor == 1)
|
||||||
reset_cursor();
|
reset_cursor();
|
||||||
|
|
||||||
raw();
|
|
||||||
|
|
||||||
while (ok == -1) {
|
while (ok == -1) {
|
||||||
kbinput = wgetch(edit);
|
kbinput = wgetch(edit);
|
||||||
|
|
||||||
|
@ -1009,8 +1001,6 @@ int do_yesno(int all, int leavecursor, char *msg, ...)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
noraw();
|
|
||||||
cbreak();
|
|
||||||
|
|
||||||
/* Then blank the screen */
|
/* Then blank the screen */
|
||||||
blank_statusbar_refresh();
|
blank_statusbar_refresh();
|
||||||
|
|
Loading…
Reference in New Issue