Skip to content

Commit

Permalink
Added the rockspec and made iup text box the default terminal control
Browse files Browse the repository at this point in the history
  • Loading branch information
aryajur committed Jun 17, 2016
1 parent 345e861 commit bca6871
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
24 changes: 24 additions & 0 deletions LuaTerminal-1.16.06.16-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package = "LuaTerminal"
version = "1.16.06.16-1"
source = {
url = "https://github.com/aryajur/LuaTerminal.git",
tag = "1.16.06"
}
description = {
summary = "To provide Lua Terminal GUI element using the IUP toolkit",
detailed = [[
LuaTerminal is a standalone Lua 5.2+ module that allows you to create a Lua terminal in a IUP text box/scintilla or opens a socket terminal allowing remote dumb consoles to remotely execute lua code and receive responses or it can have both running simultaneously with multiple instances of each.
]],
homepage = "http://www.amved.com/milindsweb/LuaTerminal.html",
license = "MIT"
}
dependencies = {
"lua >= 5.2",
"luasocket",
}
build = {
type = "builtin",
modules = {
LuaTerminal = "src/LuaTerminal.lua"
}
}
2 changes: 1 addition & 1 deletion src/LuaTerminal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ _ENV = M -- Lua 5.2+

_VERSION = "1.16.06.16"
MAXTEXT = 8192 -- maximum characters in text box
USESCINTILLA = true
USESCINTILLA = false

local numOfTerms = 0 -- To maintain the number of terminals being managed
local numOfSockTerms = 0 -- To maintain the number of socket terminals being managed
Expand Down
2 changes: 1 addition & 1 deletion test/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require("iuplua")
require("iuplua_scintilla")
lt = require("LuaTerminal")

lt.USESCINTILLA = true
-- Create terminal
newterm = lt.newTerm(_ENV,true,"testlog.txt")
--print("newterm: ", newterm)
Expand Down
12 changes: 12 additions & 0 deletions test/testlog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
for i = 1,5 do
print("Hello")
end
Hello
Hello
Hello
Hello
Hello
>exit
;
stdin:2: syntax error near ';'
>

0 comments on commit bca6871

Please sign in to comment.