[PATCH]: Fix gdb secondary prompts in TUI

Stephane Carrez stcarrez@nerim.fr
Sat Oct 26 03:41:00 GMT 2002


Hi!

As reported by Ton van Overbeek in [PATCH]: TUI, secondary prompts do not work
http://sources.redhat.com/ml/gdb-patches/2002-10/msg00000.html
the gdb secondary prompts are never printed in TUI mode.

They used to be printed correctly in the past by readline itself.
But since I introduced the use of rl_startup_hook()/rl_already_prompted to avoid
to have readline to write directly on the rl_outstream, the TUI must now obtain
the good prompt and print it correctly.

This must be done by saving the rl_prompt when readline configures itself
(tui_prep_terminal is a good place for that), and using that prompt when we
redisplay the readline buffer.

I committed this patch on 5_3-branch and mainline.

	Stephane

2002-10-26  Stephane Carrez  <stcarrez@nerim.fr>

	* tuiIO.c (tui_prep_terminal): Save the prompt registered in readline.
	(tui_redisplay_readline): Use the last saved prompt.
	(tui_rl_saved_prompt): New.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tuiPrompt.diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20021026/e748c778/attachment.ksh>


More information about the Gdb-patches mailing list