1 # Console window class definition for GDBtk.
2 # Copyright 1998, 1999 Cygnus Solutions
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License (GPL) as published by
6 # the Free Software Foundation; either version 2 of the License, or (at
7 # your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
15 # ----------------------------------------------------------------------
16 # Implements a console display widget using primitive widgets as the building
18 # ----------------------------------------------------------------------
21 inherit EmbeddedWin GDBEventHandler
24 #Approximate maximum number of lines allowed in widget
25 variable throttle 2000
27 method constructor {args}
30 method einsert {line tag}
32 method _insertion {args}
34 method activate {{prompt {}}}
48 variable _histElement -1
49 variable _partialCommand ""
50 variable _saved_insertion ""
56 method _delete {{left 0}}
57 method _find_completion {cmd completions}
58 method _find_lcp {slist}
62 method _paste {{check_primary 1}}
65 method _search_history {}
66 method _rsearch_history {}
67 method _setprompt {{prompt {}}}
68 method _set_wrap {wrap}
69 method _update_option {name value}