pipe-game

Un jeu de cartes à piper les une dans les autres - retour accueil

git clone git://bebou.netlib.re/pipe-game
Log | Files | Refs | README |

commit 982e9d400df7154591e7a94fae2b4d8f31dd1789
parent 608e8b4c4e94dc2bb8b6db1c5f709fea85faa95b
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Thu, 23 Jan 2025 15:05:38 +0100

Oups, on remet termbox comme il était

Pour des raisons que je connais pas encore sur bsd SIGWINCH semble ne
pas être connu. J'avais modifié termbox.h pour corriger temporairement
le problème et je l'ai commit sans faire exprès. Je reviens dessus et en
attendant il faut faire la correction à la main.

Diffstat:
Mtermbox2.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/termbox2.h b/termbox2.h @@ -2297,7 +2297,7 @@ static int init_resize_handler(void) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = handle_resize; - if (sigaction(SIGINT, &sa, NULL) != 0) { + if (sigaction(SIGWINCH, &sa, NULL) != 0) { global.last_errno = errno; return TB_ERR_RESIZE_SIGACTION; } @@ -2430,7 +2430,7 @@ static int tb_deinit(void) { } } - sigaction(SIGINT, &(struct sigaction){.sa_handler = SIG_DFL}, NULL); + sigaction(SIGWINCH, &(struct sigaction){.sa_handler = SIG_DFL}, NULL); if (global.resize_pipefd[0] >= 0) close(global.resize_pipefd[0]); if (global.resize_pipefd[1] >= 0) close(global.resize_pipefd[1]);