/[gxemul]/trunk/src/console.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/console.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 23 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 25  Line 25 
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   *   *
# Line 76  Line 76 
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;
# Line 971  void console_init(void) Line 973  void console_init(void)
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) {

Legend:
Removed from v.23  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26