Newsgroups: gnu.bash.bug
Path: utzoo!utgpu!jarvis.csri.toronto.edu!helios.physics.utoronto.ca!radio.astro.utoronto.ca!radio.astro!brian
From: brian@radio.astro.utoronto.ca (Brian Glendenning)
Subject: Re: Bash-1.04 and modems
In-Reply-To: jr@bbn.com's message of 18 Jan 90 06:12:12 GMT
Message-ID: <BRIAN.90Jan18123154@radio.astro.utoronto.ca>
Sender: brian@radio.astro.utoronto.ca (Brian Glendenning)
Organization: Radio Astronomy, Univeristy of Toronto
References: <BRIAN.90Jan7152250@radio.astro.utoronto.ca> <50659@bbn.COM>
	<51045@bbn.COM> <51066@bbn.COM>
Distribution: gnu
Date: 18 Jan 90 12:31:53

>>>>> On 18 Jan 90 06:12:12 GMT, jr@bbn.com (John Robinson) said:
jr> With a hint from Brian (diff showing his mods to disable all 8-bit
jr> operations about at line 2000 of readline.c), I figured out what bash
jr> [...]

I discovered a problem with my changes. For the record I simply did:

*** readline.c	Wed Jan 17 15:11:34 1990
--- readline.c~	Sat Nov  4 08:42:01 1989
***************
*** 1994,2000 ****
    /* If this terminal doesn't care how the 8th bit is used,
       then we can use it for the meta-key.
       We check by seeing if BOTH odd and even parity are allowed. */
!   if (0)
      {
  #ifdef PASS8
        the_ttybuff.sg_flags |= PASS8;
--- 1994,2000 ----
    /* If this terminal doesn't care how the 8th bit is used,
       then we can use it for the meta-key.
       We check by seeing if BOTH odd and even parity are allowed. */
!   if ((the_ttybuff.sg_flags & (ODDP | EVENP)) == (ODDP | EVENP))
      {
  #ifdef PASS8
        the_ttybuff.sg_flags |= PASS8;

Which I thought was a fairly foolproof thing to do. However now I
discover that delete in user programs doesn't remove the deleted text,
e.g. if I'm sending mail, and am typing in the subject, decide I made
a mistake, hit delete a few times, the characters disappear
"internally" but remain on the screen.

I don't know that much about terminal modes (obviously!). Suggestions?

Brian
--
	 Brian Glendenning - Radio astronomy, University of Toronto
brian@radio.astro.utoronto.ca  utai!radio.astro!brian  glendenn@utorphys.bitnet
