This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------------- | |
-- Display 256 colors in Windows cmd.exe using ANSI color control sequences | |
--------------------------------------------------------------------------------- | |
-- How to run: | |
-- lua.exe 256_colors.lua | |
-- Inspired by similar program in Ruby | |
-- https://github.com/gawin/bash-colors-256/blob/master/colors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------- Simple Lua OOP | |
local BaseClass = {} | |
BaseClass.class = BaseClass | |
function BaseClass:init(...) | |
end | |
function BaseClass:new(...) | |
local instance = setmetatable({}, {__index = self}) |