Commit c53a92d9 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

on systems that need raw(), call it once instead of every time through

the input/output loop in main()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1620 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent d5be9470
Showing with 10 additions and 5 deletions
+10 -5
CVS code - CVS code -
- nano.c:
main()
- Move the call to raw() on systems that don't define
_POSIX_VDISABLE outside the main input/output loop, as it
doesn't need to be called every time through the loop. (DLR)
- README: - README:
- Reformat to 72 characters per line, fix wording in one spot, - Reformat to 72 characters per line, fix wording in one spot,
and fix spacing in several spots. (DLR) and fix spacing in several spots. (DLR)
......
...@@ -3434,6 +3434,11 @@ int main(int argc, char *argv[]) ...@@ -3434,6 +3434,11 @@ int main(int argc, char *argv[])
cbreak(); cbreak();
noecho(); noecho();
#ifndef _POSIX_VDISABLE
/* We're going to have to do it the old way, i.e, on Cygwin. */
raw();
#endif
/* Set up some global variables */ /* Set up some global variables */
global_init(0); global_init(0);
shortcut_init(0); shortcut_init(0);
...@@ -3508,11 +3513,6 @@ int main(int argc, char *argv[]) ...@@ -3508,11 +3513,6 @@ int main(int argc, char *argv[])
currshortcut = main_list; currshortcut = main_list;
#endif #endif
#ifndef _POSIX_VDISABLE
/* We're going to have to do it the old way, i.e. on cygwin */
raw();
#endif
kbinput = get_kbinput(edit, &meta); kbinput = get_kbinput(edit, &meta);
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "AHA! %c (%d)\n", kbinput, kbinput); fprintf(stderr, "AHA! %c (%d)\n", kbinput, kbinput);
......
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