trm_ctrls()

Purpose

Allow termination by pressing <Ctrl+S> followed by <Ctrl+C>

Old name

#define _ctrls trm_ctrls

Syntax

void trm_ctrls(void)

Description

The function trm_ctrls() halts the program if the user presses <Ctrl+S> followed by <Ctrl+C>. It must be called repeatedly to have the desired effect.

The functions which update the screen contain calls to the function trm_ctrls(). These functions are useful as a means of halting batch processing.