I use liner in a program that shares the terminal with other applications. Under certain circumstances my application regains control of the terminal unexpectedly which causes readNext to return an error. In these cases the call to readNext can be restarted after performing some housekeeping.
I have added the callback shouldRestart and SetShouldRestart to accomplish this. Please consider these names placeholders. I have tried to keep the changes to liner to a minimum.
I use liner in a program that shares the terminal with other applications. Under certain circumstances my application regains control of the terminal unexpectedly which causes readNext to return an error. In these cases the call to readNext can be restarted after performing some housekeeping.
I have added the callback shouldRestart and SetShouldRestart to accomplish this. Please consider these names placeholders. I have tried to keep the changes to liner to a minimum.