* tuiIO.c (tui_putc): New function to print one character.
authorStephane Carrez <stcarrez@nerim.fr>
Tue, 3 Sep 2002 20:47:48 +0000 (20:47 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Tue, 3 Sep 2002 20:47:48 +0000 (20:47 +0000)
commit8cee930b679ee004162d9a6b3b35f2064bbf9271
treec3caf50dd7ffbcdbf976a54c23fae27a061a91da
parent38fc42c80d8ff9d2ca12e20d8f164e8f2f4693d3
* tuiIO.c (tui_putc): New function to print one character.
(printable_part): New function from readline/complete.c.
(PUTX): New macro, likewise.
(print_filename): New function, likewise.
(get_y_or_n): New function, likewise and adapted for TUI.
(tui_rl_display_match_list): New function from readline/complete.c
and writes on TUI command window.
(tui_setup_io): Install or remove the readline hook
rl_completion_display_matches_hook so that completion is written
directly in TUI command window instead of in the TUI pipe.
(tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the
TUI redirection pipe.
(tui_getc): Likewise for call to tui_readline_output.
(tui_readline_output): Likewise for function.
* tui.c (tui_rl_startup_hook): Always take care of gdb prompt.
gdb/tui/ChangeLog
gdb/tui/tui.c
gdb/tui/tuiIO.c