Parameters for OS_swis in oslib/os.h library

Chris Dewhurst cdewhurst2010 at btinternet.com
Thu Feb 4 20:15:05 GMT 2016


Hi all,

I am not much more than a beginner at the C language which may explain 
why I'm stuck on the following. Hope one of you can help.

The StrongHelp for os_screen_mode (for example) says:

   Declaration: extern void os_set_mode ( void );

   Description: VDU command to change display mode - must be followed 
by 'mode' - prefer OS_ScreenMode

So the start of my C program looks like:

   #include "oslib/os.h
   extern void osscreenmode_select ( void );

My question is how do you "follow" the os_set_mode call with a 'mode' 
number? For instance, to change to Mode 7 where does the 7 go?

Incidentally when StrongHelp says "prefer OS_ScreenMode" there appears 
to be no reference to OS_ScreenMode, at least it isn't listed in the 
StrongHelp.

thanks.
-- 
Chris



More information about the oslib-user mailing list