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

Function replace_last

smallthinker/common/console.cpp:309–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 }
308
309 static void replace_last(char ch) {
310#if defined(_WIN32)
311 pop_cursor();
312 put_codepoint(&ch, 1, 1);
313#else
314 fprintf(out, "\b%c", ch);
315#endif
316 }
317
318 static void append_utf8(char32_t ch, std::string & out) {
319 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