$ tior --help
Connect to serial port
Usage: tior [OPTIONS] <COMMAND>
Commands:
open Open TTY
list List available devices
help Print this message or the help of the given subcommand(s)
Options:
-b, --baud-rate <BAUD_RATE> Line baud rate [default: 115200]
-d, --data-bits <DATA_BITS> Line data bits [default: 8]
-f, --flow-control <FLOW_CONTROL> Flow control [default: none] [possible values: none, software, hardware]
-p, --parity <PARITY> Parity [default: none] [possible values: none, odd, even]
-h, --help Print help
-V, --version Print version
$ tior list
/dev/ttyUSB0
/dev/ttyS0
$ tior open /dev/ttyUSB0
Should also implement polling of the device until it becomes available later on.
It is the only virtual terminal crate that got me fully into login prompt with stream coming from serialport
crate surrounded by BufReader
.
For managing #terminal in #Rust the best option after trying a bunch is avt. The reason is that it has been thrown out a lot with the applications it has been used for. Not so easily found as not available in the #cargo repository. For framework like #ratatui it is pretty trivia to integrate as the the representation is just frame buffer as a byte array.
All various ratatui and tui-rs derived frameworks are pretty immature compared to its robustness. It is much better idea to just decorate avt as it feels quite rock solid with the streamed data.
not the way to do it. instead:
polkit.addAdminRule(function(action, subject) {
return ["unix-group:wheel"];
});