MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / replace_last

Function replace_last

common/console.cpp:306–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 }
305
306 static void replace_last(char ch) {
307#if defined(_WIN32)
308 pop_cursor();
309 put_codepoint(&ch, 1, 1);
310#else
311 fprintf(out, "\b%c", ch);
312#endif
313 }
314
315 static void append_utf8(char32_t ch, std::string & out) {
316 if (ch <= 0x7F) {

Callers 1

readline_advancedFunction · 0.70

Calls 3

fprintfFunction · 0.85
pop_cursorFunction · 0.70
put_codepointFunction · 0.70

Tested by

no test coverage detected