Jan Holesovsky wrote: > > I've already sent these patches once, but got no response - could you please > have a look, and apply if OK? They are more or less trivial, but especially > the single-key-history.diff and fix-prompt.diff improve the user experience > of single key mode a lot. Comments appreciated ;-) > I use tui mode often, but single key mode, not so often. Anyway, see my comments below, but note that I can't approve patches. > ChangeLog for the changes: > > 2007-05-21 Jan Holesovsky > > * tui/tui.c: SingleKey binding for stepi and nexti; This seems useful indeed. Thanks! > don't quit > SingleKey by 'q' when it's activated by a nontrivial ctrl+x > combination - the user is smart enough to exit this mode. If the only command gdb knows starting with 'q' is "quit", what is the use? What is it preventing you to type? Maybe a target/host specific command? At least on cygwin 'q' is not ambiguous. On the other hand, if you're in in single key mode, and want to type "quit", you have to type "qquit", since the first 'q' is eaten, else you'll end up typing "uit" :) I guess it's a matter of personal taste either way. > * tui/tui-win.c: Fix silly typos in help. This is trivial indeed. > * tui/tui-io.c: Display prompts like ---Type ... even in > SingleKey mode, and be able to react there. Seems like a hack to me. What about not setting TUI_SINGLE_KEY_MODE in the first place, if gdb is in the middle of a possibly length command? The attached works for me, but I didn't regtest it. Is this usage of immediate_quit ok? > * tui/tui-command.c: When switched temporarily from the SingleKey mode > to command mode, bind [Up] and [Down] keys to readline history; it's > safe because we know that the user wants to type. In single key mode, I can start to type 'b' for a breakpoint, and then decide I want to scroll to see at which line I would want to place the breakpoint at using up/down. If I want access to the history, I can either use c-p/c-n, or use c-x o to switch focus to the command line, and then use up/down. With your patch, if I already started typing 'b', I'll have no way to scroll, other than deleting what I've already typed, will I? Cheers, Pedro Alves