1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-25 09:15:42 +03:00

Merge pull request #1681 from M0j0Risin/cli-usability-enhancements

CLI usability enhancements
This commit is contained in:
Paweł Spychalski 2023-04-27 12:44:33 +02:00 committed by GitHub
commit 1697b153f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 9 deletions

View file

@ -193,6 +193,12 @@ TABS.cli.initialize = function (callback) {
self.send(getCliCommand('msc\n', TABS.cli.cliBuffer));
});
$('.tab-cli .diffall').click(function() {
self.outputHistory = "";
$('.tab-cli .window .wrapper').empty();
self.send(getCliCommand('diff all\n', TABS.cli.cliBuffer));
});
$('.tab-cli .clear').click(function() {
self.outputHistory = "";
$('.tab-cli .window .wrapper').empty();
@ -278,7 +284,7 @@ TABS.cli.initialize = function (callback) {
var out_string = textarea.val();
self.history.add(out_string.trim());
if (out_string.trim().toLowerCase() == "cls") {
if (out_string.trim().toLowerCase() == "cls" || out_string.trim().toLowerCase() == "clear") {
self.outputHistory = "";
$('.tab-cli .window .wrapper').empty();
} else {