Spencer Janssen
5e358c365e
Use maskEvent rather than nextEvent. Fixes rare segfaults
2007-08-14 17:04:16 +00:00
David Roundy
17342a2421
actually use the selected font in XPrompt.
2007-08-10 17:45:43 +00:00
David Roundy
ae5fa6c7e7
increase default contrast in XPrompt.
2007-08-10 17:47:24 +00:00
David Roundy
468e2ff247
center prompt text in window.
2007-08-10 17:37:46 +00:00
David Roundy
dd88f670da
don't crash when given a non-existent font in XPrompt.
2007-08-10 17:04:45 +00:00
Andrea Rossato
686328c517
XPrompt: removed touchFile (which is not the equivalent of touch!)
2007-08-05 22:59:06 +00:00
Andrea Rossato
d06d656dd4
XPrompt.hs: getCompletion should check for completions of the last word of the command line
2007-08-05 12:41:30 +00:00
Andrea Rossato
ecaaa5ac11
XPrompt.hs: read history lazily
...
Instead of forcing the reading of all the history file we read it lazily.
2007-08-04 18:59:14 +00:00
Andrea Rossato
f26609aeca
XPrompt.hs: removed defaultPromptConfig. use defautlXPConfig instead
2007-08-04 18:32:52 +00:00
Andrea Rossato
973ffbcf22
XPrompt.hs: haddock corrections and some comments
2007-08-04 10:46:22 +00:00
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