I'm trying to make a tool with notty that suspends properly on Ctrl-Z and struggling. When I send SIGSTOP or SIGTSTP to a hello world program and continue with fg, there are a couple of problems: it doesn't continue instantly (first it prints the program name and then I have to press enter), and after continuing my keypresses are echoed at the bottom of the screen. Is there something I need to do to fix this?