xtermsize
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | xtermsize [2008/02/12 13:56] (current) – created kleiner | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Programatically Setting the XTerm Screen Size ====== | ||
+ | |||
+ | This is a nice thing that works for any XTerm based terminal, in particular for Mac OS X's default terminal. To change the terminal window size from the command line, use a command of the following form: | ||
+ | < | ||
+ | echo -ne ' | ||
+ | </ | ||
+ | where '' | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | echo -ne ' | ||
+ | </ | ||
+ | or you could place this into an inline function, loaded in your '' | ||
+ | < | ||
+ | function ts | ||
+ | { | ||
+ | if [[ -n " | ||
+ | echo -ne " | ||
+ | fi | ||
+ | } | ||
+ | function ts8025 | ||
+ | { | ||
+ | ts 80 25 | ||
+ | } | ||
+ | < | ||
+ | You can also set the window size in pixels instead of characters if you prefer. Just replace the 8 in the above command with a 4, like: | ||
+ | echo -ne ' | ||
xtermsize.txt · Last modified: 2008/02/12 13:56 by kleiner