* a.out output not displayed
@ 2006-02-22 22:31 Raja Loganathan
2006-02-22 22:37 ` Chris Johnson
2006-02-22 23:10 ` zzapper
0 siblings, 2 replies; 5+ messages in thread
From: Raja Loganathan @ 2006-02-22 22:31 UTC (permalink / raw)
To: zsh-users
hi,
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.
Thank you,
Raja
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: a.out output not displayed
2006-02-22 22:31 a.out output not displayed Raja Loganathan
@ 2006-02-22 22:37 ` Chris Johnson
2006-02-23 0:43 ` Vincent Lefevre
2006-02-22 23:10 ` zzapper
1 sibling, 1 reply; 5+ messages in thread
From: Chris Johnson @ 2006-02-22 22:37 UTC (permalink / raw)
To: Raja Loganathan, zsh-users
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: a.out output not displayed
2006-02-22 22:37 ` Chris Johnson
@ 2006-02-23 0:43 ` Vincent Lefevre
2006-02-23 1:08 ` Barton Schaefer
0 siblings, 1 reply; 5+ messages in thread
From: Vincent Lefevre @ 2006-02-23 0:43 UTC (permalink / raw)
To: zsh-users
On 2006-02-22 17:37:37 -0500, Chris Johnson wrote:
> 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.
It doesn't (the prompt position is incorrect with other shells).
> You need a \n at the end of your printf. Or set the zsh option:
>
> setopt no_prompt_cr
Which is bad. The best solution is to use a recent zsh version
(4.3.0-dev-5 or wait for 4.3.1).
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: a.out output not displayed
2006-02-22 22:31 a.out output not displayed Raja Loganathan
2006-02-22 22:37 ` Chris Johnson
@ 2006-02-22 23:10 ` zzapper
1 sibling, 0 replies; 5+ messages in thread
From: zzapper @ 2006-02-22 23:10 UTC (permalink / raw)
To: zsh-users
Raja
> 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
This problem is a zsh "rite of passage".
You also get it with
perl hello.pl
--
zzapper
Success for Techies
http://SuccessTheory.com/tips/ vim, zsh & success tips
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-23 1:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22 22:31 a.out output not displayed Raja Loganathan
2006-02-22 22:37 ` Chris Johnson
2006-02-23 0:43 ` Vincent Lefevre
2006-02-23 1:08 ` Barton Schaefer
2006-02-22 23:10 ` zzapper
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).