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 |
* |
* |
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" |
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) { |