URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [insight/] [expect/] [exp_tty_comm.c] - Diff between revs 578 and 1765
Only display areas with differences |
Details |
Blame |
View Log
Rev 578 |
Rev 1765 |
/* exp_tty_comm.c - tty support routines common to both Expect program
|
/* exp_tty_comm.c - tty support routines common to both Expect program
|
and library */
|
and library */
|
|
|
#include "expect_cf.h"
|
#include "expect_cf.h"
|
#include <stdio.h>
|
#include <stdio.h>
|
|
|
#include "exp_tty_in.h"
|
#include "exp_tty_in.h"
|
#include "exp_rename.h"
|
#include "exp_rename.h"
|
#define EXP_AVOID_INCLUDING_TCL_H
|
#define EXP_AVOID_INCLUDING_TCL_H
|
#include "expect_comm.h"
|
#include "expect_comm.h"
|
#include "exp_log.h"
|
#include "exp_log.h"
|
|
|
#ifndef TRUE
|
#ifndef TRUE
|
#define FALSE 0
|
#define FALSE 0
|
#define TRUE 1
|
#define TRUE 1
|
#endif
|
#endif
|
|
|
int exp_disconnected = FALSE; /* not disc. from controlling tty */
|
int exp_disconnected = FALSE; /* not disc. from controlling tty */
|
|
|
/*static*/ exp_tty exp_tty_current, exp_tty_cooked;
|
/*static*/ exp_tty exp_tty_current, exp_tty_cooked;
|
#define tty_current exp_tty_current
|
#define tty_current exp_tty_current
|
#define tty_cooked exp_tty_cooked
|
#define tty_cooked exp_tty_cooked
|
|
|
void
|
void
|
exp_init_tty()
|
exp_init_tty()
|
{
|
{
|
extern exp_tty exp_tty_original;
|
extern exp_tty exp_tty_original;
|
|
|
/* save original user tty-setting in 'cooked', just in case user */
|
/* save original user tty-setting in 'cooked', just in case user */
|
/* asks for it without earlier telling us what cooked means to them */
|
/* asks for it without earlier telling us what cooked means to them */
|
tty_cooked = exp_tty_original;
|
tty_cooked = exp_tty_original;
|
|
|
/* save our current idea of the terminal settings */
|
/* save our current idea of the terminal settings */
|
tty_current = exp_tty_original;
|
tty_current = exp_tty_original;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.