[5438] in testers

home help back first fref pref prev next nref lref last post

Re: sun4 9.2.4: from ignores terminal width

daemon@ATHENA.MIT.EDU (Aaron M. Ucko)
Wed May 28 12:14:02 2003

To: Robert A Basch <rbasch@MIT.EDU>
Cc: testers@MIT.EDU
From: amu@alum.mit.edu (Aaron M. Ucko)
Date: 28 May 2003 12:13:59 -0400
In-Reply-To: <200305281536.LAA17179@abulia.mit.edu>
Message-ID: <udl8ysrkq0o.fsf@multics.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Robert A Basch <rbasch@MIT.EDU> writes:

> Currently we do not have a good way to get the terminal width in Perl,
> because the ioctl header is broken, at least on Linux; when I tried
> "require 'sys/ioctl.ph';", perl complained that it can't locate
> asm/ioctls.ph.  We skip h2ph processing of /usr/include/asm/, due to
> problems with some of the headers there.

Ah, I should have known it wouldn't be so easy.

> So I guess we either need to fix the ioctl header somehow, or resort
> to parsing stty output.

Hm.  Even if you did manage to fix the header, working with struct
winsize from Perl would probably be ugly, so parsing may actually be
the best approach. :-/

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger amu@monk.mit.edu (NOT a valid e-mail address) for more info.

home help back first fref pref prev next nref lref last post