Added Print and Write method to the console object (#166).

This commit is contained in:
Paul Kulchenko
2016-03-14 17:08:25 -07:00
parent 60fe447ff7
commit 86396789e4

View File

@@ -211,6 +211,9 @@ DisplayShellPrompt = function (...)
out:MarkerAdd(out:GetLineCount()-1, PROMPT_MARKER)
end
function out:Print(...) return DisplayShell(...) end
function out:Write(...) return shellPrint(OUTPUT_MARKER, concat("", ...)) end
local function filterTraceError(err, addedret)
local err = err:match("(.-:%d+:.-)\n[^\n]*\n[^\n]*\n[^\n]*src/editor/shellbox.lua:.*in function 'executeShellCode'")
or err