Mainly this ridiculous monster. Should be

```coffee
repl.outputStream.write "#{repl.rli.history[..].reverse().join '\n'}\n"
```