MCPcopy Create free account
hub / github.com/antirez/ds4 / tui_draw_title

Function tui_draw_title

ds4_eval.c:1977–1987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1975
1976static void *input_thread_main(void *arg) {
1977 (void)arg;
1978 int esc_state = 0;
1979 char buf[64];
1980
1981 while (global_input.running) {
1982 ssize_t n = read(STDIN_FILENO, buf, sizeof(buf));
1983 if (n <= 0) {
1984 usleep(5000);
1985 continue;
1986 }
1987 for (ssize_t i = 0; i < n; i++) {
1988 unsigned char c = (unsigned char)buf[i];
1989 if (esc_state == 0) {
1990 if (c == 27) esc_state = 1;

Callers 2

tui_draw_frameFunction · 0.85
tui_draw_leftFunction · 0.85

Calls 4

term_moveFunction · 0.85
tui_clear_left_lineFunction · 0.85
format_run_elapsedFunction · 0.85

Tested by

no test coverage detected