From: Chris Johnson <cjohnson@cs.utk.edu>
To: Raja Loganathan <raja@ece.gatech.edu>, zsh-users@sunsite.dk
Subject: Re: a.out output not displayed
Date: Wed, 22 Feb 2006 17:37:37 -0500 [thread overview]
Message-ID: <20060222223737.GA23971@namib.cs.utk.edu> (raw)
In-Reply-To: <43FCE62C.2010804@ece.gatech.edu>
Raja Loganathan sent me the following 0.3K:
> My gcc compiled programs are not showing the output.
>
> I compiled a simple printf("\nHelloworld");
>
> ./a.out .. I'm not getting any output on the screen. However Shell
> commands, echo etc works properly.
> I checked my program in other shells. It works properly.
You need a \n at the end of your printf. Or set the zsh option:
setopt no_prompt_cr
By default, zsh returns to lefthand side of the terminal to display the
prompt.
--
Chris Johnson
cjohnson@cs.utk.edu
http://www.cs.utk.edu/~cjohnson
next prev parent reply other threads:[~2006-02-22 22:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-22 22:31 Raja Loganathan
2006-02-22 22:37 ` Chris Johnson [this message]
2006-02-23 0:43 ` Vincent Lefevre
2006-02-23 1:08 ` Barton Schaefer
2006-02-22 23:10 ` zzapper
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=20060222223737.GA23971@namib.cs.utk.edu \
--to=cjohnson@cs.utk.edu \
--cc=raja@ece.gatech.edu \
--cc=zsh-users@sunsite.dk \
/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 public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).