Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!mimsy!oddjob!gargoyle!ihnp4!cbosgd!osu-eddie!bob%tut.cis.ohio-state.edu
From: bob%tut.cis.ohio-state.edu@osu-eddie.UUCP (Bob Sutterfield)
Newsgroups: comp.windows.x
Subject: Re: Window sizes
Message-ID: <3815@osu-eddie.UUCP>
Date: Thu, 16-Jul-87 11:15:08 EDT
Article-I.D.: osu-eddi.3815
Posted: Thu Jul 16 11:15:08 1987
Date-Received: Sat, 18-Jul-87 08:48:56 EDT
References: <3239@cit-vax.Caltech.Edu>
Sender: news@osu-eddie.UUCP
Reply-To: bob@ohio-state.ARPA (Bob Sutterfield)
Organization: The Ohio State University Dept of Computer & Information Science
Lines: 18
Keywords: RTFM
In article <3239@cit-vax.Caltech.Edu> jon@oddhack.Caltech.EDU (Jon Leech) writes:
>
> Is it possible for a program running in an xterm or hpterm (I
>think hpterm is only in the HP X distribution) window to query the
>window for its size? ...Also, I would like the size in rows and
>columns of text, not pixels.
Look in the document `Xterm Control Sequences', under `Sun TTY
emulation'. You want to send "\e[18t", and will get back
"\e[8;;t" where \e is the escape character (octal 33)
and and are strings of decimal digits.
You can find the document as X.V10R4/doc/Control.doc.
-=-
Bob Sutterfield, Department of Computer and Information Science
The Ohio State University; 2036 Neil Ave. Columbus OH USA 43210-1277
bob@ohio-state.{arpa,csnet} or ...!cbosgd!osu-eddie!bob
soon: bob@aargh.cis.ohio-state.edu