Include dependency graph for kbdterm.c:

Go to the source code of this file.
Defines | |
| #define | BACKSPACE 0x08 |
| #define | SPACE ' ' |
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. | |
| #define BACKSPACE 0x08 |
| #define SPACE ' ' |
| int CFC_API kbd_line | ( | char * | prompt, | |
| char * | line, | |||
| int * | code | |||
| ) |
Read a line on terminal.
| [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 |
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.
Definition at line 62 of file kbdterm.c.
Referenced by kbd_line().
Here is the caller graph for this function:

1.5.1