Re: How to dump content of cmd shell buffer





On 1/2/2008 3:29 PM, Harry Putnam wrote:
On Wed, 02 Jan 2008 22:16:29 +0100, Janis Papanagnou
<Janis_Papanagnou@xxxxxxxxxxx> wrote:


Harry Putnam wrote:

How can I dump the contents of my command shell buffer to a file,
using recent bash?

You mean the shell's command history?


Yikes no... I must have been unclear

I want to dump the contents of a command shell buffer.

The stuff that accrues in your shell buffer as you work.

That still sounds like your shell's command history. Can you give us any more
information on this "buffer" (e.g. where it's documented or variables/commands
through which you control/access it)?

I keep a large number of lines in the buffer and every once in a while
I want something from way up there that has long ago scrolled off the
screen but is still withing the line limit of my fuffer.

It's still not clear what you're looking for, but it sounds like maybe you want
to see some text that was displayed on your screen but has now disappeared off
the top of the window it was displayed in. If so, you need to look at the
documentation for whatever windowing system you're using rather than your shell.
For example, if you're using xterms, scrollbars can be enabled with the
appropriate options when you start the xterm, or with the appropriate
control-button sequence while the xterm is already running.

Ed.

.



Relevant Pages

  • Re: easy question
    ... Steve Franks wrote: ... get command history in an xterm instead of ctrl-key like gibberish. ... However, if you have misconfigured your keyboard, then you might not use your arrow keys. ... Another problem might be that you are using the wrong TERM environment variable inside your xterm. ...
    (freebsd-questions)
  • Re: restricting command history to the session
    ... > I use Hummingbird's Exceed from Windows machine to login to Solaris server. ... > launch various xterm windows. ... > The command history for any xterm sesssion is getting reflected in all xterm ... Yes, but it isn't xterm that's keeping a command history, it's your shell. ...
    (comp.unix.shell)
  • Re: restricting command history to the session
    ... >> I use Hummingbird's Exceed from Windows machine to login to Solaris server. ... >> launch various xterm windows. ... >> The command history for any xterm sesssion is getting reflected in all xterm ... > Yes, but it isn't xterm that's keeping a command history, it's your shell. ...
    (comp.unix.shell)
  • easy question
    ... Looks like xorg remaps the arrow keys for it's own uses - how do I ... get command history in an xterm instead of ctrl-key like gibberish. ...
    (freebsd-questions)