From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: M-x term on Windows Date: Fri, 23 Oct 2015 10:21:11 +0300 Message-ID: <83io5yrqxk.fsf@gnu.org> References: <87vb9yi6n5.fsf@fastmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445584902 24014 80.91.229.3 (23 Oct 2015 07:21:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 07:21:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 09:21:33 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpWfH-0006qx-Jh for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 09:21:27 +0200 Original-Received: from localhost ([::1]:36721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpWfG-0000QU-Hz for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 03:21:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpWf4-0000Pl-3E for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 03:21:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpWf0-0005Wf-51 for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 03:21:14 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:43150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpWez-0005WZ-TN for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 03:21:10 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NWN00K00VQ5YL00@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:16:52 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWN00MGJW84MF00@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:16:52 +0300 (IDT) In-reply-to: <87vb9yi6n5.fsf@fastmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107791 Archived-At: > From: Random832 > Date: Thu, 22 Oct 2015 23:51:58 -0400 > > When I run M-x term in Windows, it doesn't work. If I let it run > cmdproxy, it prints the startup message and prompt but accepts no > input. If I run any other program (e.g. the interactive python > interpreter), I don't even get that. term.el in its present form cannot be run on MS-Windows. It has too much staff hardcoded that assumes a Posix shell in /bin/sh and a terminal driver that supports Posix features like stty settings and SGR escape sequences. You _might_ be able to tweak it to work with MSYS Bash instead, although even that could bump into basic incompatibilities between MSYS and native Windows programs. One other gotcha is that on Windows, subprocesses are run via pipes, not via a pty, so SGR sequences will probably never work, because a pipe fails the isatty test, and the shell doesn't think it's connected to a terminal, as it does on Unix. Patches are welcome, of course, if you succeed in making that work. > M-x shell is adequate for running command-line commands, but I would > like a terminal to be able to run a ssh client (plink?) in. Plink is a native Windows program, so it doesn't need 'term'. You should be able to run it from "M-x shell". > I remember installing Git bash in C:\bin\sh.exe to try to make this > work, but didn't follow up with doing anything about stty or /dev/null > etc. Git comes with a part of MSYS, but my suggestion is to install a full MSYS installation, instead of relying on Git, because some parts might be missing in Git (those that are not needed for running Git's scripts).