Working cooperative multitasking at command-line.