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: pari.el : Process stty in windows ? Date: Tue, 15 Mar 2016 19:27:08 +0200 Message-ID: <83mvpzbqj7.fsf@gnu.org> References: <56e7dc83$0$19751$426a74cc@news.free.fr> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458062872 308 80.91.229.3 (15 Mar 2016 17:27:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2016 17:27:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 15 18:27:47 2016 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 1afsl1-0005fF-AC for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Mar 2016 18:27:47 +0100 Original-Received: from localhost ([::1]:50230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afsl0-0001e2-FI for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Mar 2016 13:27:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afskq-0001dC-8X for help-gnu-emacs@gnu.org; Tue, 15 Mar 2016 13:27:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afskm-0000zJ-Sj for help-gnu-emacs@gnu.org; Tue, 15 Mar 2016 13:27:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afskm-0000zF-PB for help-gnu-emacs@gnu.org; Tue, 15 Mar 2016 13:27:32 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3960 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1afskm-0001ji-34 for help-gnu-emacs@gnu.org; Tue, 15 Mar 2016 13:27:32 -0400 In-reply-to: <56e7dc83$0$19751$426a74cc@news.free.fr> (message from Ramare on Tue, 15 Mar 2016 10:57:23 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:109587 Archived-At: > From: Ramare > Date: Tue, 15 Mar 2016 10:57:23 +0100 > > 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 -- AFAIK, "stty onlret" will never work on Windows, as long as you use the standard system shell. You can ignore the fact that you have some stty.exe, it won't do what you want, because that functionality is simply not supported. Please explain why you need that command, maybe there's an equivalent solution.