Removed now unnecessary raw/cbreak combos.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@51 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2000-06-22 01:56:23 +00:00
parent 6e80585b0d
commit 5204ea9e86
2 changed files with 4 additions and 10 deletions

View File

@ -3,6 +3,10 @@ CVS code changes since last release -
- Removed dual alt_speller variables, oops! (Rocco Corsi)
- de.po
- Revised translations by floki@bigfoot.com.
- winio.c
do_yesno(), nanogetstr():
- Removed now unnecessary raw/cbreak combos.
nano-0.9.11 - 06/20/2000
- New flag "-T" or "--tabsize" to specify how to display tab widths.

10
winio.c
View File

@ -237,14 +237,10 @@ int nanogetstr(char *buf, char *def, shortcut s[], int slen, int start_x)
strcpy(answer, def);
strcpy(inputbuf, def);
}
/* Go into raw mode so we can actually get ^C, for example */
raw();
while ((kbinput = wgetch(bottomwin)) != 13) {
for (j = 0; j <= slen - 1; j++) {
if (kbinput == s[j].val) {
noraw();
cbreak();
strcpy(answer, "");
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);
noraw();
cbreak();
if (!strcmp(answer, ""))
return -2;
else
@ -985,8 +979,6 @@ int do_yesno(int all, int leavecursor, char *msg, ...)
if (leavecursor == 1)
reset_cursor();
raw();
while (ok == -1) {
kbinput = wgetch(edit);
@ -1009,8 +1001,6 @@ int do_yesno(int all, int leavecursor, char *msg, ...)
break;
}
}
noraw();
cbreak();
/* Then blank the screen */
blank_statusbar_refresh();