OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [exp_tty_comm.c] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* exp_tty_comm.c - tty support routines common to both Expect program
2
   and library */
3
 
4
#include "expect_cf.h"
5
#include <stdio.h>
6
 
7
#include "exp_tty_in.h"
8
#include "exp_rename.h"
9
#define EXP_AVOID_INCLUDING_TCL_H
10
#include "expect_comm.h"
11
#include "exp_log.h"
12
 
13
#ifndef TRUE
14
#define FALSE 0
15
#define TRUE 1
16
#endif
17
 
18
int exp_disconnected = FALSE;           /* not disc. from controlling tty */
19
 
20
/*static*/ exp_tty exp_tty_current, exp_tty_cooked;
21
#define tty_current exp_tty_current
22
#define tty_cooked exp_tty_cooked
23
 
24
void
25
exp_init_tty()
26
{
27
        extern exp_tty exp_tty_original;
28
 
29
        /* save original user tty-setting in 'cooked', just in case user */
30
        /* asks for it without earlier telling us what cooked means to them */
31
        tty_cooked = exp_tty_original;
32
 
33
        /* save our current idea of the terminal settings */
34
        tty_current = exp_tty_original;
35
}
36
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.