Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!src.honeywell.com!msi.umn.edu!cs.umn.edu!atc!s5000!nightowl!hawkmoon!det From: det@hawkmoon.MN.ORG (Derek E. Terveer) Newsgroups: comp.windows.x Subject: resize program Keywords: LINES COLUMNS curses Message-ID: <1991Feb12.072600.26895@hawkmoon.MN.ORG> Date: 12 Feb 91 07:26:00 GMT Organization: Home System (One of the Eternal Champions); Eagan, MN, 55123-2507, USA Lines: 28 I am looking for a program that would allow me to set the curses environment variables LINES and COLUMNS to the current window's dimensions, but i don't want to have to write something that already exists. (Besides the fact that i have never written an X program before, and i don't really have the time to delve into it right now) Right now, for non-standard window sizes, i simply manually type the following for each window after it has come up (for example): export LINES=15 COLUMNS=117 I would rather stick something like the following into my .kshrc so that it automatically gets done for me at window creation time: export LINES=$(resize -l) COLUMNS=$(resize -c) -l for lines, -c for columns, or something like that. It would obviously be a very simple program (?) for someone who knows X (it would be nice to have it done in c++ too!), and it would be a good, simple study piece for a person starting to learn X. Anybody have the source code for such a program??? derek -- Derek "Tigger" Terveer det@hawkmoon.MN.ORG -- U of MN Women's Lax I am the way and the truth and the light, I know all the answers; don't need your advice. -- "I am the way and the truth and the light" -- The Legendary Pink Dots