🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.software
Article #1278

Re: *obnoxious* & *virulent* TCSH BUG! [the evil maintainer writes back]

#1278
From: Per Hedeland
Date: Mon, 05 Oct 1992 08:41
47 lines
2636 bytes
In article <1992Oct5.023709.21074@deshaw>, christos@deshaw.com (Christos Zoulas) writes:
|> The terminal handling has been changed in tcsh-6.02. Specifically the
|> tcsh command line editor in 6.02 uses the rightmost column of the
|> terminal and does not use carriage return to wrap to the next line
|> (when possible).

As the person who attempted to get this evil line wrapping to finally
behave right, I'd like to point out that I did in fact introduce an evil
bug in it, which will only manifest itself on certain terminals. "It
will be fixed in the next release":-), but if you're impatient and get
hold of the source, you could try applying the patch below. A workaround
might be to make sure, e.g. by setting some tabstops, that you can 'tab'
your way to the rightmost column of the screen (while not in tcsh, of
course) - if you can already do this, your problem is presumably
something else.

--Per Hedeland
per@erix.ericsson.se  or
per%erix.ericsson.se@sunic.sunet.se  or
...uunet!erix.ericsson.se!per

*** ed.screen.c.orig	Sat May 16 02:00:47 1992
--- ed.screen.c	Sun May 24 09:44:47 1992
***************
*** 878,888 ****
  			for (i = (CursorH & 0370); i < (where & 0370); i += 8)
  			    (void) putraw('\t');	/* then tab over */
  			CursorH = where & 0370;
! 			if (CursorH < where && where == (TermH - 1)) {
! 			    /* optimize: we can tab to the last column */
! 			    (void) putraw('\t');
! 			    CursorH = where;
! 			}
  		    }
  		}
  		/* it's usually cheaper to just write the chars, so we do. */
--- 878,887 ----
  			for (i = (CursorH & 0370); i < (where & 0370); i += 8)
  			    (void) putraw('\t');	/* then tab over */
  			CursorH = where & 0370;
! 			/* Note: considering that we often want to go to
! 			   TermH - 1 for the wrapping, it would be nice to
! 			   optimize this case by tabbing to the last column
! 			   - but this doesn't work for all terminals! */
  		    }
  		}
  		/* it's usually cheaper to just write the chars, so we do. */
Technical Details
Message-ID: <1992Oct5.084150.1331@eua.ericsson.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ericom!eua.ericsson.se!erix.ericsson.se!per
References: <1992Oct4.211709.23321@Princeton.EDU> <x2x1H7+7&9@atlantis.psu.edu> <1992Oct5.023709.21074@deshaw>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.software,comp.unix.shell
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ericom!eua.ericsson.se!erix.ericsson.se!per
From: per@erix.ericsson.se (Per Hedeland)
Subject: Re: *obnoxious* & *virulent* TCSH BUG! [the evil maintainer writes back]
Message-ID: <1992Oct5.084150.1331@eua.ericsson.se>
Sender: news@eua.ericsson.se
Nntp-Posting-Host: aalborg.eua.ericsson.se
Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
References: <1992Oct4.211709.23321@Princeton.EDU> <x2x1H7+7&9@atlantis.psu.edu> <1992Oct5.023709.21074@deshaw>
Date: Mon, 5 Oct 1992 08:41:50 GMT
Lines: 47