comparison src/sysdep.cc @ 3372:f16c2ce14886

[project @ 1999-11-23 19:07:09 by jwe]
author jwe
date Tue, 23 Nov 1999 19:07:18 +0000
parents 15cddaacbc2d
children d14c483b3c12
comparison
equal deleted inserted replaced
3371:86873384cd10 3372:f16c2ce14886
393 print_usage ("putenv"); 393 print_usage ("putenv");
394 394
395 return retval; 395 return retval;
396 } 396 }
397 397
398 // XXX FIXME XXX -- perhaps kbhit should also be able to print a prompt?
399
398 DEFUN (kbhit, , , 400 DEFUN (kbhit, , ,
399 "kbhit: get a single character from the terminal") 401 "-*- texinfo -*-\n\
402 @deftypefn {Built-in Function} {} kbhit ()\n\
403 Read a single keystroke from the keyboard. For example,\n\
404 \n\
405 @example\n\
406 x = kbhit ();\n\
407 @end example\n\
408 \n\
409 @noindent\n\
410 will set @var{x} to the next character typed at the keyboard as soon as\n\
411 it is typed.\n\
412 @end deftypefn")
400 { 413 {
401 octave_value_list retval; 414 octave_value_list retval;
402 415
403 // XXX FIXME XXX -- add timeout and default value args? 416 // XXX FIXME XXX -- add timeout and default value args?
404 417