Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/trepl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/th
diff options
context:
space:
mode:
authorClement Farabet <cfarabet@twitter.com>2014-12-25 20:49:39 +0300
committerClement Farabet <cfarabet@twitter.com>2014-12-25 20:49:39 +0300
commit396db0f71e96dd66983fcca8b7461f0e452dc7dd (patch)
tree1a57f8de20a9ecfa857beab94e3ad951d4751e75 /th
parent64f19ae831cf9690a71886e78b3976b7e8844144 (diff)
Total revamp of readline support.
(now using plain C bindings to readline)
Diffstat (limited to 'th')
-rw-r--r--th16
1 files changed, 9 insertions, 7 deletions
diff --git a/th b/th
index 57b1f71..c890a03 100644
--- a/th
+++ b/th
@@ -95,7 +95,9 @@ if lgfx then
local ok = pcall(require, 'gfx.js')
if ok then
gfx.startserver()
+ gfx.clear()
gfx.show()
+ sys.sleep(1)
else
print('could not load gfx.js, please install with: luarocks install gfx.js')
end
@@ -136,20 +138,20 @@ if asyncrepl then
-- verbose
print(
[[
-
+
______ __ ]]..col.Black[[| Torch7 ]]..[[
- /_ __/__ ________/ / ]]..col.Black[[| ]]..col.magenta[[Scientific computing for LuaJIT. ]]..[[
+ /_ __/__ ________/ / ]]..col.Black[[| ]]..col.magenta[[Scientific computing for Lua. ]]..[[
/ / / _ \/ __/ __/ _ \ ]]..col.Black[[| ]]..[[
/_/ \___/_/ \__/_//_/ ]]..col.Black[[| ]]..col.blue[[https://github.com/torch ]]..[[
]]..col.Black[[| ]]..col.blue[[http://torch.ch ]]..[[
-
+
]] .. col.red('WARNING: ') .. col.Black('you are running an experimental asynchronous interpreter for Torch.') .. [[
]] .. col.Black('Note 1: It has no support for readline/completion yet.') .. [[
]] .. col.Black('Note 2: The event-loop has been started in the background: ') .. col.none('async.go()') .. [[
]] .. col.Black(' Statements like ') .. col.none('async.setInterval(1000, function() print("test") end)') .. [[
-]] .. col.Black(' are run asynchronously to the interpreter. ') .. [[
-]] .. col.Black('Note 3: See ') .. col.blue('http://github.com/clementfarabet/async') .. col.Black(' for help' ) .. [[
-
+]] .. col.Black(' are run asynchronously to the interpreter. ') .. [[
+]] .. col.Black('Note 3: See ') .. col.blue('http://github.com/clementfarabet/async') .. col.Black(' for help' ) .. [[
+
]]
)
@@ -164,7 +166,7 @@ else
[[
______ __ ]]..col.Black[[| Torch7 ]]..[[
- /_ __/__ ________/ / ]]..col.Black[[| ]]..col.magenta[[Scientific computing for LuaJIT. ]]..[[
+ /_ __/__ ________/ / ]]..col.Black[[| ]]..col.magenta[[Scientific computing for Lua. ]]..[[
/ / / _ \/ __/ __/ _ \ ]]..col.Black[[| ]]..[[
/_/ \___/_/ \__/_//_/ ]]..col.Black[[| ]]..col.blue[[https://github.com/torch ]]..[[
]]..col.Black[[| ]]..col.blue[[http://torch.ch ]]..[[