Please enable JavaScript to view this site.

Navigation: TCC > Command Line

Variable Name Completion

Scroll Prev Top Next More

Variable name completion works like filename completion. If the parameter begins with a %, the completion routines will scan the environment, internal variables, and variable functions for matching variable names. For example, if the PROMPT and PATH variables are in the environment, in that order, and no other variables start with p, the sequence below may be used to display the value of PATH:

 

echo %p<Tab>

echo %PROMPT<Tab>

echo %PATH<Enter>

 

You can view matching variables in a variable completion window. To activate the window, press F7 or Ctrl-Tab at the command line. You will see a popup window, with a sorted list of variable names that match any partial name you have entered on the command line. You can search for a name by entering a string  (including wildcards or regular expressions) in the edit window on the title bar. TCC will remove non-matching lines from the window. See Popup Windows for details.

 

Variable Completion Window Keys:

 

F7 or Ctrl-Tab(from the command line)  Open the window.        
UpScroll the display up one line.        
DownScroll the display down one line.        
LeftScroll the display left 4 columns.        
RightScroll the display right 4 columns.        
PgUpScroll the display up one page.        
PgDnScroll the display down one page.        
HomeGo to the beginning of the list.        
EndGo to the end of the list.        
Enter or Double ClickInsert the selected variable name into the command line.

 

Note: The keystrokes shown above are the default values. See Key Mapping Directives for details on how to assign different keystrokes.