Commit Graph

7 Commits

Author SHA1 Message Date
Andrea Rossato
2be1438c27 XPrompt: fixes a couple of bugs
- we run the action passed to mkXPrompt only if we have a command;
- updateWindows must call destroyComplWin if there are no completions;
- some comments (more to come)
- a shorthand in keyPressHandle
- removed all warnings
2007-08-04 09:08:17 +00:00
Andrea Rossato
4c69e6a515 XPrompt: code cleanup
The completion list is not cached anymore: this greatly simplify the code
making its runtime behaviour more predictable...;-) Suggested by Spencer.
2007-08-03 18:19:05 +00:00
Spencer Janssen
9118713ded Make 'compList :: [String]', rather than Maybe. No completions is represented by [] 2007-08-03 16:04:24 +00:00
Spencer Janssen
1f41555d4c Rename 'setCompletionList' to 'refreshCompletionList' 2007-08-03 15:59:42 +00:00
Andrea Rossato
950f39761e XPrompt: added comletion and history support
This is a long patch the brings us a real prompt, more or less: completions
now work. Added history support, with a configuration option: defaul history
size is 256.  
defaultPromptConfig is now deprecated: please use defaultXPConfig instead
2007-08-03 15:45:31 +00:00
Spencer Janssen
75ce0d29d6 Make the XPrompt appear on the current screen 2007-08-02 18:42:31 +00:00
Andrea Rossato
4f84466904 XPrompt: a module for easily writing graphical prompts 2007-08-02 17:15:52 +00:00