[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] RE: script timer



On Mon, Aug 16, 1999 at 10:57:56AM +0530, Chakrabarti, Suvendra (CTS) wrote:
>       Hi Binand, 
> 
>       1. I tried to run a program, using execl("command", "command", '\0').

Are you sure of these? So far as I remember, the last argument should be the
null pointer, not the null character.

>       4. Well, at least we should not be using system() for clearing
> screens. A better option is using ^[2J.

Nope. The correct unix solution is:

#include <curses.h>
int main (void)
{
   initscr();
   clear();
   refresh();
   endwin();
   exit(0);
}

Binand
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------