Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Split your terminal window to view history Apps
If you haven't noticed it by yet, there's a new widget (as seen at the left) on the Terminal app's scrollbar. This is a window-splitting control. To create a split window, click the widget and then drag the resulting divider line to provide a good split between the two portions of the screen.

The area above the divider line is your scroll buffer; the area below the line is the active area. This makes it very easy to look back for previous commands, output streams, man pages, etc. The other effect of the divided window is that the scroll bars are now locked in the buffer portion of the window ... so things like page-up and page-down (and the scroll wheel, if you have one on your mouse) work in the history buffer, not the "active" lower portion of the window. If you're halfway through typing a command and want to look back at something, just hit "page up" until you see what you wanted to see and then keep typing. This is a very useful addition to the Terminal!
    •    
  • Currently 5.00 / 5
  You rated: 5 / 5 (2 votes cast)
 
[7,348 views]  

Split your terminal window to view history | 6 comments | Create New Account
Click here to return to the 'Split your terminal window to view history' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
just a single click
Authored by: jmil on Aug 27, '02 09:28:38AM

just to be clear, you only have to click the widget once, not twice. Thanks for the hint!

Jordan



[ Reply to This | # ]
Thanks - fixed the original...
Authored by: robg on Aug 27, '02 09:45:18AM

Too early in the morning for me, I guess :-).

-rob.



[ Reply to This | # ]
is it just me?
Authored by: nvdingo on Aug 27, '02 02:11:03PM

the cursor doesn't visually update when you try to move to the left on the command line, if the window is split.

any type of command line editing that involves moving the cursor to the left, does not 'visually' update the cursor, at least on my system.
typing any of the following:
left-arrow, ctrl-a,esc-b should move the cursor to the left by one character, the beginning of the line, or one word respectively. And it does, it just won't show you.

As soon as you hit the right arrow after any of those editing commands, the cursor appears one character to the right of where you expected it to be. Obviously, you have to hit the left-arrow more than once to really see the difference, but try it with ctrl-a.

if the window is not split, this issue is moot.

personally, i use 2 windows when i really want to keep track of what is going on, by using this tip from UnixGuru.com:
DEMO TO MULTIPLE TERMINALS

Ever want to show multiple
people what you are doing in
a shell.

In the shell doing the demo
type:

% csh -i |& tee /tmp/demo
or
$ csh -i 2>&1 | tee /tmp/demo

In the other shells that are
going to watch the demo type:

% tail -f /tmp/demo


That's it!
========

it works with two open terminal windows, I like them side by side instead of one on top of the other like the window split.



[ Reply to This | # ]
Might just be you...
Authored by: robg on Aug 27, '02 03:25:05PM

I just tested the cursor movement, and it works fine. All the codes work, the arrow keys work, and the cursor is at the proper position. 10.2 on a G4/350...

-rob.



[ Reply to This | # ]
you can clear it as well
Authored by: Giel on Aug 27, '02 04:53:29PM

With command-K you now can clear the scroll buffer as well.



[ Reply to This | # ]
This is not new
Authored by: thinkyhead on Aug 27, '02 06:42:06PM

This shortcut exists in Terminal 10.0.



[ Reply to This | # ]