Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: a.out output not displayed
- X-seq: zsh-users 9956
- From: Chris Johnson <cjohnson@xxxxxxxxxx>
- To: Raja Loganathan <raja@xxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: a.out output not displayed
- Date: Wed, 22 Feb 2006 17:37:37 -0500
- In-reply-to: <43FCE62C.2010804@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <43FCE62C.2010804@xxxxxxxxxxxxxx>
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@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author