OSDN Git Service

2002-12-17 Martin M. Hunt <hunt@redhat.com>
authorhunt <hunt>
Wed, 18 Dec 2002 19:35:54 +0000 (19:35 +0000)
committerhunt <hunt>
Wed, 18 Dec 2002 19:35:54 +0000 (19:35 +0000)
commit8906b50410d394e67f2e165a0a65a04f53815f65
treeb2a0093c8a25bbad336d4ef21f7c3df908a00e21
parentf6dec3f6b0bc5cebaff3b1e7ccc04204627a24ec
2002-12-17  Martin M. Hunt  <hunt@redhat.com>

* library/interface.tcl (gdbtk_tcl_fputs_target_err):
  New function.
(gdbtk_tcl_fputs_target): Open console window if it is
not already open.
(gdbtk_gets): New function.
Opens a console window if necessary and calls Console::gets.

* library/console.ith (gets): Declare method.
(_input_mode): New private variable.
(_input_result): Ditto.
(_input_error): Ditto.
(_cancel): New private method
(invoke): Add arg.

* library/console.itb (_setprompt): Allow setting prompt
to nothing.  Delete to beginning of line before writing prompt.
(gets): New public method to prompt user for input.
(_cancel): New private method to handle ^C when inputting data.
(invoke): Check for ^d when in input mode.
gdb/gdbtk/ChangeLog
gdb/gdbtk/library/console.itb
gdb/gdbtk/library/console.ith
gdb/gdbtk/library/interface.tcl