vga_oktowrite3
Indicates whether the program has direct access to the svga
Usage
#include <vga.h>
int vga_oktowrite(void);
Overview
Indicates whether the program is in the console currently visible on the screen, that is, whether it is OK to write to video memory (if running in the background has been allowed with the function above). Note that this is not entirely safe, since a console switch interrupt may occur during a video operation. It is best to avoid this function.
Usually your program will be suspended when it has no access to the screen but see vga_runinbackground(3) for an alternative.
Releases
Unchanged in 5 releases since Debian 3.1 (Sarge).