diff --git a/clite/core.js b/clite/core.js index 0261add..2de9782 100644 --- a/clite/core.js +++ b/clite/core.js @@ -1,6 +1,6 @@ var clite = { state:{ - version:'0.2-3', + version:'0.3-1', isinit:false, runlevel:1 }, diff --git a/readme-libs.txt b/readme-libs.txt index b43ffa4..a27ff4a 100644 --- a/readme-libs.txt +++ b/readme-libs.txt @@ -284,13 +284,18 @@ stdio (libio.so): io.include('stdio') isattty(fd) returns true if fd refers to a tty. - fprintf(fd,format,args) + vfprintf(fd,format,args) Print formatted text to the file at fd. - Actually formatting is a work in progress, ignore the args. + args is an array of arguments for inserting into the formatted + output. Returns true on success. - printf(fmt,args) - Equivalent to fprintf(io.stdout,fmt,args); + fprintf(fd,format,...) + Similar to vfprintf, but accepts the format arguments as a + variable number of arguments to the function itself. + + printf(fmt,...) + Equivalent to fprintf(io.stdout,fmt,...); term (libterm.so): io.include('term') Provides access to raw terminal and tty functions.