Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/gipsy/hermes/unixshell.html
Дата изменения: Unknown
Дата индексирования: Sat Jan 17 00:30:20 2009
Кодировка:
Unix Shell and Text Editor

Unix Shell and Text Editor


Integrated shell

Typing ESC U causes the Common Output Area to be overlaid by a Unix shell window or, if the Unix shell is already present, causes the window to be popped down. The shell used is /bin/csh. Because the shell is not connected to a real terminal, functionality is somewhat limited: e.g. a screen editor would not work. Also some commands behave differently, e.g. ls produces a one-column list. (A multi-column list can be obtained with ls -C.)

By default information displayed in the Unix shell window is not logged. Logging to the Common Output Area and log file can be enabled (and disabled) by typing ESC L.

This shell can be completely terminated by typing exit in the shell window.

Overlay shell

Typing CTRL-X U causes a Unix shell to be started which overlays the whole terminal screen. `Behind the scenes' Hermes will remain active, but because all typing goes into the shell, user communication with Hermes is not possible. The shell used is the one defined by the SHELL environment variable or, if this is not defined, /bin/csh.

This shell can be terminated by typing CTRL-D or exit.

Text editor

Typing CTRL-X E causes the user to be prompted for the name of a file to be edited by a text editor which will overlay the whole terminal screen.

`Behind the scenes' Hermes will remain active, but because all typing goes into the editor, user communication with Hermes is not possible. The editor is the one defined by the environment variable EDITOR; if this is not defined, the GIPSY start-up script will attempt to find one of the editors mem, vi, or emacs in the user's path. If no editor can be found, an error message is displayed.

Text editor started by task

Tasks can also request that a text editor be started. In this case Hermes prompts the user to allow the editor to be started.

To start the editor, type RETURN; to cancel the edit, CTRL-C can be typed and the edit can be postponed by shifting the keyboard focus away from the prompt window by typing CTRL-O.


Hermes GIPSY