|
Lines 49-55
Link Here
|
| 49 |
// 2.4 with devs (noted by moon@deathmoon.com |
49 |
// 2.4 with devs (noted by moon@deathmoon.com |
| 50 |
else if (1 == (sscanf(tty, "/dev/vc/%d", &ttyno))) |
50 |
else if (1 == (sscanf(tty, "/dev/vc/%d", &ttyno))) |
| 51 |
sprintf (buf, "/dev/vcc/a%d", ttyno); |
51 |
sprintf (buf, "/dev/vcc/a%d", ttyno); |
| 52 |
else { |
52 |
|
|
|
53 |
if ((fd = open (buf, O_WRONLY)) < 0) { |
| 53 |
usingVirtual = false; |
54 |
usingVirtual = false; |
| 54 |
scr_x = scr_y = scr_w = scr_h = 0; |
55 |
scr_x = scr_y = scr_w = scr_h = 0; |
| 55 |
last_screen = new attrib[width * height]; |
56 |
last_screen = new attrib[width * height]; |
|
Lines 58-70
Link Here
|
| 58 |
out = new Buffer(32000); |
59 |
out = new Buffer(32000); |
| 59 |
} |
60 |
} |
| 60 |
|
61 |
|
| 61 |
if (usingVirtual) { |
|
|
| 62 |
if ((fd = open (buf, O_WRONLY)) < 0) { |
| 63 |
fprintf (stderr, "\nFailed to open %s: %m. \nPerhaps your permissions are wrong?\n\n", buf); |
| 64 |
exit (EXIT_FAILURE); |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
init_curses(usingVirtual); |
62 |
init_curses(usingVirtual); |
| 69 |
} |
63 |
} |
| 70 |
|
64 |
|