CS 440 Additional Materials

Simplest Text Editor on Unix

The text editor easiest to learn on Unix is pico. It supports basic commands of emacs. If you learn how to use pico, you can later switch to emacs, which is a much more powerful text editor. To activate the pico text editor, issue the Unix command pico.

Learning and Using EMACS

Tutorial Click "HELP" on the menu bar and then select "Emacs Tutorial". You now can follow the instructions given on the pages displayed.
Commands List of EMACS commands.
Tutorial Pandey An EMACS tutorial created by Rajev Pandey. After saving this file, issue the Unix command
"../cs311/emacs tutorial.rpandey".
Initialization File You can customize EMACS with the file .emacs stored in your home directory. The EMACS commands stored in this file are executed when you start EMACS. You may copy the instructor's .emacs file from directory ~minoura.

C Shell Initialization File

You can customize csh or tcsh with the file .cshrc stored in your home directory. The c-shell commands stored in this file are executed each time csh or tcsh is started. You may copy the instructor's .cshrc file from directory ~minoura to your home directory with the Unix command "cp ~minoura/.cshrc .". After you copy the .cshrc file, issue the Unix command source .cshrc, or activate another xterm window.

Creating Screen Dumps on a Unix Machine

  1. Activate the xv program by issuing Unix command xv.
  2. Press the right mouse button within the xv window displaying red fishes.
  3. Press Grab button in the new window titled xv controls.
  4. Specify the delay of 3 to 10 seconds and the AutoGrab mode in the new window titled xv grab.
  5. Move to the cursor to the window to be captured, and wait for a beep. With the beep, the captured content of the window will replace the fishes in the xv window.
  6. Press the Save button in the window titled xv controls.
  7. In the window titled xv save, select Postscript for Format and Greyscale (sic) for Colors, and provide the file name for the postscript file storing the screen dump image.
  8. You can adjust the size and location of the image to be printed with the controls displayed in the window titled xv postscript.
  9. Send the postscript file created to a printer with the Unix command lp.