Mercurial > hg > octave-lojdl
diff src/sysdep.cc @ 767:42731861ee09
[project @ 1994-10-05 21:26:54 by jwe]
author | jwe |
---|---|
date | Wed, 05 Oct 1994 21:32:24 +0000 |
parents | 36ba0576bd1b |
children | c70cd573d3dc |
line wrap: on
line diff
--- a/src/sysdep.cc +++ b/src/sysdep.cc @@ -140,8 +140,6 @@ #endif #endif - - #if defined (HAVE_QUIET_NAN) octave_NaN = (double) quiet_nan (); #else @@ -168,7 +166,6 @@ #endif } - #if defined (EXCEPTION_IN_MATH) extern "C" { @@ -212,19 +209,18 @@ octave_ieee_init (); } -/* - * Set terminal in raw mode. From less-177. - * - * Change terminal to "raw mode", or restore to "normal" mode. - * "Raw mode" means - * 1. An outstanding read will complete on receipt of a single keystroke. - * 2. Input is not echoed. - * 3. On output, \n is mapped to \r\n. - * 4. \t is NOT expanded into spaces. - * 5. Signal-causing characters such as ctrl-C (interrupt), - * etc. are NOT disabled. - * It doesn't matter whether an input \n is mapped to \r, or vice versa. - */ +// Set terminal in raw mode. From less-177. +// +// Change terminal to "raw mode", or restore to "normal" mode. +// "Raw mode" means +// 1. An outstanding read will complete on receipt of a single keystroke. +// 2. Input is not echoed. +// 3. On output, \n is mapped to \r\n. +// 4. \t is NOT expanded into spaces. +// 5. Signal-causing characters such as ctrl-C (interrupt), +// etc. are NOT disabled. +// It doesn't matter whether an input \n is mapped to \r, or vice versa. + void raw_mode (int on) { @@ -360,9 +356,8 @@ curr_on = on; } -/* - * Read one character from the terminal. - */ +// Read one character from the terminal. + int kbhit (void) {