diff options
author | Adrian Kummerlaender | 2015-08-13 20:19:42 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2015-08-13 20:19:42 +0200 |
commit | 358d64b332068103b24577bbf4c390b05dbe50df (patch) | |
tree | 7839cdccacac46c70fcf477c434bfee33866dd4f /qml/CommandInput.qml | |
parent | aca84cb4ef24c1b4b9e3d53126081db8b14855e2 (diff) | |
download | MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.gz MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.bz2 MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.lz MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.xz MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.tar.zst MetaTerm-358d64b332068103b24577bbf4c390b05dbe50df.zip |
Implement `ls` command
This suggested adding an `iterate` helper method to `TerminalList` as well as line break logic to the command output log.
Diffstat (limited to 'qml/CommandInput.qml')
-rw-r--r-- | qml/CommandInput.qml | 6 |
1 files changed, 5 insertions, 1 deletions
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 += '<br/>' + msg; + } } function error(msg) { |