|
|
// 2.4 with devs (noted by moon@deathmoon.com | // 2.4 with devs (noted by moon@deathmoon.com |
else if (1 == (sscanf(tty, "/dev/vc/%d", &ttyno))) | else if (1 == (sscanf(tty, "/dev/vc/%d", &ttyno))) |
sprintf (buf, "/dev/vcc/a%d", ttyno); | sprintf (buf, "/dev/vcc/a%d", ttyno); |
else { |
|
|
if ((fd = open (buf, O_WRONLY)) < 0) { |
usingVirtual = false; | usingVirtual = false; |
scr_x = scr_y = scr_w = scr_h = 0; | scr_x = scr_y = scr_w = scr_h = 0; |
last_screen = new attrib[width * height]; | last_screen = new attrib[width * height]; |
|
|
out = new Buffer(32000); | out = new Buffer(32000); |
} | } |
| |
if (usingVirtual) { |
|
if ((fd = open (buf, O_WRONLY)) < 0) { |
|
fprintf (stderr, "\nFailed to open %s: %m. \nPerhaps your permissions are wrong?\n\n", buf); |
|
exit (EXIT_FAILURE); |
|
} |
|
} |
|
|
|
init_curses(usingVirtual); | init_curses(usingVirtual); |
} | } |
| |