MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / cleanup

Function cleanup

subprojects/llama.cpp/common/console.cpp:149–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 void cleanup() {
150 // Reset console display
151 set_display(DISPLAY_TYPE_RESET);
152
153#if !defined(_WIN32)
154 // Restore settings on POSIX systems
155 if (!simple_io) {
156 if (tty != nullptr) {
157 out = stdout;
158 fclose(tty);
159 tty = nullptr;
160 }
161 tcsetattr(STDIN_FILENO, TCSANOW, &initial_state);
162 }
163#endif
164 }
165
166 //
167 // Display and IO

Callers 10

sigint_handlerFunction · 0.85
mainFunction · 0.85
sigint_handlerFunction · 0.85
mainFunction · 0.85
~server_http_proxyMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
~ProgressBarMethod · 0.85
updateMethod · 0.85

Calls 1

set_displayFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68