0.3.0
Added
-
Added a new global
stdiowhich replacesconsole -
Added
stdio.writewhich writes a string directly to stdout, without any newlines -
Added
stdio.ewritewhich writes a string directly to stderr, without any newlines -
Added
stdio.promptwhich will prompt the user for different kinds of inputExample usage:
local text = stdio.prompt() local text2 = stdio.prompt("text", "Please write some text") local didConfirm = stdio.prompt("confirm", "Please confirm this action") local optionIndex = stdio.prompt("select", "Please select an option", { "one", "two", "three" }) local optionIndices = stdio.prompt( "multiselect", "Please select one or more options", { "one", "two", "three", "four", "five" } )
Changed
- Migrated
console.setColor/resetColorandconsole.setStyle/resetStyletostdio.colorandstdio.styleto allow for more flexibility in custom printing using ANSI color codes. Check the documentation for new usage and behavior. - Migrated the pretty-printing and formatting behavior of
console.log/info/warn/errorto the standard Luau printing functions.
Removed
- Removed printing functions
console.log/info/warn/errorin favor of regular global functions for printing.
Fixed
- Fixed scripts hanging indefinitely on error