I've made a set of functions in DSLua for text console programs. Of course it's not very good for games but some apps and text adventures could use this, or maybe just when you need to write a quick program for something.
All the instructions for using the functions for your program are in demo.lua but I will describe them shortly here:
Console.Output( text ) -- outputs text to the screen, use \n for a newline.
Console.ScrollBottom() -- scrolls to the bottom, Console.Output() does this automatically whenever it prints something
Console.Clear() -- clears screen, moves cursor to top-left corner
Console.Scroll( direction ) -- scrolls the length of a character a certain direction (the variable "direction" should be a string with the value of "UP", "DOWN", "LEFT", or "RIGHT".
Console.ScrollCheck() -- checks the d-pad and scrolls one direction depending on what arrows are pressed
Console.Input() -- waits for the user to type a string into the keyboard and press enter, then returns the string, unlike my previous versions of keyboard this one uses the L and R buttons as shift keys and the A/B/X/Y keys for some special characters
Console.Key() -- Returns the ASCII code of the key on the keyboard that is being pressed (or A/B/X/Y characters).
Please read/run demo.lua to see more how it works.
