add history commands
[CleanReadLine.git] / ReadLine.dcl
index da953d7..540886a 100644 (file)
@@ -1,8 +1,21 @@
 definition module ReadLine
 
-/*
-       Reads a line from stdin with the readline library
-       The value in the String argument will be used as a prompt
-       To enable history the Boolean variable has to be set to True
-*/
+//Readline
 readLine :: !String !Bool !*env -> (!String, !*env)
+
+//Initializing History and State Management
+
+//History List Management
+
+//Information About the History List
+
+//Moving Around the History List
+
+//Searching the History List
+
+//Managing the History File
+readHistory :: !String !*env -> (!Bool, !*env)
+readHistoryRange :: !String !Int !Int !*env -> (!Bool, !*env)
+writeHistory :: !String !*env -> (!Bool, !*env)
+appendHistory :: !Int !String !*env -> (!Bool, !*env)
+historyTruncateFile :: !String !Int !*env -> (!Bool, !*env)