From 358d64b332068103b24577bbf4c390b05dbe50df Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 13 Aug 2015 20:19:42 +0200 Subject: Implement `ls` command This suggested adding an `iterate` helper method to `TerminalList` as well as line break logic to the command output log. --- qml/CommandInput.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qml/CommandInput.qml') diff --git a/qml/CommandInput.qml b/qml/CommandInput.qml index 5fbde77..99f5d0e 100644 --- a/qml/CommandInput.qml +++ b/qml/CommandInput.qml @@ -118,7 +118,11 @@ Item { } function log(msg) { - text += msg; + if ( isInitial() ) { + text = msg; + } else { + text += '
' + msg; + } } function error(msg) { -- cgit v1.2.3