nanogui: My newbee question of the day ...
Subject:
My newbee question of the day ...
From:
Martin Jolicoeur ####@####.####
Date:
28 Apr 2000 00:28:20 -0000
Message-Id: <3908D8F0.152213F7@visuaide.com>
Hi guys,
Anybody can tell me what this code snip does exactly (taken from fb_open
in src_fb.c)
Actually, what is this ioctl doing *exactly* ?
/* open tty, enter graphics mode*/
tty = open ("/dev/tty0", O_RDWR);
if(tty < 0) {
failmsg("can't open /dev/tty0: %m");
goto fail;
}
if(ioctl (tty, KDSETMODE, KD_GRAPHICS) == -1) {
failmsg("setting graphics mode: %m");
close(tty);
goto fail;
}
close(tty);
Thanks,
Martin Jolicoeur
GVT Project
####@####.####