If I leave the break handling unchanged, and call GetLine to read a line from the console in my plugin, then when I hit Ctrl-C while the plugin is waiting for input, the whole TCC instance exits. If I disable Ctrl-C handling, I can't quit the input without entering something (and the TCC instance exits when signals are re-enabled). So presumably I need to install my own break handler around GetLine? And I guess I need to do something like longjmp to regain control after Ctrl-C is pressed? That's doable, but pretty messy. Have I missed a simpler approach? Thanks, Paul.