MCPcopy Create free account
hub / github.com/LagPixelLOL/ChatGPTCLIBot / read_key

Method read_key

main/interface/cpp-terminal/input.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int32_t Term::read_key() {
42 int32_t key;
43 while ((key = read_key0()) == NO_KEY) {
44 std::this_thread::sleep_for(std::chrono::milliseconds(10));
45 }
46 return key;
47}
48
49int32_t Term::read_key0() {
50 char c{};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected