|


| NAVIGATION |
|
Home |
|
Store |
|
|
| INSIDE MAC |
|
Television Shows |
|
Broadcast Shows |
|
Daily News Shows |
|
Special Shows |
|
|
| EVENTS |
|
|
|
|
|
|
|
|
| DAILY TIPS |
|
Design |
|
Mac OS X |
|
Mac OS X UNIX |
|
|
| COMMUNITY |
|
Surveys |
|
|
| NEWS |
|
Current |
|
Press |
|
Archive |
|
|
| FEATURES |
|
Editorial |
|
Dr. Mac |
|
Reviews |
|
Reader Reports |
|
|
| RESOURCES |
|
FAQ |
|
Documentation |
|
Learning Center |
|
MAN pages |
|
Glossary |
|
Tutorials |
|
Tips |
|
Links |
|
|
|

|
|
|
OSXFAQ Mac OS X UNIX Tip-of-the-Day

Week 99 - Terminal Tricks (21 February 2005)
by
Adrian Mayo - Editor, OSXFAQ
Monday - Re-size and Move with Escape Sequences
Re-size and move a terminal window from the command line, or from a script, using the following escape sequences.
Re-size to a specific number of rows and columns (eg 50 rows by 100 columns):
$ echo -n "^[[8;50;100t"
(Note: the sequence displayed as ^[ represents the escape character, obtained by typing control-v then the 'esc' key.)
Re-size to the maximum screen width by giving columns as 0:
$ echo -n "^[[8;50;0t"
Re-size to the maximum screen height by giving rows as 0:
$ echo -n "^[[8;0;100t"
Move to a specific position (eg 10 pixels from the left, and 100 pixels from the top):
$ echo -n "^[[3;10;100;t"
When re-sizing to the maximum screen width and/or height, it is advisable to position the screen at the top left:
$ echo -n "^[[3;0;0;t^[[8;0;0t"
If you want to learn more about Mac OS X Unix visit the Learning Center
click.
- For beginners: Mac OS X Unix Tutorials
- For detailed information on specific topics: Advanced Unix
- For OS X in gereral: Mac OS X Tutorials
|


|
Copyright © 2000-2010 Inside Mac Media, Inc. All rights reserved. |
Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users. |
| Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc. |
|