|
|
Arranging Terminal windows
You wrote: "Now if I could only get Terminal windows to arrange themselves more intelligently..."
Arranging Terminal windows
how do i compile this ?
Compiling xgeom [Arranging Terminal windows]
Use gcc to compile. I believe it's on the Panther Developer Tools CD.
Correction: Arranging Terminal windows
Just noticed that my C source didn't copy the escape sequences correctly. The two printf() calls should read as follows:
Arranging Terminal windows
Hmm, gratuitous use of C if you ask me :-)
How about the following sh one-liner for xgeom?
#!/bin/sh printf '^[[8;%d;%dt^[[3;%d;%dt' $@ You could also define this as shell function in the same place you're setting up your bash aliases. ---
One-liner [Arranging Terminal windows]
Thanks for the tip. I never knew about printf as a sh/bash command. Cool. The only thing my C code does better is handle a variable number of arguments. Here's the suggested bash function:
One-liner [Arranging Terminal windows]
Nice! Its easier to cut 'n pasta if you use escape codes:
Code garbling
The forums will protect your code format if you do this... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|