summaryrefslogtreecommitdiff
path: root/app/diskettenmonitor/3.7/src/basic menu handling 3.6.quelle
diff options
context:
space:
mode:
Diffstat (limited to 'app/diskettenmonitor/3.7/src/basic menu handling 3.6.quelle')
-rw-r--r--app/diskettenmonitor/3.7/src/basic menu handling 3.6.quelle53
1 files changed, 53 insertions, 0 deletions
diff --git a/app/diskettenmonitor/3.7/src/basic menu handling 3.6.quelle b/app/diskettenmonitor/3.7/src/basic menu handling 3.6.quelle
new file mode 100644
index 0000000..6a02811
--- /dev/null
+++ b/app/diskettenmonitor/3.7/src/basic menu handling 3.6.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 ;
+