[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scm_shell in C-Thread - Quit vs. Terminal Corruption
From: |
Ludovic Courtès |
Subject: |
Re: scm_shell in C-Thread - Quit vs. Terminal Corruption |
Date: |
Sat, 17 Oct 2009 14:52:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hi,
address@hidden writes:
> - Is there a better way to tell the scheme-thread to terminate?
You could use a condition variable (info "(guile) Mutexes and Condition
Variables").
> - Why does the code given above mess with my terminal?
I don’t know. This happens sometimes with ncurses applications that
fail to reset the terminal state upon exit, or generally applications
that use tcsetattr(3) without the ‘ECHO’ flag (e.g., command line
programs asking for a password).
Thanks,
Ludo’.