Take prompt from console from Linux

Fixes #964