Commit 5204ea9e authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Removed now unnecessary raw/cbreak combos.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@51 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 4 additions and 10 deletions
+4 -10
......@@ -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.
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment