Some improvements to `getty`
Created by: goyox86
- Improved error handling over all (I think
😉 ). - Switched to argument parsing by
ArgParser
. - Replaced panics by calls to `fail.
- Removed unwraps ignoring results of syscalls when clearing the screen and flushing stdout.
- Added docs for 'noclear' option.
- The current implementation was receiving
n
arguments and was considering only the last one as the TTY this new one checks that we have at least one and always use the first one. - Added constants for columns and lines.
- Daemon receiver a reference to stderr to setup error reporting inside there.
- Some miscs.