lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV Capturing newspost output


From: T.E.Dickey
Subject: Re: LYNX-DEV Capturing newspost output
Date: Thu, 23 Jan 1997 16:20:59 -0500 (EST)

> While we're on the subject of interfacing Lynx with news ( :-), I was
> wondering how to see the messages generated by inews in response to a news
> posting attempt.  I've gotten posting to work on my home system, but my
> ISP has a Sun box that runs too fast for my eyes. 
> 
> The code in LYNews says this:
>     stop_curses();
>     printf("Posting your message:\n\n%s\n\nPlease wait...", cmd);
>     system(cmd);
>     start_curses();
> 
> I've tried a few things such as redirecting the stdout and stderr of the
> defined INEWS path, but the output just seems to flash on the screen and
> then vanish.  Any suggestions (not counting sleep(10))?
you could open a readonly pipe to it, but that won't capture stderr.
This is done in vile (vi-like-emacs) by forking, dup'ing, etc., and works
reasonably well for UNIX systems.  I suppose other programs do that (but
I'm not familiar with the code for them ;-).

Look in vile's npopen.c and fileio.c files, e.g.,

        ftp.clark.net:/pub/dickey/vile/vile-6.4.tgz

to see how it's done.

-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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