the input/output loop in main()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1620
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
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:
- Reformat to 72 characters per line, fix wording in one spot,
and fix spacing in several spots. (DLR)
cbreak();
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 */
global_init(0);
shortcut_init(0);
currshortcut = main_list;
#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);
#ifdef DEBUG
fprintf(stderr, "AHA! %c (%d)\n", kbinput, kbinput);