mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-24 03:16:52 +03:00
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:
parent
6e80585b0d
commit
5204ea9e86
@ -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
10
winio.c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user