1
0
Fork 0
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:
Károly Kiripolszky 2018-11-20 18:31:53 +01:00
parent 27cf3a356b
commit a9857f5b87

View file

@ -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 = "";
}