| 511 | } |
| 512 | |
| 513 | void redrawCurrentCommandLine() { |
| 514 | int lineHeight = max(1, FP * LH); |
| 515 | int lineY = tft.getCursorY(); |
| 516 | if (lineY < TERMINAL_PAD_Y) lineY = TERMINAL_PAD_Y; |
| 517 | |
| 518 | tft.fillRect(TERMINAL_PAD_X, lineY, tftWidth - (TERMINAL_PAD_X * 2), lineHeight, bruceConfig.bgColor); |
| 519 | tft.setCursor(TERMINAL_PAD_X, lineY); |
| 520 | tft.setTextColor(TFT_GREEN, bruceConfig.bgColor); |
| 521 | tft.print(commandBuffer); |
| 522 | tft.setTextColor(bruceConfig.priColor, bruceConfig.bgColor); |
| 523 | cursorY = tft.getCursorY(); |
| 524 | } |
| 525 | |
| 526 | bool trySyncLiveInputFromRemoteLine(const String &line, bool renderUpdatedPrompt) { |
| 527 | String liveInput = getTerminalLiveInput(); |
no test coverage detected