console.fullscreen read/write propertyGets/sets the console fullscreen mode (really fullscreen without the window frame and title bar).
To go fullscreen, set the property to true
To revert back to normal mode (original size with window frame and title bar) set the property to false. The user can revert back to normal mode by pressing ALT+RETURN.
local console = require "console" console.write("Do you want to go fullscreen (y/n) ?") console.fullscreen = console.read(1):lower() == "y"