Is there a way to read the current raw options for stdin?
I want to create an operation that uses raw input from stdin, but then resets it afterwards to whatever it was when the operation started. In other words, if it was already raw, then it should remain raw. If it was not, then it should be reset to be not raw. The same applies for the value of the raw options: e.g.
{cbreak: true }
In order to do this, I need to read the current raw options. Is there a way to do this?0 Replies