Definition at line 17 of file shell.tcl.
Public Member Functions | |
autotag (TclString pattern, TclList args) | |
background (TclString value="gray90") | |
clear () | |
deleteCmd () | |
fgets () | |
getCmd () | |
getConfirmExit () | |
insert (TclString string) | |
prompt (TclString value="cdg> ") | |
prompt1 (TclString value="cdg> ") | |
prompt2 (TclString value="tcltk# ") | |
resetCmd (TclList args) | |
safeEval (TclCommand cmd) | |
safeSource (TclString file) | |
setConfirmExit (TclBoolean x) | |
setCursor (TclString pos) | |
updateCmd (TclList args) | |
Public Attributes | |
TclNumber | maxIndex = 100 |
TclNumber | showTrace = 0 |
Private Member Functions | |
b1_action (TclNumber x, TclNumber y) | |
backspace_action () | |
CdgShell (TclList args) | |
control_c_action () | |
control_d_action () | |
control_l_action () | |
control_q_action () | |
delete_action () | |
double_1_action (TclNumber x, TclNumber y) | |
down_action () | |
end_action () | |
fgets_action () | |
getCompletions (TclString name, TclString parameter="") | |
home_action () | |
left_action () | |
next_action () | |
prio_action () | |
return_action () | |
shift_down_action () | |
shift_up_action () | |
switch_interp () | |
tab_action () | |
tabtab_action () | |
triple_1_action (TclNumber x, TclNumber y) | |
up_action () | |
Private Attributes | |
TclArray | commands |
TclNumber | completeFlag = 1 |
TclNumber | confirmexit = 1 |
TclNumber | firstPosition = 0.0 |
TclArray | history |
TclRef | historyIndex |
TclNumber | interpFlag = 1 |
TclNumber | lastPosition = 0.0 |
TclNumber | needsLineFeed = 0 |
TclString | oldBackground = "" |
TclString | safeInterp = "" |
TclNumber | silentFlag = 0 |
TclList | tagging = {} |
|
constructor |
|
add a syntax highlightening rule. Definition at line 314 of file shell.tcl. References safeEval(). Referenced by background(). |
|
button1 only sets the selection anchor. Definition at line 938 of file shell.tcl. Referenced by control_l_action(). |
|
itk_option: configure the shell background color Definition at line 307 of file shell.tcl. References autotag(). |
|
restrict BackSpace to the command-line Definition at line 870 of file shell.tcl. Referenced by home_action(). |
|
clear the shell screen. Definition at line 922 of file shell.tcl. References control_l_action(). |
|
kind of control-c Definition at line 891 of file shell.tcl. Referenced by delete_action(). |
|
terminate the application. Definition at line 911 of file shell.tcl. Referenced by control_q_action(). |
|
clear the shell screen preventing the commandline content. Definition at line 929 of file shell.tcl. References b1_action(). Referenced by clear(). |
|
terminate the application. Definition at line 904 of file shell.tcl. References control_d_action(). |
|
delete doesnt delete the selection. Definition at line 883 of file shell.tcl. References control_c_action(). |
|
delete the current command-line |
|
double-1 without changing the insert-position. |
|
scroll forward thru the commandline history. |
|
set insert cursor to the end of commandline. Definition at line 856 of file shell.tcl. References home_action(). |
|
get a single line of input from the user without interpreting it. This proc is only used during subprompts, e.g. as used by frobbing Definition at line 467 of file shell.tcl. |
|
alternative <Return> handler, This version gets a line, but does not call cdg commands. Definition at line 492 of file shell.tcl. |
|
get actual command. Definition at line 1029 of file shell.tcl. References resetCmd(). |
|
get the set of possible commandline completions.
|
|
set the insert cursor to the start of commandline. Definition at line 863 of file shell.tcl. References backspace_action(). Referenced by end_action(). |
|
print a string to the shell output.
Referenced by setCursor(). |
|
restrict cursor movement to the commandline end. |
|
simply scroll down one page, no cursor positioning. Definition at line 983 of file shell.tcl. References shift_up_action(). Referenced by prio_action(). |
|
simply scroll up one page, no cursor positioning. Definition at line 976 of file shell.tcl. References next_action(). |
|
itk_option: configure the shell prompt. the actual value will be set to one of -prompt1 or -prompt2 |
|
itk_option: configure the shell first prompt
|
|
itk_option: configure the shell second prompt
|
|
reset commandline. Definition at line 1038 of file shell.tcl. Referenced by getCmd(). |
|
the return key binding. |
|
evaluate a command in the safe interpreter. Definition at line 322 of file shell.tcl. Referenced by autotag(). |
|
source the commands in the safe interpreter.
|
|
set the insert cursor.
References insert(). |
|
simply scroll down one line, no cursor positioning. Definition at line 997 of file shell.tcl. References updateCmd(). Referenced by shift_up_action(). |
|
simply scroll up one line, no cursor positioning. Definition at line 990 of file shell.tcl. References shift_down_action(). Referenced by next_action(). |
|
switch interpreter. This method allows you to access the interpreter that executes the XCDG application. Definition at line 1055 of file shell.tcl. |
|
tab action. This is part of the commandline completion suite. Definition at line 676 of file shell.tcl. |
|
double tab action. This method is part of the commandline completion. Definition at line 609 of file shell.tcl. |
|
Triple-1 without changing the insert-position. |
|
step backwards thru the commandline history. |
|
expand commandline if needed. Definition at line 1004 of file shell.tcl. Referenced by shift_down_action(). |
|
array of additional commands |
|
boolean flag with 0: command incomplete, 1: complete |
|
start of the commandline |
|
shell command history |
|
index in the shell command history |
|
boolean flag with 0: application, 1: safe shell. the ctrl-t key lets you switch between the two interpreters. the application interpreter is the one executing the XCDG Definition at line 54 of file shell.tcl. |
|
end of the commandline |
|
the maximum nr of commands stored in the history |
|
flag indicating wether next insert deletes line |
|
temporarily store the old shell background color here |
|
interpreter where all commands are executed |
|
flag to show a tcl error trace or not. |
|
boolean flag 0: print command result, 1: don't |
|
list of autotag information |