Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
resize command?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
riskable
n00b
n00b


Joined: 18 Sep 2004
Posts: 36
Location: Jacksonville, FL

PostPosted: Sun Jul 31, 2005 7:11 pm    Post subject: resize command? Reply with quote

I've just installed Gentoo using a serial console and as far as I can tell Gentoo does not have a "resize" command. Back in the day I used to use "resize" on Solaris to automatically set the proper number of rows/columns for my current terminal.

Is there anything like "resize" for Gentoo? Perhaps it is buried in some sort of ebuild somewhere or perhaps there's an equivalent?

I know Red Hat 9 used to have a resize command.
_________________
-Riskable
http://www.riskable.com/
"I have a license to kill -9"
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Sun Jul 31, 2005 7:23 pm    Post subject: Reply with quote

Hm, "reset" usually restores the terminal to correct values. If that fails, you can tweak things manually with stty(1), e.g. "stty cols 80 rows 26"

Also, in bash, setting "shopt -s checkwinsize" should cause all applications to always know the correct terminal layout.

Probably not what you were looking for, HTH anyway.

[EDIT:]Hah! Found it.
/usr/bin/resize is provided (in redhat and gentoo) by the xterm package.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
riskable
n00b
n00b


Joined: 18 Sep 2004
Posts: 36
Location: Jacksonville, FL

PostPosted: Sun Jul 31, 2005 11:15 pm    Post subject: Reply with quote

Aha! Thank you!

Now the question is: How do I get xterm to emerge without X?

I'm guessing: emerge --oneshot xterm
(but will it actually compile without X?)
_________________
-Riskable
http://www.riskable.com/
"I have a license to kill -9"
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Mon Aug 01, 2005 5:03 am    Post subject: Reply with quote

You can't. Xterm obviously depends on X, no way around that.
Even if you tell emerge not to pull in depenedencies, the compilation will still fail....

I extracted the tarball and took a look at the resize source, but that depends on X too.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum