unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* On Windows(R) Emacs «shell» mode doesn't prints an output.
@ 2014-09-24 20:07 Hi-Angel
  2014-09-25  7:43 ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: Hi-Angel @ 2014-09-24 20:07 UTC (permalink / raw)
  To: help-gnu-emacs

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.

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®, but
not in Emacs shell mode on Windowsor.



^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <mailman.9514.1411591630.1147.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2014-09-25 16:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).