New module and changes

* Implementing rule violation interface
* New popup menu on console text messages
* Terminal and Console will no longer history double command/messages
This commit is contained in:
AndreFaramir
2012-05-01 03:49:48 -03:00
parent 4f08a288ca
commit 69614da8cb
8 changed files with 332 additions and 15 deletions

View File

@@ -211,9 +211,11 @@ function Terminal.executeCommand(command)
currentHistoryIndex = 0
-- add new command to history
table.insert(commandHistory, command)
if #commandHistory > MaxHistory then
table.remove(commandHistory, 1)
if #commandHistory == 0 or commandHistory[#commandHistory] ~= command then
table.insert(commandHistory, command)
if #commandHistory > MaxHistory then
table.remove(commandHistory, 1)
end
end
-- add command line