Skip to content

Commit

Permalink
Merge pull request #3675 from ssigwart/cleancmds
Browse files Browse the repository at this point in the history
Comment output clear option
  • Loading branch information
th3coop authored May 8, 2019
2 parents b0627ad + 3040514 commit 005dafb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chrome/komodo/content/run/runOutputPane.xul
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
tooltiptext="&terminateProcess.tooltiptext;"
oncommand="ko.run.output.kill(-1);"
disabled="true"/>
<toolbarbutton id="runoutput-clear-button"
class="icon-close"
tooltiptext="&clearOutput.tooltiptext;"
oncommand="ko.run.output.clearOutput();" />
</toolbar>
</box>

Expand Down
15 changes: 15 additions & 0 deletions src/chrome/komodo/content/run/runOutputWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,21 @@ this.kill = function RunOutput_Kill(retval)
}
}

/** Clear */
this.clearOutput = function RunOutput_ClearOutput()
{
var descWidget = document.getElementById("runoutput-desc");
var cmdWidget = document.getElementById("runoutput-command");
descWidget.setAttribute("value", "");
cmdWidget.setAttribute("value", "");

// Clear session
if (_gTerminalView && !_gTerminalHandler.active)
{
_gTerminalView.startSession(true);
_gTerminalView.endSession();
}
}

function _SetView(editor, showParsedOutputList)
{
Expand Down
1 change: 1 addition & 0 deletions src/chrome/komodo/locale/en-US/komodo.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<!ENTITY checkForUpdates.label "Check for Updates...">
<!ENTITY checkSyntaxNow.label "Check syntax now">
<!ENTITY cleanLineEndings.label "Clean Line Endings">
<!ENTITY clearOutput.tooltiptext "Clear Output">
<!ENTITY clearSearchHighlighting.label "Clear Highlighting">
<!ENTITY clearWarningErrorSquigglies.label "Clear warning/error squigglies">
<!ENTITY close.label "Close">
Expand Down

0 comments on commit 005dafb

Please sign in to comment.