Stub Linux support (untested) and allow the text of the prompt to be retrieved

r? @metajack