Doxygen Documentation

Main Index

Package Index

Package:

CLI

Version:

V0-0-5

Marked:

(not marked)

Constituent:

TV

Tag:

linux-gcc


Interface   Compound List   File List   Compound Members   File Members  

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 Dec 11 22:17:36 2003 by doxygen 1.3.3