From b8664cf9aaa600b17bbcaaef619219e4ff512fe4 Mon Sep 17 00:00:00 2001 From: Vexatos Date: Sun, 6 Jul 2014 02:20:34 -0700 Subject: [PATCH] Updated API Term (markdown) --- API-Term.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API-Term.md b/API-Term.md index e723b9e..fdfce1a 100644 --- a/API-Term.md +++ b/API-Term.md @@ -19,7 +19,7 @@ Provides a simplified way of writing text to screens and reading user input, so The optional `history` table can be used to provide predefined text that can be cycled through via the up and down arrow keys. It must be a sequence (i.e. the keys must be a gap-less integral interval starting at 1). This is used for the command history in shell and Lua interpreter, for example. If text is entered and confirmed with enter, it will be added to the end of this table. The function will return a string if input was successful, or `nil` if there was no more input (user pressed Ctrl+D or Ctrl+C or the terminal became unavailable). *Note*: `io.stdin:read()` uses this function. - *Note 2": This will return the entered string with the \n (new line character). If you want only the entered string to be returned, use `io.read()` + *Note 2*: This will return the entered string with the \n (new line character). If you want only the entered string to be returned, use `io.read()` - `term.write(value: string[, wrap: boolean])` Allows writing optionally wrapped text to the terminal starting at the current cursor position, updating the cursor accordingly. It automatically converts tab characters to spaces using `text.detab`. If `wrap` is true, it will automatically word-wrap the text. It will scroll the displayed buffer if the cursor exceeds the bottom of the display area, but *not* if it exceeds the right of the display area (when `wrap` is false). *Note*: `io.stdout:write()` uses this function. \ No newline at end of file