Skip to content

Commit

Permalink
expose expeditor SIGWINCH state via ee_pending_winch (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
mflatt authored Dec 9, 2024
1 parent f13cb18 commit bb584d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions c/expeditor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1304,9 +1304,18 @@ static void s_ee_flush(void) {
fflush(stdout);
}

static ptr s_ee_pending_winch() {
#ifdef HANDLE_SIGWINCH
return winched ? Strue : Sfalse;
#else
return Sfalse;
#endif
}

void S_expeditor_init(void) {
Sforeign_symbol("(cs)ee_init_term", (void *)s_ee_init_term);
Sforeign_symbol("(cs)ee_read_char", (void *)s_ee_read_char);
Sforeign_symbol("(cs)ee_pending_winch", (void *)s_ee_pending_winch);
Sforeign_symbol("(cs)ee_write_char", (void *)s_ee_write_char);
Sforeign_symbol("(cs)ee_char_width", (void *)s_ee_char_width);
Sforeign_symbol("(cs)ee_set_color", (void *)s_ee_set_color);
Expand Down

0 comments on commit bb584d8

Please sign in to comment.