diff --git a/examples/chip-tool/commands/interactive/InteractiveCommands.cpp b/examples/chip-tool/commands/interactive/InteractiveCommands.cpp index 8a0235f7bb0fb3..28263ba287027d 100644 --- a/examples/chip-tool/commands/interactive/InteractiveCommands.cpp +++ b/examples/chip-tool/commands/interactive/InteractiveCommands.cpp @@ -30,8 +30,6 @@ constexpr const char * kInteractiveModeStopCommand = "quit()"; namespace { -bool gIsCommandRunning = false; - void ClearLine() { printf("\r\x1B[0J"); // Move cursor to the beginning of the line and clear from cursor to end of the screen @@ -42,11 +40,6 @@ void ENFORCE_FORMAT(3, 0) LoggingCallback(const char * module, uint8_t category, ClearLine(); chip::Logging::Platform::LogV(module, category, msg, args); ClearLine(); - - if (gIsCommandRunning == false) - { - rl_forced_update_display(); - } } } // namespace @@ -110,9 +103,7 @@ bool InteractiveStartCommand::ParseCommand(char * command) { if (argsCount == kInteractiveModeArgumentsMaxLength) { - gIsCommandRunning = true; ChipLogError(chipTool, "Too many arguments. Ignoring."); - gIsCommandRunning = false; return true; } @@ -122,9 +113,7 @@ bool InteractiveStartCommand::ParseCommand(char * command) } ClearLine(); - gIsCommandRunning = true; mHandler->RunInteractive(argsCount, args); - gIsCommandRunning = false; // Do not delete arg[0] while (--argsCount)