25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: console.c,v 1.15 2006/02/18 13:42:38 debug Exp $ |
* $Id: console.c,v 1.16 2006/05/05 21:28:09 debug Exp $ |
29 |
* |
* |
30 |
* Generic console support functions. |
* Generic console support functions. |
31 |
* |
* |
76 |
#include "machine.h" |
#include "machine.h" |
77 |
#include "memory.h" |
#include "memory.h" |
78 |
#include "misc.h" |
#include "misc.h" |
79 |
|
#include "settings.h" |
80 |
|
|
81 |
|
|
82 |
extern char *progname; |
extern char *progname; |
83 |
extern int verbose; |
extern int verbose; |
84 |
|
extern struct settings *global_settings; |
85 |
|
|
86 |
|
|
87 |
static struct termios console_oldtermios; |
static struct termios console_oldtermios; |
973 |
{ |
{ |
974 |
int handle; |
int handle; |
975 |
struct console_handle *chp; |
struct console_handle *chp; |
976 |
|
struct settings *console_settings = settings_new(); |
977 |
|
|
978 |
|
settings_add(global_settings, "console", 1, |
979 |
|
SETTINGS_TYPE_SUBSETTINGS, 0, console_settings); |
980 |
|
|
981 |
|
settings_add(console_settings, "allow_slaves", 0, |
982 |
|
SETTINGS_TYPE_INT, SETTINGS_FORMAT_YESNO, (void *)&allow_slaves); |
983 |
|
|
984 |
chp = console_new_handle("MAIN", &handle); |
chp = console_new_handle("MAIN", &handle); |
985 |
if (handle != MAIN_CONSOLE) { |
if (handle != MAIN_CONSOLE) { |