harrison@utfyzx.UUCP (08/15/86)
If one names the program FOO.PRG, then default is no cursor, as
has been stated by many others. Naming it FOO.TOS will turn on
the cursor, but if the program also contains windows and other
GEM stuff from the RSC set it will usually hang. The solution
for me, where sometimes I'm using windows and sometimes just
naked printf's in the same program is to explicitly turn
the cursor on and off. Also, GEM will fire up the cursor where
it was left last time, so I usually home it and clear the screen.
Then I can keep calling it FOO.PRG. Example:
/* GEM stuff */
....
/* regular stuff begins */
graf_mouse(M_OFF, 0L); /* turn off mouse */
Cconout('\033'); Cconout('H'); /* home cursor */
Cconout('\033'); Cconout('J'); /* clear to end of screen */
Ccconout('\033'); Cconout('e'); /* enable cursor */
printf("Hello world.\n");
Cconout('\033'); Cconout('f'); /* cursor off */
...
Then, the link is:
link68 [u] foo.68k=gemstart,foo,vdibind,aesbind,osbind,gemlib,libf
--
David Harrison, Dept. of Physics, Univ. of Toronto
{ihnp4,utzoo}!utcs!utfyzx!harrison