Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Dynamic Adaptation in size of Terminal!!!

by chargrill (Parson)
on Oct 07, 2006 at 02:10 UTC ( #576778=note: print w/ replies, xml ) Need Help??


in reply to Dynamic Adaptation in size of Terminal!!!

These really aren't that tough to find.

Please reference this link for the original question by a Mr. Jeff Silverman.

I want to build a perl script that adapts dynamically to terminalsize I am working on a perl program which uses VT100 style escape codes and runs in gnome-terminal or konsole or rxterm or xterm or similar. I want to know if there is a way to sent an escape sequence to the terminal emulator which queries for the current size of the screen and gets a report back. Does anybody know how to do this? Many thanks, Jeff Silverman

This is ridiculous.



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)


Comment on Re: Dynamic Adaptation in size of Terminal!!!
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2015-07-31 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls