🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #1008

Re: bug in pg on System V

#1008
From: Guy Streeter
Date: Wed, 12 Apr 1989 16:12
27 lines
1736 bytes
In article <4935@ingr.com> nik@ingr.com (Nik Simpson) writes:
>
>SVR3.1 version of pg behaves strangely when pressented with a file where the
>lines are exactly 81 characters long including the \n.  If your terminal is
>set to autowrap you will see this behaviour.  If the terminal is not set to
>autowrap then pg clearly fails to generate newlines so the document does not
>print sensibly.

There is nothing wrong with the way pg behaves (at least, not that I
can see).

pg uses the terminfo terminal information to determine how it should
act.  If your TERM environment variable is set to VT200, VT220, or
VT100 (among others), programs which use this information (pg, rn,
editors, etc.) will understand that your terminal has 'automatic
margins'.  Changing the terminal setup does not change terminfo's
understanding of your terminal capabilities.  If you want pg to know
that your terminal does not auto-wrap, you must set your TERM
environment variable to the name of a suitable terminfo definition.

The auto-wrap function of the DEC VTxxx-series does function in
exactly the way expected of the auto-margin capability of terminfo,
but that's another posting.

--
Guy "I am a VT220-nam32r" Streeter
ingr!b11!guy
Technical Details
Message-ID: <464@b11.INGR.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ingr!b11!guy
References: <4935@ingr.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ingr!b11!guy
From: guy@b11.INGR.COM (Guy Streeter)
Newsgroups: comp.bugs.sys5,ingr.general
Subject: Re: bug in pg on System V
Summary: well, not exactly
Keywords: pg autowrap no-newline
Message-ID: <464@b11.INGR.COM>
Date: 12 Apr 89 16:12:35 GMT
References: <4935@ingr.com>
Reply-To: ingr!b11!guy (Guy Streeter)
Followup-To: comp.bugs.sys5
Organization: Places in the Heat
Lines: 27