2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
2024-07-19 11:43:27 -04:00
|
|
|
* Copyright 2001, 2012 Fidelity Information Services, Inc *
|
2012-02-05 11:35:58 -05:00
|
|
|
* *
|
|
|
|
* This source code contains the intellectual property *
|
|
|
|
* of its copyright holder(s), and is made available *
|
|
|
|
* under a license. If you do not know the terms of *
|
|
|
|
* the license, please stop and do not read further. *
|
|
|
|
* *
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#include "mdef.h"
|
|
|
|
#include "io.h"
|
|
|
|
#include "term_setup.h"
|
|
|
|
|
|
|
|
GBLREF int4 outofband; /*enumerated:ctrap,ctrlc or ctrly*/
|
|
|
|
GBLREF io_pair io_std_device; /* standard device */
|
|
|
|
GBLDEF bool ctrlc_on; /* whether ctrlc trap enabled*/
|
|
|
|
|
|
|
|
void term_setup(bool ctrlc_enable)
|
|
|
|
|
|
|
|
{
|
2024-07-19 11:43:27 -04:00
|
|
|
outofband = 0;
|
|
|
|
ctrlc_on = (io_std_device.in->type == tt) ? ctrlc_enable : FALSE;
|
2012-02-05 11:35:58 -05:00
|
|
|
}
|