You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user, when entering a line, presses C-c, the operation is canceled, and, effectivelly, linenoise() returns NULL. This is the correct behavior IMHO.
On the other hand, if, when entering a line, a signal is received or an input error is encountered, or if the channel is closed (read(2) returns 0), then linenoise() returns the partial line without any indication that something went wrong.
I think the following patch (or something along these lines) should be applied to correct this:
If the user, when entering a line, presses C-c, the operation is canceled, and, effectivelly, linenoise() returns NULL. This is the correct behavior IMHO.
On the other hand, if, when entering a line, a signal is received or an input error is encountered, or if the channel is closed (read(2) returns 0), then linenoise() returns the partial line without any indication that something went wrong.
I think the following patch (or something along these lines) should be applied to correct this:
npat-efault/picocom@352ed00bc0
The text was updated successfully, but these errors were encountered: