As i have an interactive PERL app., working in text mode (in a terminal window), and it outputs new messages in the place of previous ones (it first clears the space of the current line, then prints new message) - i need to set the size (in char.s) of the line (as the terminal window size changes some times). So, i set it manually, and therefore the app. clears the line right. Now, question is, how i can automate the seeting of the line size (in char.s): how the app. itself can measure current line size (in char.s)? - For without the exact size set, the line will be chenged to the next line - thus wasting one line every time new message comes OR it will not clear all the previous message either. Thank you for your time/help.