From bca687104e4041b676ce6a30a9a1f6e209f498b1 Mon Sep 17 00:00:00 2001 From: aryajur Date: Thu, 16 Jun 2016 23:00:42 -0700 Subject: [PATCH] Added the rockspec and made iup text box the default terminal control --- LuaTerminal-1.16.06.16-1.rockspec | 24 ++++++++++++++++++++++++ src/LuaTerminal.lua | 2 +- test/test.lua | 2 +- test/testlog.txt | 12 ++++++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 LuaTerminal-1.16.06.16-1.rockspec create mode 100644 test/testlog.txt diff --git a/LuaTerminal-1.16.06.16-1.rockspec b/LuaTerminal-1.16.06.16-1.rockspec new file mode 100644 index 0000000..a1e7930 --- /dev/null +++ b/LuaTerminal-1.16.06.16-1.rockspec @@ -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" + } +} \ No newline at end of file diff --git a/src/LuaTerminal.lua b/src/LuaTerminal.lua index e35b0e4..200f8a7 100644 --- a/src/LuaTerminal.lua +++ b/src/LuaTerminal.lua @@ -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 diff --git a/test/test.lua b/test/test.lua index 0118af7..d5fbfae 100644 --- a/test/test.lua +++ b/test/test.lua @@ -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) diff --git a/test/testlog.txt b/test/testlog.txt new file mode 100644 index 0000000..516f9d3 --- /dev/null +++ b/test/testlog.txt @@ -0,0 +1,12 @@ +for i = 1,5 do + print("Hello") + end +Hello +Hello +Hello +Hello +Hello +>exit + ; +stdin:2: syntax error near ';' +> \ No newline at end of file