[comp.mail.elm] elm 2.1PL1 - Uses wrong mode on Berkeley systems

cudcv@warwick.ac.uk (Rob McMahon) (12/20/88)

Sorry, should have said with the last patch that your line numbers may vary
for all these patches, because I've trimmed out the changes to the RCS log.

This one's been mentioned before, and in fact I installed this patch straight
away without waiting to see the problem.  I don't think you want to turn off
CRMOD on BSD systems, you end up with no carriage returns in some places.

-- 
RCS file: /usr/local/src/elm/src/curses.c,v
retrieving revision 2.1
retrieving revision 2.1.1.1
diff -c -r2.1 -r2.1.1.1
*** /tmp/,RCSt1a02624	Tue Dec 20 11:34:52 1988
--- /tmp/,RCSt2a02624	Tue Dec 20 11:34:53 1988
***************
*** 788,794 ****
  
  	  (void) ioctl(TTYIN, TCGETA, &_raw_tty);    /** again! **/
  #ifdef BSD
! 	  _raw_tty.sg_flags &= ~(ECHO | CRMOD);	/* echo off */
  	  _raw_tty.sg_flags |= CBREAK;	/* raw on    */
  #else
  	  _raw_tty.c_lflag &= ~(ICANON | ECHO);	/* noecho raw mode        */
--- 791,797 ----
  
  	  (void) ioctl(TTYIN, TCGETA, &_raw_tty);    /** again! **/
  #ifdef BSD
! 	  _raw_tty.sg_flags &= ~ECHO;	/* echo off */
  	  _raw_tty.sg_flags |= CBREAK;	/* raw on    */
  #else
  	  _raw_tty.c_lflag &= ~(ICANON | ECHO);	/* noecho raw mode        */
-- 
Rob
-- 
UUCP:   ...!mcvax!ukc!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv@uk.ac.warwick             ARPA:   cudcv@warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England