Emulate terminal-style I/O within a webpage's element. Write and read lines, clear the element and set reading prompts.