Skip to content

Commit 005dafb

Browse files
authored
Merge pull request #3675 from ssigwart/cleancmds
Comment output clear option
2 parents b0627ad + 3040514 commit 005dafb

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

src/chrome/komodo/content/run/runOutputPane.xul

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
tooltiptext="&terminateProcess.tooltiptext;"
7979
oncommand="ko.run.output.kill(-1);"
8080
disabled="true"/>
81+
<toolbarbutton id="runoutput-clear-button"
82+
class="icon-close"
83+
tooltiptext="&clearOutput.tooltiptext;"
84+
oncommand="ko.run.output.clearOutput();" />
8185
</toolbar>
8286
</box>
8387

src/chrome/komodo/content/run/runOutputWindow.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,21 @@ this.kill = function RunOutput_Kill(retval)
353353
}
354354
}
355355

356+
/** Clear */
357+
this.clearOutput = function RunOutput_ClearOutput()
358+
{
359+
var descWidget = document.getElementById("runoutput-desc");
360+
var cmdWidget = document.getElementById("runoutput-command");
361+
descWidget.setAttribute("value", "");
362+
cmdWidget.setAttribute("value", "");
363+
364+
// Clear session
365+
if (_gTerminalView && !_gTerminalHandler.active)
366+
{
367+
_gTerminalView.startSession(true);
368+
_gTerminalView.endSession();
369+
}
370+
}
356371

357372
function _SetView(editor, showParsedOutputList)
358373
{

src/chrome/komodo/locale/en-US/komodo.dtd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<!ENTITY checkForUpdates.label "Check for Updates...">
5555
<!ENTITY checkSyntaxNow.label "Check syntax now">
5656
<!ENTITY cleanLineEndings.label "Clean Line Endings">
57+
<!ENTITY clearOutput.tooltiptext "Clear Output">
5758
<!ENTITY clearSearchHighlighting.label "Clear Highlighting">
5859
<!ENTITY clearWarningErrorSquigglies.label "Clear warning/error squigglies">
5960
<!ENTITY close.label "Close">

0 commit comments

Comments
 (0)