kbdterm.h File Reference

See also:
kbdterm.c
More...

Include dependency graph for kbdterm.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define kbd_line   CFC_EXPORT_NAME( kbd_line)

Functions

void reset_kbd_line (char *prompt, char *line, int *code)
 Redraw prompt and empty input buffer.
int CFC_API kbd_line (char *prompt, char *line, int *code)
 Read a line on terminal.


Detailed Description

See also:
kbdterm.c

Definition in file kbdterm.h.


Define Documentation

#define kbd_line   CFC_EXPORT_NAME( kbd_line)

Definition at line 20 of file kbdterm.h.


Function Documentation

int CFC_API kbd_line ( char *  prompt,
char *  line,
int *  code 
)

Read a line on terminal.

Parameters:
[in] prompt is a null terminated prompt
[out] line is a null terminated character string, supposedly long enough ??
[in,out] code is an integer variable indicating On input <0 do not print the prompt, start with a line =0 print the prompt, start with an empty line >0 print the prompt, start with a line >1 as above but ignore Recall codes On output -1 recall previous line, if any, and reenter 0 OK, normal return +1 recall next line, if any, and reenter
Returns:
the number of characters in the string line

Definition at line 96 of file kbdterm.c.

References BACKSPACE, MAXBUF, reset_kbd_line(), reset_termio(), set_termio(), and SPACE.

Here is the call graph for this function:

void reset_kbd_line ( char *  prompt,
char *  line,
int *  code 
)

Redraw prompt and empty input buffer.

See also:
kbd_line for parameters.

Definition at line 62 of file kbdterm.c.

Referenced by kbd_line().

Here is the caller graph for this function:


Generated on Tue Mar 13 15:19:11 2007 for SIC by  doxygen 1.5.1