terminal tweaks

This commit is contained in:
Eduardo Bart 2012-05-11 06:13:44 -03:00
parent f9bae92bff
commit e1fad92110
2 changed files with 4 additions and 5 deletions

View File

@ -196,7 +196,7 @@ function Terminal.executeCommand(command)
if command == nil or #command == 0 then return end if command == nil or #command == 0 then return end
logLocked = true logLocked = true
g_logger.log(LogInfo, '>> ' .. command) g_logger.log(LogInfo, '> ' .. command)
logLocked = false logLocked = false
-- detect and convert commands with simple syntax -- detect and convert commands with simple syntax
@ -219,7 +219,7 @@ function Terminal.executeCommand(command)
end end
-- add command line -- add command line
Terminal.addLine(">> " .. command, "#ffffff") --Terminal.addLine(">> " .. command, "#ffffff")
-- load command buffer -- load command buffer
local func, err = loadstring(realCommand, "@") local func, err = loadstring(realCommand, "@")

View File

@ -1,6 +1,5 @@
TerminalLabel < UILabel TerminalLabel < UILabel
font: terminus-14px-bold font: terminus-14px-bold
height: 16
text-wrap: true text-wrap: true
text-auto-resize: true text-auto-resize: true
@ -24,13 +23,13 @@ UIWindow
UILabel UILabel
id: commandSymbolLabel id: commandSymbolLabel
size: 20 16 size: 12 16
fixed-size: true fixed-size: true
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.left: parent.left anchors.left: parent.left
margin-left: 2 margin-left: 2
font: terminus-14px-bold font: terminus-14px-bold
text: >> text: >
UITextEdit UITextEdit
id: commandTextEdit id: commandTextEdit