|
NAMEdeco - visual shell for UNIXFORMATdeco [directory]DESCRIPTIONDECO, or Demos Commander, is a visual interface for the UNIX operating system, developed by the motives of the widely known Norton Commander.Control characters are designated below as ^X, which means: CTRL+X. The "~" in file names means "home directory". Functional KeysDECO is adjusted to the type of terminal by means of the termcap terminal description file. While in operation, DECO uses 10 functional keys F1-F10. To determine the keys,
For terminals without an additional keyboard, it is possible to enter commands by control characters or <Esc> X sequence. Here is the Commands Table:
Note that for some devices (for example, PC AT console) F1-F10 keys are used, while for others - keys 1-9, 0 of the additional keyboard. Command Canceling and Exit from DecoIn any state of DECO, press F10 to reset and cancel the current menu. If DECO is in the usual mode (system command input), F10 calls for an exit from the DECO menu:
Yes (exit), No (no exit), and Shell (run csh) should be selected by the arrow keys and the RETURN key (ENTER for IBM PC). If Shell is selected, you have to input the exit command in order to return to DECO. Getting HelpF1 provides you with a built-in help message. Press F10 to return to DECO.Deco Windows and Operation ModesUsually, DECO shows two panels (right and left ones), two directories are displayed there. One of these panels is the current one, where all the operations take place (the name of this panel is printed in italics). The second panel is used to point out the place to copy, move or link files, as well as to present information about the current directory (see the ^L command). The TAB command (Tab or ^I key) serves as a fast way to select another panel as the current one, the key ^U is used to swap panels on the screen.System commands are executed from DECO in the same manner, as from the usual interpreter sh or csh (see below, Running UNIX Commands). DECO calls for the csh interpreter to execute commands. The single restriction is that SHELL is restarted each time, so variable values, aliases, jobs, etc. are not memorized. Initially, DECO is set to the screen mode, where panels, status line (in the upper part of the screen, which includes the names of machine, user, terminal and current time), and hint line (in the lower part of the screen) are displayed. In this mode, all DECO commands are executed (F1 - F10 and others). After a DECO command is over, DECO remains in the command input mode. No panels and prompts are displayed in this mode (for faster operation). In this mode, only system commands are executed, as well as some DECO commands, such as ^B (operation with History commands journal). Once an empty command (Return) is entered, DECO returns to the screen mode, and panels are displayed. In some cases, DECO can move to the screen mode without highlighting the panels (for example, calling for History from the non-screen mode). During operations with different menus, DECO moves to the menu mode. In this case, the commands listed in the menu are executed, arrows move the cursor along the menu, F10 means always "Cancel the MENU mode". Executing Unix CommandsDECO is usually set to the screen mode when you can use arrows to travel across the directory and select files, as well as form a command line by entering characters. You can add the names of the current and selected files to the end of the command line by the LineFeed or ^J commands. Using ^E and ^X commands, it is possible to move along the History, i.e. to "recall" previously executed commands. To erase the command line, use the ^Y command.System commands executed are memorized in the History. You can call for History from the DECO main menu, as well as by the ^B command. In History, arrows move the cursor along the commands, the ^J command serves to insert the current file name into the command line, Return - to insert the current file name and execute the command. The EDIT mode serves to correct the command line. This mode is characterized by the fact that a directory name is not italicized in DECO panels. The ^P command turns this mode on and off. In EDIT, arrows move the cursor along the command line and across History. Commands Del or ^G delete characters under the cursor. Command ^V serves for quoting non-printable characters. Next symbol, following this command, will be inserted into command line. File TypesDECO differs regular, special files and directories. Type of file is marked to the left of file name by character tag. There are following file tags:
Handling Selected FilesSelected files are used to set filenames for commands. Only regular files can be selected. To select the files (and to cancel the selection), the following commands can be used:
If there are no selected files, the current file is used in the command. Entering MenuF9 brings you to the MENU mode. To execute the command, select the desired command and press Return.The menu's structure is given below. Many commands can be called for without panel mode, the corresponding keys are given in the right column:
Commands from the menu are described in detail below. Customizing PanelsLEFT and RIGHT sections are used to alter states of the left and right panels, respectively. The commands Brief, Long, Full set different levels of detailization of information about files. The command Status turns the status panel on and off, this panel is situated in the opposite panel. Command Align extensions switches mode of flushing file name extensions to the right margin.The next group of commands manages sorting of file names inside window. Files are sorted by type (directory, block device, etc.) and inside each type - by some parameter (name, extension, size, modification time). Commands Sort by name, Extension, Time, Size choose mode of sorting by parameter. Command Unsorted turns off parameter sorting mode. Command Sort by type turns off sorting by file type. Command Reverse sets reverse sorting mode. The command Re-read re-reads the directory. The command Pattern sets a pattern of "visible" filenames. The pattern is set according to the usual UNIX rules of handling filenames: ? means "any symbol", * means "any number of any symbols", [symbols] - "any of these symbols", ^ in the first position - "every file not matching the pattern". See `File Patterns' for more detail. For example, the pattern "^*.[bo]" means "not to show object and backup files". Handling FilesThe FILES section is intended for operating files. Most commands of this section are placed on the functional keyboard. Copy, link, and move commands use another panel to show the place to copy, move or link files to by default.
Other CommandsThe Commands section includes various commands:
Adjusting ModesThe Options section serves to set and save DECO operation modes:
Built-in Commands
Built-in Editor CommandsThe following commands are available in the built-in editor:
User MenusDECO has a possibility to create menus defined by the user. The Command F2 reads the file .menu, which includes the description of the menu. If the file .menu is not found, the file ~/.menu, or /usr/local/lib/deco/menu, or /usr/lib/deco/menu is being read. The menu description file has the following structure:
The character is either a Roman letter, or a digit, or a name of the functional keys F1- F10. If you press the key, a command of the menu is executed. The command may include macros like %X which are replaced in the following way:
Command can begin with the following control symbols:
Here is an example of the user menu file:
Executing FilesIf the command line is empty when Return or ^M is pressed in the panel mode, and the current file is the directory, DECO moves to this directory. If the current file is an executable one, it is executed. If the current file is a usual regular one, then the command that corresponds its name is executed. The command is described in the file ~/.deco. This allows the user to fulfill operations for each file, which depend on the name of this file, e.g., to start the C compiler for the files named *.c, to start the make utility for the file Makefile, etc.If the file ~/.deco is not found, file /usr/local/lib/deco/profile, or /usr/lib/deco/profile is being read. The file, in which operations are described by name, has the following structure:
The command can include macros (see User's menu). An example of the file ~/.deco:
File name patternsPatterns of filenames can include the following metasymbols:
FILES~/.decoini/usr/local/lib/deco/initfile /usr/lib/deco/initfile
.menu
~/.deco
NOTESIf the screen display is distorted, you can restore it by the command ^].REFERENCEScsh (1), termcap (5) Visit the GSP FreeBSD Man Page Interface. |