I'm using the new Language Console functionality, but I'm not using it with an external process - I'm using it as an in-process library. It works well, except that I can't indicate to the console when my REPL has terminated. Digging into the code I can see that ConsoleViewImpl has a ConsoleState field, but the only way to modify this is by calling attachToProcess. Ideally I'd like a more flexible way of setting the state, is there any way I can achieve this short of using reflection?
Edit: just to be clear, what I'm actually trying to achieve is to disable the editable part of the REPL so the user can't enter any more text.