mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
match visible CLI output history with the history kept in memory
This commit is contained in:
parent
27cf3a356b
commit
a9857f5b87
1 changed files with 4 additions and 0 deletions
|
@ -316,6 +316,10 @@ TABS.cli.read = function (readInfo) {
|
|||
if (!CONFIGURATOR.cliValid && validateText.indexOf('CLI') !== -1) {
|
||||
GUI.log(i18n.getMessage('cliEnter'));
|
||||
CONFIGURATOR.cliValid = true;
|
||||
// begin output history with the prompt (last line of welcome message)
|
||||
// this is to match the content of the history with what the user sees on this tab
|
||||
const lastLine = validateText.split("\n").pop();
|
||||
this.outputHistory = lastLine;
|
||||
validateText = "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue