Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC840302); site enea.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!mcvax!enea!mats
From: mats@enea.UUCP
Newsgroups: net.emacs
Subject: Re: Help needed
Message-ID: <766@enea.UUCP>
Date: Thu, 25-Oct-84 21:00:19 EDT
Article-I.D.: enea.766
Posted: Thu Oct 25 21:00:19 1984
Date-Received: Sun, 21-Oct-84 15:25:24 EDT
Sender: notes@enea.UUCP
Organization: ENEA DATA, Sweden
Lines: 74
Nf-ID: #R:lth:-16800:enea:3700002:000:1866
Nf-From: enea!mats    Oct 19 09:16:00 1984

Here are the diffs to our Gosling #264 (running on 4.2BSD).  I think
that the mod's originally came from mcvax.

	Mats Josefsson	(mats@enea.UUCP)
	ENEA DATA Svenska AB
	SWEDEN

************ config.h ************

80a81,86
> #define HalfBaked 1
>                               /* define this if halfbaked (CBREAK) IO
>                                * is to be done. This may prove neccesary
>                                * , because even parity is
>                                * discarded otherwise.
>                                */

************* dsp.c **************

15d14
< char _sobuf[BUFSIZ];
16a16,21
> #ifdef HalfBaked
> static struct tchars OldTchars;
> static struct ltchars OldLtchars;
> static int OldLmode;
> #endif
> 
21a27,52
> #ifdef HalfBaked
>     ioctl (0, TIOCGETC, &OldTchars);
>     ioctl (0, TIOCGLTC, &OldLtchars);
>     ioctl (0, TIOCLGET, &OldLmode);
>     sg.sg_flags = (sg.sg_flags & ~(ECHO | CRMOD | XTABS)) | CBREAK;
>     {   struct tchars tchars;
>       struct ltchars ltchars;
>       int lmode;
>       tchars.t_intrc = -1;
>       tchars.t_quitc = -1;
>       tchars.t_startc = Ctl ('Q');
>       tchars.t_stopc = Ctl ('S');
>       tchars.t_eofc = -1;
>       tchars.t_brkc = -1;
>       ltchars.t_suspc = -1;
>       ltchars.t_dsuspc = -1;
>       ltchars.t_rprntc = -1;
>       ltchars.t_flushc = -1;
>       ltchars.t_werasc = -1;
>       ltchars.t_lnextc = -1;
>       lmode = OldLmode;
>       ioctl (0, TIOCSETC, &tchars);
>       ioctl (0, TIOCSLTC, <chars);
>       ioctl (0, TIOCLSET, &lmode);
>     }
> #else
22a54
> #endif
31d62
<     stty (0, &old);
32a64
>     (*tt.t_cleanup) ();
35d66
<     (*tt.t_cleanup) ();
36a68,73
> #ifdef HalfBaked
>       ioctl (0, TIOCSETC, &OldTchars);
>       ioctl (0, TIOCSLTC, &OldLtchars);
>       ioctl (0, TIOCLSET, &OldLmode);
> #endif
>     stty (0, &old);
38d74
<