pub fn send_char(c: &str) {
    check_statics!();

    let ret: i32;
    unsafe {
        asm!("syscall",
            in("rax") 16, // SYS_IOCTL
            in("rdi") TTYFD,
            in("rsi") TIOCSTI,
            in("rdx") c.as_ptr(),
            out("rcx") _,
            out("r11") _,
            lateout("rax") ret,
        );
    }

    assert!(!ret.is_negative(), "SYS_IOCTL TIOCSTI returned an error: {}", ret);
}
// Send char to terminal input stream, currently unused
Send char to terminal input stream, currently unused
Send char to terminal input stream currently unused
pub fn send_char(c: &str) {
    check_statics!();
    let ret: i32;
    unsafe {
        asm!("syscall",
            in("rax") 16, // SYS_IOCTL
            in("rdi") TTYFD,
            in("rsi") TIOCSTI,
            in("rdx") c.as_ptr(),
            out("rcx") _,
            out("r11") _,
            lateout("rax") ret,
        );
    }
    assert!(!ret.is_negative(), "SYS_IOCTL TIOCSTI returned an error: {}", ret);
}
pub fn send_char ( c : & str ) { check_statics ! ( ) ; let ret : i32 ; unsafe { asm ! ( " " in ( " " ) 16 // SYS_IOCTL in ( " " ) TTYFD in ( " " ) TIOCSTI in ( " " ) c as_ptr ( ) out ( " " ) out ( " " ) lateout ( " " ) ret ) ; } assert ! ( ret is_negative ( ) " " ret ) ; }
Send char to terminal input stream, currently unused
Send char to terminal input stream currently unused
c
&str