JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

spork/misc/capout

spork


    macro
    /usr/local/lib/janet/spork/misc.janet on line 340, column 1

    (capout & body)

    Captures the standard output of the variadic `body` and returns it 
    as a buffer.


1 exampleSign in to add an example
Loading...
(import spork/misc)
(def d (misc/capout (doc misc/capout)))

d # returns:
@"\n\n    macro\n    /usr/local/lib/janet/spork/misc.janet on 
line 340, column 1\n\n    \e[97m(capout & body)\e[39m\n\n   
 Captures the standard output of the variadic \e[97mbody\e[39m
 and returns it as \n    a buffer.\n\n\n"
veqqqPlayground