GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CLI / V0-1-1 > TV / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

Name

TV - A fully functional line interface based on the CLI package.

Synopsis

TV

Drops the caller into the TV interface.

Description

The TV command provides an example of how to use CLI to build up a command line interface. CLI is complicated enough that it deserves a proper manual, but given our current time pressures that's not going to happen.

CLI is based on the old VMS Command Line Interface, so a good first source of documentation are the corresponding DEC manuals. Beyond that, try to reverse engineer this example. The model is a TV remote which can be used to control:

To start the example, just type TV and the program will drop you into a subcommand mode with the prompt TV> . The two most useful commands at this point are help, which will print a brief synopsis of available commands, and show, which will list the current settings (if the power is on ... you didn't expect the TV to work with the power off did you!). Your first command should probably be power on.
Generated on Thu Sep 24 16:20:34 2009 by  doxygen 1.5.3