summaryrefslogtreecommitdiffstats
path: root/x11vnc/linuxfb.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-12 02:51:07 +0000
committerrunge <runge>2006-07-12 02:51:07 +0000
commitd7d55ec8adb20473943d0a26b949534e003c723b (patch)
tree4300b8ce61f5e91d5c8347b4e4ff013cfb151985 /x11vnc/linuxfb.c
parent0abd329d6a8dd17b6d0cd28a8f49607c3b03af45 (diff)
downloadlibtdevnc-d7d55ec8adb20473943d0a26b949534e003c723b.tar.gz
libtdevnc-d7d55ec8adb20473943d0a26b949534e003c723b.zip
x11vnc: wording changes; remove "-rawfb cons" in favor of "console"
Diffstat (limited to 'x11vnc/linuxfb.c')
-rw-r--r--x11vnc/linuxfb.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/x11vnc/linuxfb.c b/x11vnc/linuxfb.c
index 0b3d0ee..4fd3f22 100644
--- a/x11vnc/linuxfb.c
+++ b/x11vnc/linuxfb.c
@@ -26,15 +26,15 @@ char *console_guess(char *str, int *fd) {
if (strstr(in, "/dev/fb") == in) {
free(in);
- in = (char *) malloc(strlen("cons:") + strlen(str) + 1);
- sprintf(in, "cons:%s", str);
+ in = (char *) malloc(strlen("console:") + strlen(str) + 1);
+ sprintf(in, "console:%s", str);
} else if (strstr(in, "fb") == in) {
free(in);
- in = (char *) malloc(strlen("cons:/dev/") + strlen(str) + 1);
- sprintf(in, "cons:/dev/%s", str);
+ in = (char *) malloc(strlen("console:/dev/") + strlen(str) + 1);
+ sprintf(in, "console:/dev/%s", str);
}
- if (strstr(in, "cons") != in) {
+ if (strstr(in, "console") != in) {
rfbLog("console_guess: unrecognized console/fb format: %s\n", str);
free(in);
return NULL;
@@ -77,19 +77,16 @@ char *console_guess(char *str, int *fd) {
have_uinput = check_uinput();
}
- if (!strcmp(in, "consx") || !strcmp(in, "consolex")) {
+ if (!strcmp(in, "consolex")) {
do_input = 0;
- } else if (!strcmp(in, "cons") || !strcmp(in, "console")) {
+ } else if (!strcmp(in, "console")) {
/* current active VT: */
if (! have_uinput) {
tty = 0;
}
} else {
int n;
- if (sscanf(in, "cons%d", &n) == 1) {
- tty = n;
- have_uinput = 0;
- } else if (sscanf(in, "console%d", &n) != 1) {
+ if (sscanf(in, "console%d", &n) != 1) {
tty = n;
have_uinput = 0;
}
@@ -98,7 +95,7 @@ char *console_guess(char *str, int *fd) {
if (do_input) {
if (tty >=0 && tty < 64) {
pipeinput_str = (char *) malloc(10);
- sprintf(pipeinput_str, "CONS%d", tty);
+ sprintf(pipeinput_str, "CONSOLE%d", tty);
rfbLog("console_guess: file pipeinput %s\n",
pipeinput_str);
initialize_pipeinput();