pub fn ttyecho<S: Into<String>>(tty: S, data: S, new_line: bool)
Appends given data into given pseudoterminal buffer by using ioctl syscall with TIOCSTI parameter.
It will append a null terminator to the tty path if there isn't one,
because most libc functions expect strings to be null terminated.