Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!bridge2!jarthur!elroy.jpl.nasa.gov!ames!sgi!shinobu!odin!ramoth.esd.sgi.com!msc From: msc@ramoth.esd.sgi.com (Mark Callow) Newsgroups: comp.sys.sgi Subject: Re: IRIS Keyboard & etc. Message-ID: <4944@odin.SGI.COM> Date: 6 Mar 90 20:25:27 GMT References: <2715@fs1.cam.nist.gov> Sender: news@odin.SGI.COM Reply-To: msc@sgi.com Organization: Silicon Graphics Inc., Entry Systems Division Lines: 38 -- From the TARDIS of Mark Callow msc@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@fs1.cam.nist.gov>, blue@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 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