From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: andrew.maguire@ps.ge.com Newsgroups: gmane.emacs.help Subject: RE: Running a SFU POSIX shell on Emacs for Windows Date: Thu, 16 Oct 2003 07:57:11 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <6192367D59F8904CA553579EF41FEEA001F45E8E@ukcbgx01psge.geips.ge.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Trace: sea.gmane.org 1066305917 13733 80.91.224.253 (16 Oct 2003 12:05:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 12:05:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 14:05:15 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AA6sV-00034J-00 for ; Thu, 16 Oct 2003 14:05:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA6s2-0004DS-LW for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Oct 2003 08:04:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AA6o2-0003Pf-7i for help-gnu-emacs@gnu.org; Thu, 16 Oct 2003 08:00:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AA6nL-0003IB-Aa for help-gnu-emacs@gnu.org; Thu, 16 Oct 2003 08:00:26 -0400 Original-Received: from [64.37.194.13] (helo=ext-ch1gw-5.online-age.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA6nK-0003I5-UT for help-gnu-emacs@gnu.org; Thu, 16 Oct 2003 07:59:54 -0400 Original-Received: from int-ch1gw-6.online-age.net (int-ch1gw-6 [3.159.232.70]) by ext-ch1gw-5.online-age.net (8.12.9/8.12.9/030701) with ESMTP id h9GBxqhi020553; Thu, 16 Oct 2003 07:59:52 -0400 (EDT) Original-Received: from nyschx06psge.ps.ge.com (localhost [127.0.0.1]) by int-ch1gw-6.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id h9GBxoTV025348; Thu, 16 Oct 2003 06:59:50 -0500 (CDT) Original-Received: by nyschx06psge.ps.ge.com with Internet Mail Service (5.5.2653.19) id <40S7CJF9>; Thu, 16 Oct 2003 07:57:45 -0400 Original-To: sancho.neves-graca@sap.com X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13238 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13238 > After adding to ~/.emacs the commands > > (setq explicit-shell-file-name "C:\\WINNT\\System32\\posix.exe") > (setq explicit-posix.exe-args '("/u" "/c" "/bin/csh" "-l")) > > The following warning is given. > > csh: No entry for terminal type "emacs" > csh: using dumb terminal setting > > As per Emacs Windows FAQ I added the following to ~/.cshrc: > > if ("$term" == emacs) set term=interix > > There remains the problem that the output of any Windows > program called by the shell is not displayed. This indicates > that the output stream is misdirected. How could this be corrected? If /u means the same as it does for cmd.exe, then the unicode output could be causing it... The -l option to csh may be to run it as a login shell (ref to Linux manpage) you could try changing it to be -i, i.e. make csh run in interactive mode... since this is what Emacs shell mode tries to do if you do not set the explicit-*-args variable. In shell.el on HP-UX for csh it also passes -T option which is some switch related to setting of TERM. What happens if you leave TERM set to dumb rather than interix? There is the possibility that posix.exe writes to the screen using the CON device, if that is so then I think you are out of luck although that idea may be out of date (anyone?). I do not have SFU so I cannot check anything out I'm afraid. Andrew