Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Capturing output from 'help

From: tim:johnsons-web at: 30-Jul-2001 18:53

On Mon, Jul 30, 2001 at 06:34:36PM -0700, doug edmunds wrote:
> Hello! > Here's one way. Echo to a temp file, then > read the file back into a string.
Cool! I have actually thought about using 'echo, but was curious if there was another way..... It will end up in a file eventually any way :>) thanks Doug!
> ;--start script--- > REBOL [ > Title: "Capture help" > Date: 30-July-2001 > Author: "doug edmunds" > Purpose: "capture help output as a string." > File: %capture_help.r > ] > temp_file: %temphelp.txt > echo temp_file > help next ; change 'next' to any help topic > ; or part of word (i.e., help br) > echo none > help_string: read temp_file > delete temp_file > > print "^/now printing help_string:" > print help_string > print "press any key" > input > ;--end script---- > > --doug edmunds > > --- Tim Johnson <[tim--johnsons-web--com]> wrote: > > Hello All: > > Typing >> help next > > at the shell prompt gives me the following: > > > > USAGE: > > NEXT series > > > > DESCRIPTION: > > Returns the series at its next position. > > NEXT is an action value. > > > > ARGUMENTS: > > series -- (Type: series port) > > > > Now how can I capture that output as a block or > > other data structure? > > > > TIA > > tj > > -- > > To unsubscribe from this list, please send an email > > to > > [rebol-request--rebol--com] with "unsubscribe" in the > > subject, without the quotes. > > > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/ > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com