all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: M-x term on Windows
Date: Fri, 23 Oct 2015 10:21:11 +0300	[thread overview]
Message-ID: <83io5yrqxk.fsf@gnu.org> (raw)
In-Reply-To: <87vb9yi6n5.fsf@fastmail.com>

> From: Random832 <random832@fastmail.com>
> 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).



  reply	other threads:[~2015-10-23  7:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-23  3:51 M-x term on Windows Random832
2015-10-23  7:21 ` Eli Zaretskii [this message]
2015-10-28 14:40   ` Random832
2015-10-28 16:11     ` Eli Zaretskii
     [not found] <mailman.851.1445572367.7904.help-gnu-emacs@gnu.org>
2015-10-23 18:11 ` Javier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83io5yrqxk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.