diff options
Diffstat (limited to 'app/diskettenmonitor/3.5/src/basic menu handling 3.5.quelle')
| -rw-r--r-- | app/diskettenmonitor/3.5/src/basic menu handling 3.5.quelle | 53 | 
1 files changed, 53 insertions, 0 deletions
| diff --git a/app/diskettenmonitor/3.5/src/basic menu handling 3.5.quelle b/app/diskettenmonitor/3.5/src/basic menu handling 3.5.quelle new file mode 100644 index 0000000..f60101d --- /dev/null +++ b/app/diskettenmonitor/3.5/src/basic menu handling 3.5.quelle @@ -0,0 +1,53 @@ + +PACKET basic menu handling +  +(************************************************************************)  +(*                                                                      *)  +(*  Basic Menu Handling Version 1.0                                   *)  +(*                                                                      *)  +(*                                                                      *)  +(* Autor : Ingo Siekmann                                                *)  +(* Stand : Donnerstag, den 12. Juni 1986                                *)  +(*                                                                      *)  +(* Lauffähig ab EUMEL Version 1.7.3                                     *)  +(*                                                                      *)  +(* (c) 1986 by ULES c/o Ingo Siekmann & Nils Ehnert                     *)  +(*                                                                      *)  +(************************************************************************)  + +       DEFINES menue monitor : + + + +LET info line x pos    =    1 , +    info line y pos    =   20 , +    command line x pos =    1 , +    command line y pos =   21 ; + +LET first mon line    = "----------------------------------------------------------------------------" , +    command line      = ">__________________________________________________________________________<" ;  + + +TEXT VAR char ; + +PROCEDURE menue monitor (TEXT CONST info line, chars,  (* I. Siekmann *) +                         INT VAR command index) :      (* 12.06.1986  *) +    enable stop ; +    cursor (1, 17) ; +    command index := 0 ; +    out (first mon line) ; +    cursor (info line x pos, info line y pos) ; +    out (info line) ; +    cursor (command line x pos, command line y pos) ;  +    out (command line) ; +    cursor (command line x pos + 1, command line y pos) ;  +    REPEAT +  (*  inchar (char) ;  *) +      get char (char) ; +      command index := pos (chars, char) +    UNTIL command index > 0 COR is error END REPEAT ; +    out (char) . +END PROCEDURE menue monitor ; + +ENDPACKET basic menu handling ; + | 
