bug-ncurses
[Top][All Lists]
Advanced

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

Re: top and parted in ncurses


From: Thomas Dickey
Subject: Re: top and parted in ncurses
Date: Fri, 14 Aug 2009 05:11:53 -0400 (EDT)

On Fri, 14 Aug 2009, Kolesar wrote:


Hi all

I need start top and/or parted from ncurses (c code), but i do not how
:confused:

I'm try as:
char cmd[50] = "top";
....
pid = fork();
....
execlp("/bin/sh","/bin/sh","-c",cmd,(const char*)0);
....

well, ncurses is written in C, but this fragment doesn't seem to have
much to do with ncurses.  What does the overall program do?

There's an example in the sources test/ncurses.c which spawns a subshell
and restores the screen state on return.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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