Next Previous Contents

5. Loadable drivers

5.1 Graphics drivers

A TGI driver for the standard graphics mode (160×102 in 16 colors) is available, but must be statically linked, because no file I/O is available. See the documentation for the co65 utility for information on how to do that.

The TGI driver is implemented as a dual buffering device. To use it as a single-buffer device set draw page and view page to the same value 0 or 1;

The TGI driver has a few Lynx-specific extensions.

Calling tgi_ioctl(0, spr) will display a standard Lynx sprite on screen.

Calling tgi_ioctl(1, 0) will do a flip screen. If you decide to flip the screen then it may be a good idea to call the install-routine for the joystick to get that flipped too.

Calling tgi_ioctl(2, bgindex) will set the text background color to the index defined by bgindex. If bgindex is 0 then the background color is transparent.

5.2 Extended memory drivers

No extended memory drivers are currently available for the Lynx.

5.3 Joystick drivers

A joystick driver for the standard buttons is available, but must be statically linked, because no file I/O is available. See the documentation for the co65 utility for information on how to do that.

The joystick will check to see if the screen is flipped or not in the install routine and adapt itself to the currect state.

5.4 Mouse drivers

No mouse drivers are currently available for the Lynx.

5.5 RS232 device drivers

No serial drivers are currently available for the Lynx.


Next Previous Contents