Bioplib
Protein Structure C Library
|
Windowing I/O for various systems. More...
Go to the source code of this file.
Functions | |
void | blScreen (char *string) |
void | blPrompt (char *string) |
void | blRePrompt (void) |
void | blGetKybdString (char *string, int maxlen) |
void | blPagingOn (void) |
void | blPagingOff (void) |
void | blWindowMode (BOOL mode) |
void | blWindowInteractive (BOOL mode) |
int | blYorN (char deflt) |
Windowing I/O for various systems.
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.
The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.
The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.
Definition in file WindIO.c.
void blGetKybdString | ( | char * | string, |
int | maxlen | ||
) |
void blPagingOff | ( | void | ) |
void blPagingOn | ( | void | ) |
void blPrompt | ( | char * | string | ) |
[in] | *string | Prompt string |
Sets a prompt for input. If windowing is on, this simply sets the prompt variable (the actual prompt is issued by the GetKybdString() function). If no windowing is used, the actual string is printed. If the prompt ends with a . it is simply printed; if not, a > is appended.
void blRePrompt | ( | void | ) |
Reissue the current prompt. Only has any effect when windowing is not in use. Normally only used by ReadBufferedFile() and ProbeBufferedFile() to re-issue prompts while eating blank lines.
void blScreen | ( | char * | string | ) |
[in] | *string | String to write on window |
Writes information to the screen. Handles any windows as appropriate.
void blWindowInteractive | ( | BOOL | mode | ) |
[in] | mode | TRUE: Is interactive (default) FALSE: Not interactive |
Switch interactive mode on or off. If switched off, calls WindowMode(FALSE) to switch off windowing
void blWindowMode | ( | BOOL | mode | ) |
int blYorN | ( | char | deflt | ) |
[in] | *deflt | Default response ('y' or 'n') if return is pressed without a letter or an invalid letter is given |
Get a yes or no response from the keyboard
A default ('y' or 'n') is supplied in the function call and hitting <return> or supplying any invalid character will result in the default being used.
The routine will work correctly with any response which starts with the right letter (e.g. Yes, Yeah, yellow(!), no, Never, etc.)