blob: be998e634e675b33bb0153987aff8f12df22c6a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* Select raw or "interactive" terminal mode for device.
* $Id$
* Copyright (c) 1997 by Tycho Softworks.
* For conditions of distribution and reuse see product license.
*/
#include <dev/tty.h>
#ifndef TERMIOS_H_MISSING
#include <termios.h>
#endif
bool interactive(stty_t stty, bool mode)
{
#ifndef TERMIOS_H_MISSING
struct termios *tios = stty;
if(mode)
{
}
else
{
tios->c_oflag = 0;
tios->c_lflag = 0;
}
#endif
return mode;
}
|