From 5204ea9e862aa6c44d93370ce7d94bdc4cbe8e84 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 22 Jun 2000 01:56:23 +0000 Subject: [PATCH] Removed now unnecessary raw/cbreak combos. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@51 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ winio.c | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 97c83121..fe6e492f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/winio.c b/winio.c index 8a0e3a04..ee6e695a 100644 --- a/winio.c +++ b/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(); -- 2.39.5