Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

nextch
Summary

int nextch(display_text)
char *display_text      /* prompt text */
Description

The nextch function prompts the user to press some key by displaying display_text on the bottom line of the screen. nextch works also under tutorial mode (reading key strokes from the sucro file).

Return Value

nextch returns the SURVO 84C key code of the key pressed. The key codes are given in survo.h .

See Also

tut_init, prompt

Example

int m;
m=0;
while (m!=CODE_RETURN)
    m=nextch("Press ENTER!");

/* The program waits until ENTER is pressed */


Front page of Survo C libraries