apix kernel wrote:
> how does "it" knows how big is the line in order to print the DONE
> part just before the end of line.

There are two ways I know of:

 - If you use bash (I don't know about other shells), look at the
COLUMNS environment variable:

    echo $COLUMNS

 - Use the TIOCGWINSZ ioctl on stdin (file descriptor 0).

HTH.
-- Remy


Remove underscore and suffix in reply address for a timely response.

-- 
gentoo-user@gentoo.org mailing list

Reply via email to