Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Device default terminal width in GT.M

117 views
Skip to first unread message

Sid

unread,
Feb 27, 2013, 11:41:43 AM2/27/13
to
I'm trying to prevent a <CR> after issuing many Writes on a TRM device. So I'm using the NOWRAP device parameter. But after writing 32K characters I still get a <CR>.
In the GT.M documentation at the USE WIDTH device parameter, it says that:

In M mode if WIDTH is set to 0, GT.M uses the default WIDTH of the TRM and SOC devices. USE x:WIDTH=0 is equivalent to USE x:(WIDTH=<device-default>:NOWRAP.

What's the '<device-default>' value, and how can I change it?

Thanks,
Sidney



K.S. Bhaskar

unread,
Feb 28, 2013, 5:05:22 PM2/28/13
to
There may (or may not - we have not checked) be some residual dependency in the code from OpenVMS, which has a 32KiB limit, if I remember. What happens if you explicitly set $X to zero?

Regards
-- Bhaskar

Sid

unread,
Mar 3, 2013, 4:47:41 AM3/3/13
to
Hi Bhaskar,
Setting $X to zero after each write solves this problem.
But I'm still curious, I'm using Linux. Is there a way to know what's the device-default value? Does it come from the Linux OS, from one of the stty parameters? or from the $TERM variable (vt220 in my case)?
Thanks.
Sidney

K.S. Bhaskar

unread,
Mar 4, 2013, 10:48:38 AM3/4/13
to
On Wednesday, February 27, 2013 11:41:43 AM UTC-5, Sid wrote:
Sidney --

GT.M takes that initial value from terminfo via tigetnum(). If the COLUMNS and LINES environment variables are defined, GT.M uses those.

ZSHOW "D" will tell you whether WRAP/NOWRAP is set, and the value at process startup comes from terminfo auto_right_margin.

Regards
-- Bhaskar

Sid

unread,
Mar 5, 2013, 5:09:36 AM3/5/13
to
Understood,
Thank you Bhaskar

Andy

unread,
Mar 11, 2013, 3:09:11 PM3/11/13
to
I'm using:

use $P:(NOECHO:WIDTH=0)

which seems to work for me.
0 new messages