Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local palette = {}
- palette["os"] = {}
- palette["os"]["bg"] = colors.black
- palette["os"]["txt"] = colors.white
- palette["standart"] = {}
- palette["standart"]["bg"] = colors.white
- palette["standart"]["txt"] = colors.black
- palette["select"] = {}
- palette["select"]["bg"] = colors.white
- palette["select"]["txt"] = colors.red
- SetPalette = function(id)
- term.setBackgroundColor(palette[id]["bg"])
- term.setTextColor(palette[id]["txt"])
- end
- FillString = function(str, mxchr)
- local _bf = str
- for i = #str, mxchr, 1 do
- _bf = _bf .. " "
- end
- return _bf
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement