bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ncurses bugs the output of the program I call


From: LucasJA
Subject: ncurses bugs the output of the program I call
Date: Thu, 15 Sep 2011 12:32:23 -0700 (PDT)

Hello.

I am developing a shell as a homework and I am using ncurses.
I setup the ncurses for my shell. When I call the 'ps' program from my
shell, it outputs the result incorrectly on the screen:

PID TTY          TIME CMD
                                       5151 pts/0    00:00:00 bash
                                                                             
5900 pts/0    00:00:00 chew
                                                                                
                                     
5901 pts/0    00:00:00 ps

As you can see, the output can print break lines, but the new line starts
from where the line above stopped.

Am I doing something wrong? (Was I clear on what is my problem?)

Thanks.

PS: Some additional information:

I call the ps using system("ps").
I start the ncurses library with: initscr(), keypad(stdscr, TRUE), noecho(),
scrollok(stdscr, TRUE).
-- 
View this message in context: 
http://old.nabble.com/ncurses-bugs-the-output-of-the-program-I-call-tp32474334p32474334.html
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]