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:
commit
1697b153f1
3 changed files with 27 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue