I am using Fedora 8 and I have the same problem.  My screen shifts to
the right when a message is written to the console.  When I run
xconsole, the problem goes away.  xconsole consumes the messages so it
never makes it to the screen.  Its not always possible to have xconsole
running, ie when your at the login screen.  So I wrote a short program
to redirect the console.   Its working great so far.  My plan is to kick
the app off on boot and redirect the output to a file.


gcc -lutil conredir.c -o conredir


#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <pty.h>
#include <utmp.h>

int main(int argc, char *argv[])
{
        int pty;
        int tty;
        FILE *input;
        int e;

        //creates a new terminal
        e = openpty(&pty, &tty, NULL, NULL, NULL);
        if (e == -1)
        {
                printf("Error creating pty\n");
                return 1;
        }

        int on = 1;
        //assigns the out on the terminal to a console
        e = ioctl(tty, TIOCCONS, (char *)&on);
        if (e == -1)
        {
                printf("Error taking console\n");
                return 1;
        }

        //opens a file stream to the terminal 
        input = fdopen (pty, "r");

        char buf[1024];

        //print what we get
        while(1)
        {
                fgets(buf, 1024, input);
                printf("%s", buf);      
                fflush(stdout);

        }
        return 0;
}

-- 
(Multiseat) screen shifts when /dev/console written to
https://bugs.launchpad.net/bugs/153425
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to