Added button to terminal window to all log window to be cleared out

This commit is contained in:
AndyQ committed 2019-05-26 12:49:03 +01:00
1 parent c8ea808d93
commit 352b190a72
2 files changed
+10 -1

No files matched your search

@@ -338,6 +338,14 @@ $(function() {
copyToClipboard(lines.join("\n"));
};
self.clearLogWidow = function() {
if (self.fancyFunctionality()) {
self.log([]);
} else {
self.plainLogLines([]);
}
};
// command matching regex
// (Example output for inputs G0, G1, G28.1, M117 test)
// - 1: code including optional subcode. Example: G0, G1, G28.1, M117
+2 -1
View File
@@ -13,7 +13,8 @@
<span data-bind="visible: !autoscrollEnabled() && enableFancyFunctionality()" style="display: none">(<a href="javascript:void(0)" data-bind="click: scrollToEnd">{{ _("Scroll to end") }}</a>)</span>
</small>
<small class="pull-right">
<a href="javascript:void(0)" data-bind="click: copyAll"><i class="fa fa-copy" title="{{ _('Copy all') }}"></i> {{ _('Copy all') }}</a>
<a href="javascript:void(0)" data-bind="click: copyAll"><i class="fa fa-copy" title="{{ _('Copy all') }}"></i> {{ _('Copy all') }}</a><br>
<a href="javascript:void(0)" data-bind="click: clearLogWidow"><i class="fa fa-copy" title="{{ _('Clear log widow') }}"></i> {{ _('Clear log widow') }}</a>
</small>
<small class="pull-left text-warning" data-bind="visible: !fancyFunctionality()" style="display: none">
{{ _('For performance reasons only a limited amount of terminal functionality is enabled right now.') }}