Mercurial > hg > octave-lyh
comparison src/pager.cc @ 3332:7c03933635c6
[project @ 1999-11-02 06:57:12 by jwe]
author | jwe |
---|---|
date | Tue, 02 Nov 1999 06:57:16 +0000 |
parents | 4964d5391acc |
children | 15cddaacbc2d |
comparison
equal
deleted
inserted
replaced
3331:13cdcb7e5066 | 3332:7c03933635c6 |
---|---|
356 if (! external_diary_file) | 356 if (! external_diary_file) |
357 error ("diary: can't open diary file `%s'", diary_file.c_str ()); | 357 error ("diary: can't open diary file `%s'", diary_file.c_str ()); |
358 } | 358 } |
359 | 359 |
360 DEFUN_TEXT (diary, args, , | 360 DEFUN_TEXT (diary, args, , |
361 "diary [on|off]\n\ | 361 "-*- texinfo -*-\n\ |
362 diary [file]\n\ | 362 @deffn {Command} diary options\n\ |
363 Create a list of all commands @emph{and} the output they produce, mixed\n\ | |
364 together just as you see them on your terminal. Valid options are:\n\ | |
363 \n\ | 365 \n\ |
364 redirect all input and screen output to a file.") | 366 @table @code\n\ |
367 @item on\n\ | |
368 Start recording your session in a file called @file{diary} in your\n\ | |
369 current working directory.\n\ | |
370 \n\ | |
371 @item off\n\ | |
372 Stop recording your session in the diary file.\n\ | |
373 \n\ | |
374 @item @var{file}\n\ | |
375 Record your session in the file named @var{file}.\n\ | |
376 @end table\n\ | |
377 \n\ | |
378 Without any arguments, @code{diary} toggles the current diary state.\n\ | |
379 @end deffn\n\ | |
380 ") | |
365 { | 381 { |
366 octave_value_list retval; | 382 octave_value_list retval; |
367 | 383 |
368 int argc = args.length () + 1; | 384 int argc = args.length () + 1; |
369 | 385 |