Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Console Class Reference

Represents a console that accepts user input one line at a time. More...

#include <console.h>

Collaboration diagram for Console:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void input_line (char *line, unsigned max_length)
void input_loop ()

Protected Attributes

Shell shell

Detailed Description

Represents a console that accepts user input one line at a time.


Member Function Documentation

void Console::input_line char *  line,
unsigned  max_length
 

Prompt the user for a line of text of no more than the given length.

Store it in the provided null-terminated buffer. If the line has a string in it when passed in, then use that as the default text.

void Console::input_loop  ) 
 

Repeatedly prompt the user to input a line.


Member Data Documentation

Shell Console::shell [protected]
 

this console's command shell


The documentation for this class was generated from the following files:

Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman