ash/stty usage

James Simmons jsimmons at infradead.org
Wed Jun 4 20:40:09 UTC 2008


Hi!

   I'm attempting color text but I'm getting "K[37;1mTextK[31;1m". Any 
idea what is wrong? Also I'm looking to flush the tty. Currently I'm doing

eat_extra_keys() {
        local saved=$(stty -g)
        stty -icanon min 1 time 1
        cat -N > /dev/null	// Modified cat to flush the and not block if no
        stty $saved		// data is present.
}

Do you know of a better way?




More information about the busybox mailing list