From: Unknown <unknown@unknown.invalid>
To: help-gnu-emacs@gnu.org
Subject: pari.el : Process stty in windows ?
Date: Tue, 15 Mar 2016 10:57:23 +0100 [thread overview]
Message-ID: <56e7dc83$0$19751$426a74cc@news.free.fr> (raw)
Dear all,
[I posted this message on comp.emacs yesterday but this forum seems
much more active]
In pari.el under unix/linux, I use the following function:
----------------------------------------------------------------
(defun gp-get-shell (process-name process-buffer-name cmd)
"Explicit. Aimed at command gp+parameters."
(let ((process-environment (copy-sequence process-environment)))
(setenv "TERM" "emacs")
(setenv "PAGER" "cat")
(setenv "LINES" "1000")
(setenv "COLUMNS" (number-to-string (window-width)))
(start-process process-name process-buffer-name
shell-file-name
shell-command-switch
(concat "stty -echo onlret; " cmd))))
-----------------------------------------------------------------
with cmd = "/usr/bin/gp -s 10000000 -p 500000 --emacs" for instance.
Windows even with gnuwin32 complains quite a lot.
It seems that stty exists but "onlret" is unknown and the ";" does not
seem to be recognized.
As a matter of fact I am the maintainer of pariemacs, but I have only
unix at work/home and don't know nothing about windows. it worked well
for a long time until recently I had a user from the windows world
trying to get everything to work. The script editing work, only calling
gp in an inferior shell bugs.
The error message says that "onlret;" is an invalid argument of stty
(notice the ";").
If we remove the stty part, gp is indeed called but dies with a gentle
"Goodbye !" (without the prompt even to be seen).
I'm hard put to correct such a thing. So if anyone has an idea, I'll
edit it for my user. I guess such a patch would be very useful for many
others, so I'll publish it, though I'm definitely no friend of windows --
Many thanks in advance,
Best, Olivier
next reply other threads:[~2016-03-15 9:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-15 9:57 Unknown [this message]
2016-03-15 17:27 ` pari.el : Process stty in windows ? Eli Zaretskii
[not found] ` <mailman.7598.1458062858.843.help-gnu-emacs@gnu.org>
2016-03-16 7:17 ` Unknown
2016-03-16 15:43 ` Eli Zaretskii
[not found] ` <mailman.7646.1458143060.843.help-gnu-emacs@gnu.org>
2016-03-17 12:30 ` Unknown
2016-03-17 16:30 ` Eli Zaretskii
2016-03-17 13:15 ` Yuri Khan
[not found] ` <mailman.7677.1458220547.843.help-gnu-emacs@gnu.org>
2016-03-17 17:49 ` Unknown
2016-03-17 17:57 ` Yuri Khan
[not found] ` <mailman.7695.1458237493.843.help-gnu-emacs@gnu.org>
2016-03-17 19:17 ` Unknown
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='56e7dc83$0$19751$426a74cc@news.free.fr' \
--to=unknown@unknown.invalid \
--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.
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).