forked from purescript/purescript-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConsole.lua
More file actions
11 lines (11 loc) · 737 Bytes
/
Copy pathConsole.lua
File metadata and controls
11 lines (11 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
return {
log = (function(s) return function() print(s) end end),
warn = (function(s) return function() io.stderr:write(tostring(s) .. "\n") end end),
error = (function(s) return function() io.stderr:write(tostring(s) .. "\n") end end),
info = (function(s) return function() print(s) end end),
debug = (function(s) return function() print(s) end end),
time = (function(_s) return function() error("Sorry, console timers aren't implemented yet") end end),
timeLog = (function(_s) return function() error("Sorry, console timers aren't implemented yet") end end),
timeEnd = (function(_s) return function() error("Sorry, console timers aren't implemented yet") end end),
clear = (function() io.write("\027[H\027[2J") end)
}