When I telnet in a w shows ttypx in lieu of the usual ttyx, so I need a
test to determine which is in use. Pseudocode:
if my TTY is ttypx
set the screen size accordingly
I can do line two, thanks to your suggestions but line one has me tricked.
Lindsay
doing things sometimes. Your way works, though it leaves LINES and ROWS
set to the old values. No problem of course. Is there some elegant test
I can do to see if I am connect to a ttyx or a ttypx I wonder? Then I
could automate the thing.
You could do something like:
if (expr $TTY :
When telnetting into a remote Debian box I want to have the screen size
set automatically to 100x40 to suit my home Debian box. At the moment I
am using:
export LINES=40 COLUMNS=100
after I log in.
As I sometimes use the first box in local mode I want the screen size to
depend on how I access
As I sometimes use the first box in local mode I want the screen size to
depend on how I access it and I want it to stick when I su to root.
I generally put something like this in login files (as well as aliasing it to
'rs'):
eval `resize`
stty cols $COLUMNS rows $LINES
You may find it
I have .bashrc setup for remote login differences. I also have executable
scripts in my home directory to account for other differences. I usually
give them single-letter names because I am not a great typist.
Paul Wade - Greenbush Technologies Corporation
http://www.greenbush.com/cds.html
Linux
On Mon, 13 May 1996 [EMAIL PROTECTED] wrote:
Ben Armstrong [EMAIL PROTECTED] writes:
Am I missing something? I don't see a tset, but I have all of the
standard packages for Debian 0.93R6. Should I be using something
else instead?
Ditto for me. Please summarize what you learn
Am I missing something? I don't see a tset, but I have all of the
standard packages for Debian 0.93R6. Should I be using something
else instead?
Thanks!
Ben
--
Ben Armstrong -. Medianet Development Group,
[EMAIL PROTECTED] `-.Dymaxion Research
7 matches
Mail list logo