Terminal operations for Lua