source: git/Tst/Manual/pause.tst @ 42ea848

spielwiese
Last change on this file since 42ea848 was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 661 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "inout.lib";
3// can only be shown interactively, try the following commands:
4// pause("press <return> to continue");
5// pause();
6// In the following pocedure TTT, xxx is printed and the execution of
7// TTT is stopped until the return-key is pressed, if printlevel>0.
8// xxx may be any result of a previous computation or a comment, etc:
9//
10// proc TTT
11// { int pp = printlevel-voice+2;  //pp=0 if printlevel=0 and if TTT is
12//    ....                         //not called from another procedure
13//    if( pp>0 )
14//    {
15//       print( xxx );
16//       pause("press <return> to continue");
17//    }
18//     ....
19// }
20tst_status(1);$
Note: See TracBrowser for help on using the repository browser.