analysis.c works and doesn't take over terminal