From 68a8f1005aabc69ec5bc979fa7d7873c3c2a6a1b Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Sat, 15 Sep 2012 00:40:09 +0200 Subject: Add examples for new functions to README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 9b67a96..6a60906 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,17 @@ Usage print(color.red 'hello') print(color.red .. 'hello' .. color.reset) print(color.red, 'hello', color.reset) + + -- The following functions take an optional IO handle (like io.stdout); + -- io.stdout is the default if you don't specify one + term.clear() -- clears the screen + term.cleareol() -- clears from the cursor to the end of the line + term.cursor.goto(1, 1) + term.cursor.goto(io.stdout, 1, 1) + term.cursor.goup(1) + term.cursor.godown(1) + term.cursor.goright(1) + term.cursor.goleft(1) + term.cursor.save() -- save position + term.cursor.restore() -- restore position ``` -- cgit v1.2.3-55-g6feb