IRIS Keyboard & etc.

Mark Callow msc at ramoth.esd.sgi.com
Wed Mar 7 06:25:27 AEST 1990


--
>From the TARDIS of Mark Callow
msc at ramoth.sgi.com, ...{ames,decwrl}!sgi!msc
"There is much virtue in a window.  It is to a human being as a frame is to
a painting, as a proscenium to a play.  It strongly defines its content."
In article <2715 at fs1.cam.nist.gov>, blue at cam.nist.gov (Jim Blue) writes:
> I have been active at RTFM, all 31 volumes (though most of them don't apply)
> but haven't found how to get the number of lines and columns inside a wsh.
> (getsize() gives the size in pixels, but not in lines and columns.) Since vi,
> among other programs knows how to do this, it must be possible.
> 
Use the bsd ioctl.

#include <sys/termio.h>

	ioctl(fd, TIOCGWINSZ &winsiz)

or let curses/terminfo handle it for you.

It appears we didn't add this to our termio man page.  Sorry about that.

> Appendix A.2 of the "Using the GL/DGL Interface" in the "4Sight Programmer's
> Guide lists the string supposedly returned by each key. I find that some
> work and some don't. For example, F1 really does return "ESC [ 001 q"
(without
> the quotes and spaces), but F4 returns some garbage left over from an
> old "ls" command. After powering the machine down and up, F4 returns some
> other stuff (I don't know what).
wsh sets up some default bindings on the function keys.  See wsh(1) and
bindkey(1) for details.

> 
> Alt C with the right Alt key returns the correct value, but not with the
> left Alt key.
The left alt key is really a COMPOSE key.

	-Mark



More information about the Comp.sys.sgi mailing list