> > Hi!
> > 
> >    I'm attempting color text but I'm getting "K[37;1mTextK[31;1m". Any 
> > idea what is wrong?
> 
> What do you do to get it?

echo "IP address <$ip>"

The $ip would be highlighted in a bright color. It worked with busybox 
1.00 but I haven't been able to get it to work for newer versions.

> > 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?
> 
> Don't know for sure, maybe this?
> 
> int tcflush(int fd, int queue_selector);

I was hoping some app in busybox did that in some way.Will search for 
tools to do that.
 
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to