[PATCH]: Fix readline keymap when leaving TUI

Stephane Carrez stcarrez@nerim.fr
Fri Sep 13 13:14:00 GMT 2002


Hi!

I committed this patch (mainline & 5_3) to:
   - restore the readline keymap when leaving the TUI
   - set back the TUI specific keymap when re-entering (allows to stay in SingleKey mode)
   - remove debug printfs when entering/leaving TUI mode
   - automatically leave the tui_one_command_mode when the readline buffer becomes
     empty (useful if you entered the one-command by error or want to cancel it)

   Stephane

2002-09-13  Stephane Carrez  <stcarrez@nerim.fr>

	* tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs.
	(tui_initialize_readline): Allow to use space to leave SingleKey
	to enter one gdb command.
	(tui_enable): Restore the TUI keymap when we are back to TUI.
	(tui_disable): Restore normal keymap when leaving TUI.
	* tuiIO.c (tui_redisplay_readline): Restore the SingleKey mode
	when the buffer becomes empty and we are in tui_one_command_mode.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tui-fixes.diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020913/bcbd4484/attachment.ksh>


More information about the Gdb-patches mailing list