View previous topic :: View next topic |
Author |
Message |
riskable n00b
Joined: 18 Sep 2004 Posts: 36 Location: Jacksonville, FL
|
Posted: Sun Jul 31, 2005 7:11 pm Post subject: resize command? |
|
|
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 |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Sun Jul 31, 2005 7:23 pm Post subject: |
|
|
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 |
|
|
riskable n00b
Joined: 18 Sep 2004 Posts: 36 Location: Jacksonville, FL
|
Posted: Sun Jul 31, 2005 11:15 pm Post subject: |
|
|
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 |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Mon Aug 01, 2005 5:03 am Post subject: |
|
|
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 |
|
|
|