comparison src/sysdep.cc @ 4081:e5966ddef842

[project @ 2002-09-30 22:33:41 by jwe]
author jwe
date Mon, 30 Sep 2002 22:33:41 +0000
parents e97fb79fc1d5
children ddc722b38e87
comparison
equal deleted inserted replaced
4080:8683d23356cb 4081:e5966ddef842
317 317
318 int 318 int
319 octave_kbhit (bool wait) 319 octave_kbhit (bool wait)
320 { 320 {
321 #ifdef HAVE__KBHIT 321 #ifdef HAVE__KBHIT
322 if (! wait && ! _kbhit ()) 322 int c = (! wait && ! _kbhit ()) ? 0 : std::cin.get ();
323 c = 0;
324 else
325 c = std::cin.get ();
326 #else 323 #else
327 raw_mode (true, wait); 324 raw_mode (true, wait);
328 325
329 int c = std::cin.get (); 326 int c = std::cin.get ();
330 327