MCPcopy Create free account
hub / github.com/BruceDevices/firmware / redrawCurrentCommandLine

Function redrawCurrentCommandLine

src/modules/wifi/clients.cpp:513–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513void 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
526bool trySyncLiveInputFromRemoteLine(const String &line, bool renderUpdatedPrompt) {
527 String liveInput = getTerminalLiveInput();

Calls 5

getCursorYMethod · 0.45
fillRectMethod · 0.45
setCursorMethod · 0.45
setTextColorMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected