From xemacs-m  Wed Mar 19 09:27:50 1997
Received: from canker.atype.com (jsc@canker.atype.com [137.103.200.167])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA26053
	for <xemacs-beta@xemacs.org>; Wed, 19 Mar 1997 09:27:50 -0600 (CST)
Received: (from jsc@localhost)
	by canker.atype.com (8.8.5/8.8.5) id KAA08540;
	Wed, 19 Mar 1997 10:27:45 -0500
Date: Wed, 19 Mar 1997 10:27:45 -0500
Message-Id: <199703191527.KAA08540@canker.atype.com>
From: "Jin S. Choi" <jsc@atype.com>
To: xemacs-beta@xemacs.org
Subject: gnuattach doesn't reset terminal properly when exiting
Reply-to: jsc@atype.com
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: multipart/mixed;
 boundary="Multipart_Wed_Mar_19_10:27:40_1997-1"
Content-Transfer-Encoding: 7bit

--Multipart_Wed_Mar_19_10:27:40_1997-1
Content-Type: text/plain; charset=US-ASCII

gnuattach rocks! Very very handy.  Only problem is, when I use C-x #
to finish with a buffer, gnuattach exits and leaves my terminal in a
very bad state. End of lines look like they are getting mapped to CR,
etc. I've attached a before and after look at stty -all.

If I exit the frame using C-x 5 0, it seems to be fine.

Oh, one minor nit, when I run gnuattach with no arguments, it puts me
in the *scratch* buffer, which gets marked as being a server buffer,
so when you exit with C-x #, it will kill your scratch buffer.



--Multipart_Wed_Mar_19_10:27:40_1997-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="foo"
Content-Transfer-Encoding: 8bit

speed 9600 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke


--Multipart_Wed_Mar_19_10:27:40_1997-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="bar"
Content-Transfer-Encoding: 8bit

speed 9600 baud; rows 24; columns 80; line = 0;
intr = <undef>; quit = <undef>; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = <undef>; stop = <undef>; susp = <undef>;
rprnt = <undef>; werase = <undef>; lnext = <undef>; flush = <undef>;
min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

--Multipart_Wed_Mar_19_10:27:40_1997-1--

