nanogui: My newbee question of the day ...
Subject:
Re: My newbee question of the day ...
From:
Ben Pfaff ####@####.####
Date:
28 Apr 2000 02:19:28 -0000
Message-Id: <87zoqfj7nd.fsf@pfaffben.user.msu.edu>
Martin Jolicoeur ####@####.#### writes:
> Actually, what is this ioctl doing *exactly* ?
>
> if(ioctl (tty, KDSETMODE, KD_GRAPHICS) == -1) {
> failmsg("setting graphics mode: %m");
> close(tty);
> goto fail;
> }
IIRC, at least one of the things it does is tell the kernel that
a graphics mode has been entered, discouragin the kernel from
messing with the console. ISTR that it turns off the cursor too.
To find out exactly what it does, your best bet is to read kernel
source. The fb source is pretty easy to read IMO.