david@doe.utoronto.ca (David Megginson) (01/03/91)
I am writing a small program gem.ttp to run from bash, init, etc. under MiNT. Ideally, I will be able to type cd /dev/C/uniterm gem uniterm.prg in bash, and have uniterm crank up intact (or showdvi, or what have you). The obvious way is to call appl_init(), open a virtual workstation, turn on the mouse with v_show_c(0,0) (graf_mouse() doesn't seem to do the job as well), clear the screen, turn off the text cursor (not in that order), run the program, then turn off the mouse, clear the screen, turn on the cursor, and return the program's exit code. Ideally, I should try to lock the terminal first, and abort if I cannot. The first problem is that the mouse seems not to work from a program installed as TOS on the desktop. It will appear, but its clicks do not register. Also, uniterm crashes no matter what I do. I would like to be able to do this without GEM if I can -- just enable the mouse and turn off the cursor. I can turn off the cursor, but what is the easiest way to crank up the mouse? Help! David -- //////////////////////////////////////////////////////////////////////// / David Megginson david@doe.utoronto.ca / / Centre for Medieval Studies meggin@vm.epas.utoronto.ca / ////////////////////////////////////////////////////////////////////////