From: Hi-Angel <hiangel999@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: On Windows(R) Emacs «shell» mode doesn't prints an output.
Date: Thu, 25 Sep 2014 12:44:59 +0400 [thread overview]
Message-ID: <CAHGDjgAJZXEMBNEYu1_RHWcB3YEvshYhGAzTKMc88A-asVzKfA@mail.gmail.com> (raw)
In-Reply-To: <CAP_d_8V9BncQwPFk6BFr91LNf-k0ZganUVsVr3bCausP8bLdjA@mail.gmail.com>
Dear Pascal J. Bourguignon, no need for an abuses, don't be a
barbarian. I am always heard and was sure that the buffers flushes on
a «newline». That's weird to me that it is wrong, but after your words
I googled, and found that this is indeed a truth. Thx anyway for the
answer, I surely wouldn't found it soon by myself.
>> When I am working on Windows, I am using Emacs «shell» mode. The
>> problem is that it sometimes doesn't prints an applications output
>> (more precisely prints only after the app died).
>> The problem is present exclusively in Emacs, e.g. if I am run an
>> application in Windows® native terminal, it is works fine.
>>
>> I thought that the problem is in encoding, and set «shell»'s buffer
>> with «C-x <RET> f» to UTF-16, which, as I know, uses MS, but it didn't
>> fixed the problem.
>
>1- this is not an emacs problem.
>
>2- this is a basic programming question, that dates back since the dawn
>of computing.
>
>3- what the fuck are you taught in school?
>
>
>> Below is a simple example of an application that won't print an output in Emacs:
>>
>> #include <cstdio>
>> #include <cstring>
>>
>> int main(){
>> puts("Hello, enter something");
>> char buf[256];
>> memset(buf, 0, sizeof(buf));
>> fgets(buf, sizeof(buf)-1, stdin);
>> puts(buf);
>> return 0;
>> }
>>
>> This works fine in both GNU/Linux, and the terminal of Windows®,
>
>By pure chance.
>
>> but not in Emacs shell mode on Windowsor.
>
>
>YOU FORGOT TO FLUSH YOUR BUFFERS!
next prev parent reply other threads:[~2014-09-25 8:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-24 20:07 On Windows(R) Emacs «shell» mode doesn't prints an output Hi-Angel
2014-09-25 7:43 ` Eli Zaretskii
2014-09-25 8:25 ` Yuri Khan
2014-09-25 8:44 ` Hi-Angel [this message]
2014-09-25 8:55 ` Eli Zaretskii
2014-09-25 10:18 ` Yuri Khan
2014-09-25 11:19 ` Eli Zaretskii
2014-09-25 12:16 ` Yuri Khan
2014-09-25 13:31 ` Eli Zaretskii
2014-09-25 15:44 ` Yuri Khan
2014-09-25 16:26 ` Eli Zaretskii
[not found] <mailman.9514.1411591630.1147.help-gnu-emacs@gnu.org>
2014-09-25 6:32 ` Pascal J. Bourguignon
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=CAHGDjgAJZXEMBNEYu1_RHWcB3YEvshYhGAzTKMc88A-asVzKfA@mail.gmail.com \
--to=hiangel999@gmail.com \
--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.