1
0
forked from GitHub/gf-core

last-minute bug fixes

This commit is contained in:
aarne
2004-06-24 14:06:09 +00:00
parent d3db78ad31
commit 3b39607bba
20 changed files with 536 additions and 404 deletions

View File

@@ -20,7 +20,7 @@ import UTF8
initEditLoop :: CEnv -> IO () -> IO ()
initEditLoop env resume = do
let env' = addGlobalOptions (options [sizeDisplay "short"]) env
let env' = startEditEnv env
putStrLnFlush $ initEditMsg env'
let state = initSStateEnv env'
putStrLnFlush $ showCurrentState env' state
@@ -113,7 +113,9 @@ pCommand = pCommandWords . words where
-- well, this lists the commands of the line-based editor
initEditMsg env = unlines $
"State-dependent editing commands are given in the menu:" :
" n = new, r = refine, w = wrap, d = delete, s = select." :
" n [Cat] = new, r [Fun] = refine, w [Fun] [Int] = wrap,":
" ch [Fun] = change head, d = delete, s [Int] = select," :
" x [Var] [Var] = alpha convert." :
"Commands changing the environment:" :
" i [file] = import, e = empty." :
"Other commands:" :