I hope you find it useful to solve this issue.
Not tested for arduino libserial but linux standard console only.