On 31Oct2012 15:17, Jeremy Kitchen <kitc...@kitchen.io> wrote:
| On Thu, Nov 01, 2012 at 09:01:20AM +1100, Cameron Simpson wrote:
| > | I tried iTerm2 but I didn't like it much. For me
| > | the default Terminal in Mac OS X renders a nicer display IMO. But then i
| > | spend little time on my Mac, mostly I just use my BSD machines and urxvt.
| > 
| > I like iTerm2 for the following reasons:
| > 
| >   - horizontal and vertical pane tiling
| >     I've bound shift-%V to open a new vertical pane (splits the current
| >     pane vertically) and shift-%T to open a new horizontal pane (splits
| >     the current pane horizontally).
| >     This is outstandingly useful for working in multiple shells.
| >     I do a lot of remote admin and opening shells on a bunch of machines
| >     nicely arranged for coordinated work is very pleasing.
| 
| You may want to look into tmux :)

Oh, I do want to!

I'm still a screen user on the whole and haven't yet wrapped my head
around tmux' usage.

But if you mean logically subdividing a single _terminal_ window with
multiple session displays, no thanks. I've never found it works for
me with vi or screen or other in-terminal dividers, including urxvt's
internal tabbing support; they all devolve to focus follows mouse or
arcane keystrokes to switch focus because the terminal doesn't see the
mouse cursor, and they also all devolve to emulated terminals and curses
support issues, and the control stuff gets in the way of being a "pure"
terminal. Let us not get into cut/paste line ending issues:-)

I find it far better to use a terminal emulator like iTerm2 to manage
this stuff.

Now, that said, I _do_ have use for easy ways to fork off a bunch of
nicely split up windows/tabs/panes. I intend spending a day with
AppleScript and my "@" convenience script to make it support this
syntax:

  @ h1,2,3:h4,5,h6 h1,2,3 ...

where each space separated chunk makes a new tab, each colon separated
chunk a new vertical pane and each comma separated chunk a new
horizontally split pane within that vertical pane. So that the above
with open two tabs, the first with two vertical panes. The first
vertical pane would have ssh sessions to hosts "h1" and "h2" and "h3".
And so on.

I've had the comma syntax for years via a handy script, so all that
remains is the parsing for the rest (and figuring out what I have to say
to iTerm2 via AppleScript to get it to obey).

The other terminal related project on the backburner is a screen (or tmux)
based session tracker so that when I lose my remote connections I can easily
and intuitively reconnect to them.

| Then again, nearly 100% of my in-terminal work is done from another,
| permanently-connected machine, and my mac is just a portal to my
| linux-box-du-jour.

My mac is my portal like yours (though I do a lot of coding locally and
push changes out - far far snappier, and one can do it on a train or
otherwise offline, pushing later). This email is being written on my
home server via ssh, and I've got mutt configured to automatically
compose replies in a detachable screen session named after a mangling of
the subject line, so I can reconnect later if disconnected (or if I just
decide to disconnect from screen and finish composition another time).
Thus:

  [/home/cameron]janus*> scr
    1   23168.BACKUP
    2    7237.DOVECOT
    3   12992.EMERGE
    4    8218.GETMAIL
    5    9000.MAILFILER
    6   31196.WD
    7    4915.WD_BEY2
    8    4793.WD_BEYONWIZ
    9   14831.mutt-01nov2012-10:10
   10   16970.mutt-27oct2012-14:45

So I could detach right now and reconnect by saying "scr 10" to finish
the job.

Anyone wanting to see the code for any of the above is quite welcome,
BTW.

Cheers,
-- 
Cameron Simpson <c...@zip.com.au>

Are you experiencing more Windows95 crashes than the norm? How on earth
would you _know_?       - John Brook <jo...@research.canon.com.au>
                          reporting about a new virus

Reply via email to