unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Duncan Greatwood <dgreatwood@gmail.com>
Cc: dgbulk@gmail.com, michael.albinus@gmx.de, 72450@debbugs.gnu.org
Subject: bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for Windows 11
Date: Thu, 08 Aug 2024 08:20:44 +0300	[thread overview]
Message-ID: <86plqjmvyr.fsf@gnu.org> (raw)
In-Reply-To: <CAGg=3NUnPqU84kQM3GaeQ87fBS_wnbHLkrEv47dGc4kdzCe7WA@mail.gmail.com> (message from Duncan Greatwood on Wed, 7 Aug 2024 14:46:29 -0700)

> From: Duncan Greatwood <dgreatwood@gmail.com>
> Date: Wed, 7 Aug 2024 14:46:29 -0700
> Cc: Eli Zaretskii <eliz@gnu.org>, dgbulk@gmail.com, 72450@debbugs.gnu.org
> 
> Re: 
> 
>  [?25l[2J[m[Hsh-5.2$[1C]0;C:\Windows\system32\conhost.exe [?25h
> 
> The actual prompt that appears on the screen is:
> sh-5.2$ 
> 
> Please note that "C:\Windows\system32\conhost.exe" is not a prompt, it is not output as text on the terminal, it
> is the "job name" that Windows provides. (FYI, conhost.exe is the core Windows process that provides any
> prompt, whether PowerShell, command prompt, or bash/sh).
> 
> As a point of comparison, when I ssh to a Linux machine the "job name" is simply ssh.
> 
> I don't know why the string emacs-tramp is seeing as the prompt appears to include the job name and those
> control characters. I have looked on client side and server side, and don't see a way of suppressing/changing
> the job name in Window's OpenSSH, nor the control characters either.
> 
> I tried it in iTerm and in Terminal. I tried it from macOS (with ssh proxy) and from Linux (no proxy). All the same
> failure.
> 
> Unless there can be different handling in respect of the job name, I don't see an approach to use ssh to
> access the windows box with tramp.

Maybe Tramp could recognize and ignore the cursor-motion parts?

Alternatively, file a bug to the MS-Windows terminal development team,
and ask them to provide at least optionally the standard behavior
exhibited by Posix platforms.





  reply	other threads:[~2024-08-08  5:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-03 19:54 bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for Windows 11 Duncan Greatwood
2024-08-04  4:41 ` Eli Zaretskii
2024-08-04  8:28   ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-04  9:15     ` Eli Zaretskii
2024-08-04 10:37       ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-04 10:45         ` Eli Zaretskii
2024-08-04 10:56           ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-04 11:01             ` Eli Zaretskii
2024-08-05  3:39               ` Duncan Greatwood
2024-08-05  8:27                 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]                   ` <mvmcymnfjcc.fsf@suse.de>
2024-08-05 11:56                     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-05 22:14                   ` Duncan Greatwood
2024-08-06  7:40                     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-07 21:46                       ` Duncan Greatwood
2024-08-08  5:20                         ` Eli Zaretskii [this message]
2024-08-08 11:06                           ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 11:11                             ` Eli Zaretskii
2024-08-08 11:18                               ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 11:11                         ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 18:28                   ` Jim Porter
2024-08-08 19:03                     ` Duncan Greatwood
2024-08-10 10:34                     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86plqjmvyr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72450@debbugs.gnu.org \
    --cc=dgbulk@gmail.com \
    --cc=dgreatwood@gmail.com \
    --cc=michael.albinus@gmx.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).