Using the Caché Terminal
Using the Terminal Interactively
[Back] [Next]
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

This chapter describes the basics of how you work with the Terminal in interactive mode. It covers the following topics:

Entering Commands
To enter a command in the Terminal, simply type an ObjectScript command and its arguments. Or, if you are using a shell, type a command applicable to that shell.
Note that for Caché ObjectScript, you do not need to enter a space before the command (in contrast to when you define routines and methods).
Also note that if you start a line in the Terminal by pressing Tab, the rest of that line is entered into the routine buffer and is not executed. This behavior was defined long ago and was a useful way of creating routines. (Also see the ZINSERT command, which serves the same purpose.) Because customers no longer define routines this way, this documentation does not discuss this feature further.
Scrolling
Whenever active text arrives, the Terminal scrolls the window to the newly arrived text. Use the scroll bar on the right to scroll up or down.
You can also use the keyboard to scroll within the Terminal as follows:
Using the Keyboard to Scroll the Terminal Display
Key Combination Effect
Ctrl+Home Scroll to the top of the buffer.
Ctrl+End Scroll down to the cursor.
Ctrl+Page Up Scroll up by one page.
Ctrl+Page Dn Scroll down by one page.
Ctrl+Line Up Scroll up by one line.
Ctrl+Line Dn Scroll down by one line.
Pausing and Resuming the Terminal Scrolling
To pause the scrolling in Terminal, press Ctrl+S. While scrolling is paused, the Terminal accepts commands and processes them, but it does not write the commands or any output to the screen (and thus appears to be unresponsive).
To resume, press Ctrl+Q.
Repeating Previous Commands
To repeat a previous command, press the up arrow key repeatedly until the desired command is displayed. To enter the command, press Enter as usual.
Copying and Pasting Text
You can copy and paste text in the Terminal. To do this, you can use the context menu (right-click menu), the Edit menu, or various keyboard shortcuts. The following options are available:
Keyboard Shortcuts
You can use the following keyboard shortcuts:
Shortcuts for Copy and Paste
Action Basic Shortcut Windows Shortcut
Copy Ctrl+Ins Ctrl+C
Paste Shift+Ins Ctrl+V
Copy and paste   Ctrl+Shift+V
The shortcuts listed in the “Basic Shortcut” column are always enabled.
The shortcuts listed in the “Windows Shortcut” column are enabled only if you set the Windows edit accelerators option to Yes; for information on this setting, see the section User Settings,” in the chapter Controlling the Appearance and Behavior of the Terminal.”
Notes about Copying and Pasting
Printing
To print from the Terminal, use the following options of the File menu:
Clearing the Screen
The Edit menu provides two different options to clear the screen:
Logging the Terminal Session
To start logging the Terminal session:
  1. Select File > Logging or select Alt+L.
    Caché displays a dialog box to prompt you for the location and name of the log file. The default directory is the Caché system manager’s directory. The default filename is CACHETRM.LOG.
    The total length of the path and file name cannot exceed 126 characters.
  2. Optionally specify a different directory and filename.
  3. Select OK.
    If the log file exists, the Terminal asks if you want to overwrite it and presents three choices:
Later, to stop logging, select File > Logging or select Alt+L. Caché displays a dialog box to indicate that the log file is closed; select OK.
The log file contains only the output from a connection (independent of the current wrap mode).
You can also perform logging from a Terminal script, as described later in this book. Note that if you have started logging by using File > Logging, you cannot start a script that also performs logging. If you attempt to do so, the behavior is indeterminate.
Also see the section Learning Mode in the chapter Advanced Topics.”