1 |
Thanks, that was i was looking for.. :) |
2 |
|
3 |
On 3/18/06, Remy Blank <remy.blank_asps@×××××.com> wrote: |
4 |
> apix kernel wrote: |
5 |
> > how does "it" knows how big is the line in order to print the DONE |
6 |
> > part just before the end of line. |
7 |
> |
8 |
> There are two ways I know of: |
9 |
> |
10 |
> - If you use bash (I don't know about other shells), look at the |
11 |
> COLUMNS environment variable: |
12 |
> |
13 |
> echo $COLUMNS |
14 |
> |
15 |
> - Use the TIOCGWINSZ ioctl on stdin (file descriptor 0). |
16 |
> |
17 |
> HTH. |
18 |
> -- Remy |
19 |
> |
20 |
> |
21 |
> Remove underscore and suffix in reply address for a timely response. |
22 |
> |
23 |
> -- |
24 |
> gentoo-user@g.o mailing list |
25 |
> |
26 |
> |
27 |
|
28 |
|
29 |
-- |
30 |
Ack and you shall receive. |
31 |
|
32 |
-- |
33 |
gentoo-user@g.o mailing list |