unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Running Emacs in an MSYS2 shell (or terminal?)
Date: Tue, 25 Jan 2022 20:31:04 +0100	[thread overview]
Message-ID: <865yq7y5mv.fsf@duenenhof-wilhelm.de> (raw)
In-Reply-To: <87sftb66wd.fsf@telefonica.net> ("Óscar Fuentes"'s message of "Tue, 25 Jan 2022 18:51:14 +0100")

Óscar Fuentes <ofv@wanadoo.es> writes:

> "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:
>
>> when starting Emacs with
>>
>>   $ ./emacs.exe -nw
>>
>> it says
>>
>>   emacs: standard input is not a tty.
>>
>> and "emacsclient.exe -nw" is creating a new frame.
>>
>> What can I do to use emacs.exe or emacsclient.exe in such a shell
>> without starting a new frame?
>
> MSYS2/Cygwin console is not a proper console as far as windows "native"
> executables are concerned. If you insist on running MinGW-w64 Emacs on
> it, try this:
>
> $ pacman -S winpty
> $ winpty ./emacs -nw

Great Óscar! Thank you. :-)

(Even though I couln't even type C-x C-c any more, had to close emacs
 from the menu. :-) )

Unfortunately even winpty is not working for

$ winpty ./emacsclient.exe -nw 

it still opens a new frame!?  At least with emacs-28.0.91 build from
Corwin (there are warning, two DLLs are missing).  If you think it is
worthwhile to check with Emacs-27.2, I'll do this tomorrow?

   Dieter
-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany



  reply	other threads:[~2022-01-25 19:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-25 16:37 Running Emacs in an MSYS2 shell (or terminal?) H. Dieter Wilhelm
2022-01-25 17:02 ` Eli Zaretskii
2022-01-25 19:20   ` H. Dieter Wilhelm
2022-01-25 17:51 ` Óscar Fuentes
2022-01-25 19:31   ` H. Dieter Wilhelm [this message]
2022-01-26  9:24 ` Arash Esbati
2022-01-26 16:55   ` H. Dieter Wilhelm
2022-01-26 17:32     ` Eli Zaretskii
2022-01-26 18:36       ` H. Dieter Wilhelm
2022-01-26 18:31     ` Arash Esbati

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=865yq7y5mv.fsf@duenenhof-wilhelm.de \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ofv@wanadoo.es \
    /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.
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).