/[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 2 by dpavlin, Mon Oct 8 16:17:48 2007 UTC revision 6 by dpavlin, Mon Oct 8 16:18:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: console.c,v 1.6 2005/03/05 12:17:53 debug Exp $   *  $Id: console.c,v 1.8 2005/05/29 17:51:45 debug Exp $
29   *   *
30   *  Generic console support functions.   *  Generic console support functions.
31   *   *
# Line 42  Line 42 
42  #include <string.h>  #include <string.h>
43  #include <termios.h>  #include <termios.h>
44  #include <unistd.h>  #include <unistd.h>
 #include <sys/time.h>  
45  #include <sys/types.h>  #include <sys/types.h>
46    
47  #include "console.h"  #include "console.h"
# Line 181  static void start_xterm(int handle) Line 180  static void start_xterm(int handle)
180          a[0] = getenv("XTERM");          a[0] = getenv("XTERM");
181          if (a[0] == NULL)          if (a[0] == NULL)
182                  a[0] = "xterm";                  a[0] = "xterm";
183          a[1] = "-title";          a[1] = "-geometry";
184          a[2] = console_handles[handle].name;          a[2] = "80x25";
185          a[3] = "-e";          a[3] = "-title";
186          a[4] = progname;          a[4] = console_handles[handle].name;
187          a[5] = malloc(50);          a[5] = "-e";
188          sprintf(a[5], "-WW@S%i,%i", filedes[0], filedesB[1]);          a[6] = progname;
189          a[6] = NULL;          a[7] = malloc(50);
190            sprintf(a[7], "-WW@S%i,%i", filedes[0], filedesB[1]);
191            a[8] = NULL;
192    
193          p = fork();          p = fork();
194          if (p == -1) {          if (p == -1) {

Legend:
Removed from v.2  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26