Terminal operations for Lua
