Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!ames!ucbcad!ucbvax!hplabs!hplabsc!mayer From: mayer@hplabsc.UUCP (Niels Mayer) Newsgroups: comp.emacs Subject: Re: Undesirable command line echoing in GNUmacs shells Message-ID: <1118@hplabsc.UUCP> Date: Thu, 15-Jan-87 21:14:01 EST Article-I.D.: hplabsc.1118 Posted: Thu Jan 15 21:14:01 1987 Date-Received: Sat, 17-Jan-87 00:55:38 EST References: <8701142109.AA21111@EDDIE.MIT.EDU> Reply-To: mayer@hplabsc.UUCP (Niels Mayer) Organization: Hewlett-Packard Labs, Palo Alto, CA Lines: 46 Summary: special case for csh in HPUX An addendum for HPUX users: The csh in HPUX has the additional "feature" that even if you do something like "stty -echo" or "stty raw" in your .emacs_csh, it will insist on terminal sanity. To turn this off, use /bin/csh -i -T. If this applies to you, check out the following message I just sent to bug-gnu-emacs: To: bug-gnu-emacs@mit-prep.arpa, mayer Subject: fix for echo problem in csh shell buffer on HPUX Date: Thu, 15 Jan 87 17:55:23 PST From: Niels Mayer Those of you that use m-x shell with csh by setting explicit-shell-file-name to "/bin/csh" will have noticed problems with echoing caused by the fact that HPUX's csh insists on remaining "sane" despite all attepts at "stty raw -echo" and whatnot. Well here's a sleazy fix that works by using and undocumented feature of HPUX's csh. Replace the make-shell function with the following in shell.el and csh will work correctly: ============================================================================== (defun shell () "Run an inferior shell, with I/O through buffer *csh*. If buffer exists but shell process is not running, make new shell. If a file ~/.emacs_csh exists, it is given as initial input (Note that this may lose due to a timing error if the shell discards input when it starts up.) --NPM -- it seems to work, though.... The buffer is put in shell-mode, giving commands for sending input and controlling the subjobs of the shell. See shell-mode. See also variable shell-prompt-pattern. Note that many people's .cshrc files unconditionally clear the prompt. If yours does, you will probably want to change it. This function was modified for hpux use. It assumes you want to use csh and it makes csh work in 'insane' mode to prevent echoing of \n and input. -- Niels P. Mayer (mayer@hplabs.hp.com)" (interactive) (switch-to-buffer (make-shell "csh" "/bin/csh" (if (file-exists-p "~/.emacs_csh") "~/.emacs_csh") "-i -T")) ;;; -T = tenex mode ... prevents echo ) ==============================================================================