Re: capturing terminal scrollback buffer?

2006-10-09 Thread cga2000
On Sun, Oct 08, 2006 at 05:25:43AM EDT, Trond Arne Sørby wrote:
> cga2000 wrote:
> >Only feature that I'm missing is vertical screen splits and resizing
> >because this would make gnu/screen the perfect text-mode tiling window
> >manager.
> 
> I haven't tried it yet, but 
> http://people.nas.nasa.gov/~kolano/projects/screenwm.html looks 
> promising :-)

Thanks much for the pointer...!

There's a thread regarding this screen wrapper on the screen-user list.

I think I'll first apply the vertical split patch and see how this
works out for me.

Various users appear to have implemented it and it seems to work rather
well if you don't do any resizing of the underlying terminal -- which I
never do .. with only 1400x1050 pixels, I absolutely need full-screen.

As to screenwm .. I read the "doc" about twenty times and I'm not sure
what it actually _does_ .. so my guess if that you need to install it
and play with it a bit .. It _sounds_ like it provides "views" of your
multiplexed terminal environment and makes it a lot more straightforward
to ssh to remote hosts and have nested levels of screen .. but I'm not
sure. 

What I hope is that it mimics vim's behavior where you can have just
about any number of active buffers -- in essence vim "subsessions" and
switch to a memorized view that presents a collection of them in
split-screen mode. 

Since screenwm's author uses vi-like movement keys  -- dixit .. to
navigate the sub-windows, it makes sense to be somewhat hopeful that his
inspiration regarding the management of sessions  was also based on the
way it's implemented in vim. 

We'll see ..

In any event thanks a lot for this info.

Thanks,

cga


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: capturing terminal scrollback buffer?

2006-10-08 Thread Trond Arne Sørby

cga2000 wrote:

Only feature that I'm missing is vertical screen splits and resizing
because this would make gnu/screen the perfect text-mode tiling window
manager.


I haven't tried it yet, but 
http://people.nas.nasa.gov/~kolano/projects/screenwm.html looks 
promising :-)



--
Trond Arne Sørby


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: capturing terminal scrollback buffer?

2006-10-04 Thread Michelle Konzack
Am 2006-09-29 20:33:54, schrieb Andrew Sackville-West:
> anybody know how to capture the contents of a terminal scrollback
> buffer? i've got about 1000 lines of debug stuff from a network
> problem that I want to save, but its just sitting in the scroll back
> buffer of an aterm. argh! how do I get it out of there without
> copy/pasting it one screen at a time? 

Under X?

xterm -l -lf ~/$(date +%s)-xterm.log

(It does not work in Sarge but with Xterm in Etch/Sid)

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack   Apt. 917  ICQ #328449886
   50, rue de Soultz MSM LinuxMichi
0033/6/6192519367100 Strasbourg/France   IRC #Debian (irc.icq.com)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: capturing terminal scrollback buffer?

2006-10-02 Thread cga2000
On Mon, Oct 02, 2006 at 03:48:04PM EDT, Andrew Sackville-West wrote:
> On Fri, Sep 29, 2006 at 08:33:54PM -0700, Andrew Sackville-West wrote:

[..]

> yes, I know about screen and its on my list of things to learn... if
> only that list wasn't as long as my arm :)

I hear ya ..  

:-)

I think that after I read about gnu/screen and thought to myself ..
this may be worth a try .. it took me about 2 years to get down to
making it my main environment .. and then I spent the next 2 years
kicking myself for not doing it sooner. 

Only feature that I'm missing is vertical screen splits and resizing
because this would make gnu/screen the perfect text-mode tiling window
manager.

Regrettably, rumor has it that the gnu/screen maintainers/developers are
not willing to implement new features ..

Thanks

cga


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: capturing terminal scrollback buffer?

2006-10-02 Thread Andrew Sackville-West
On Fri, Sep 29, 2006 at 08:33:54PM -0700, Andrew Sackville-West wrote:
> anybody know how to capture the contents of a terminal scrollback
> buffer? i've got about 1000 lines of debug stuff from a network
> problem that I want to save, but its just sitting in the scroll back
> buffer of an aterm. argh! how do I get it out of there without
> copy/pasting it one screen at a time? 
> 
> thanks
> 
> A


thanks to all who responded. I have now successfully copied some 1000
lines of scroll back using the two click method (I didn't realise the
right click extended the selection in a terminal) with a cat >
output.txt type of solution. 

yes, I know about screen and its on my list of things to learn... if
only that list wasn't as long as my arm :)

A





signature.asc
Description: Digital signature


Re: capturing terminal scrollback buffer?

2006-10-01 Thread Mumia W..

On 10/01/2006 10:28 AM, Marc Shapiro wrote:

Mumia W.. wrote:


On 09/29/2006 10:33 PM, Andrew Sackville-West wrote:


anybody know how to capture the contents of a terminal scrollback
buffer? i've got about 1000 lines of debug stuff from a network
problem that I want to save, but its just sitting in the scroll back
buffer of an aterm. argh! how do I get it out of there without
copy/pasting it one screen at a time?
thanks

A



I don't have any experience with aterm. I'm using rxvt-xpm to test 
this right now. It must be done in two stages: copy the text before 
the last screen and copy the text on the last screen. An alternate 
x-terminal (or perhaps just a text-editor) must be available to paste 
into; in my test, I used "cat > output" in another x-terminal."


Stage 1--Copy the text before the last screen: Scroll back as far as 
you can and right-click the top-left portion of the window; the window 
highlights. Switch into the alternate x-terminal (or editor) and 
middle click to paste the text; this should be all of the text before 
the last screen.


Stage 2--Copy the text on the last screen: Go back to the last 
(bottom-most) screen in the original aterm. Right-click the 
bottom-right portion of the window; the window highlights. Switch into 
the alternate x-terminal (or editor) and middle click to paste the 
text; this should be the text on the last screen.


Good luck.

That also seems to work in mrxvt.  Additionally, I can scroll to the top 
of the buffer and select with the left mouse button and drag it all the 
way to the bottom, then paste with a middle-click.  This gets the entire 
buffer in a single opperation, instead of two.




The single operation method didn't work for me in rxvt-xpm 2.6.4.


--
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: capturing terminal scrollback buffer?

2006-10-01 Thread Marc Shapiro

Mumia W.. wrote:


On 09/29/2006 10:33 PM, Andrew Sackville-West wrote:


anybody know how to capture the contents of a terminal scrollback
buffer? i've got about 1000 lines of debug stuff from a network
problem that I want to save, but its just sitting in the scroll back
buffer of an aterm. argh! how do I get it out of there without
copy/pasting it one screen at a time?
thanks

A



I don't have any experience with aterm. I'm using rxvt-xpm to test 
this right now. It must be done in two stages: copy the text before 
the last screen and copy the text on the last screen. An alternate 
x-terminal (or perhaps just a text-editor) must be available to paste 
into; in my test, I used "cat > output" in another x-terminal."


Stage 1--Copy the text before the last screen: Scroll back as far as 
you can and right-click the top-left portion of the window; the window 
highlights. Switch into the alternate x-terminal (or editor) and 
middle click to paste the text; this should be all of the text before 
the last screen.


Stage 2--Copy the text on the last screen: Go back to the last 
(bottom-most) screen in the original aterm. Right-click the 
bottom-right portion of the window; the window highlights. Switch into 
the alternate x-terminal (or editor) and middle click to paste the 
text; this should be the text on the last screen.


Good luck.

That also seems to work in mrxvt.  Additionally, I can scroll to the top 
of the buffer and select with the left mouse button and drag it all the 
way to the bottom, then paste with a middle-click.  This gets the entire 
buffer in a single opperation, instead of two.


--
Marc Shapiro

No boom today. Boom tomorrow. There's always a boom tomorrow.
What?! Look, somebody's got to have some damn perspective around here.
Boom. Sooner or later ... boom!

- Susan Ivanova: B5 - Grail


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: capturing terminal scrollback buffer?

2006-09-30 Thread Ralph Katz
On 09/29/2006 11:40 PM, Andrew Sackville-West wrote:
> anybody know how to capture the contents of a terminal scrollback
> buffer? i've got about 1000 lines of debug stuff from a network
> problem that I want to save, but its just sitting in the scroll back
> buffer of an aterm. argh! how do I get it out of there without
> copy/pasting it one screen at a time? 

Here's how I do it on aterm:

Drag scrollbar up (back) to first desired line.
Start selecting a few characters of text (left mouse button, drag...).
Let go of mouse button.
Drag scrollbar down to end of desired line.
Right click.  Let go of mouse button.  All desired text is selected.
Now you can paste it where you like...
$ cat > textbuffer
Middle-click to paste, etc.

Much easier to do than to describe.

Regards,
Ralph


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: capturing terminal scrollback buffer?

2006-09-30 Thread cga2000
On Fri, Sep 29, 2006 at 11:33:54PM EDT, Andrew Sackville-West wrote:

> anybody know how to capture the contents of a terminal scrollback
> buffer? i've got about 1000 lines of debug stuff from a network
> problem that I want to save, but its just sitting in the scroll back
> buffer of an aterm. argh! how do I get it out of there without
> copy/pasting it one screen at a time? 

For the future, you may want to take a look at gnu/screen.

When you are running your terminal sessions under gnu/screen and you
suddenly realize that you need to take a screen dump on the fly, all you
need to do is:

· issue the gnu/screen escape keyboard action (Ctrl-A by default) 
· :hardcopy -h dumpfile

The -h flag causes gnu/screen to write the contents of the current
display as well as the contents of the scrollback buffer to the
specified file.

The point is that it's always there ready for you to use .. you don't
need to do anything special prior to starting your debugging session &
whatnot.

Needless to say that there a tons of other great features in gnu/screen
such as advanced copying & pasting between terminal sessions and
activating/deactivating session logging on the fly .. among many others.

For a terse introduction to gnu/screen's capabilities you could read
the following article :

http://jmcpherson.org/screen.html 

For an in-depth description of gnu/screen's many talents I'm afraid that
there is no advanced tutorial that I am aware of and you will have to
study the excellent but somewhat unfriendly manual (man screen).

Thanks

cga












Re: capturing terminal scrollback buffer?

2006-09-30 Thread Liam O'Toole
On Fri, 29 Sep 2006 22:30:41 -0700
derek <[EMAIL PROTECTED]> wrote:

> you can direct the output to a file,for example
> lsmod > tmp.txt

And you can use 'tee' to direct output to a file and to standard output
at the same time.

> 
> On 9/29/06, Andrew Sackville-West <[EMAIL PROTECTED]> wrote:
> >
> > anybody know how to capture the contents of a terminal scrollback
> > buffer? i've got about 1000 lines of debug stuff from a network
> > problem that I want to save, but its just sitting in the scroll back
> > buffer of an aterm. argh! how do I get it out of there without
> > copy/pasting it one screen at a time?
> >
> > thanks
> >
> > A
> >
> >
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.5 (GNU/Linux)
> >
> > iD8DBQFFHeWiaIeIEqwil4YRArboAKCatls56HlBc+dvY61xBwbTXw2UcACgrZ6K
> > o9qghPHx228Y85ItS9sDJ4U=
> > =DKdB
> > -END PGP SIGNATURE-
> >
> >
> >


-- 

Liam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: capturing terminal scrollback buffer?

2006-09-30 Thread Mumia W..

On 09/29/2006 10:33 PM, Andrew Sackville-West wrote:

anybody know how to capture the contents of a terminal scrollback
buffer? i've got about 1000 lines of debug stuff from a network
problem that I want to save, but its just sitting in the scroll back
buffer of an aterm. argh! how do I get it out of there without
copy/pasting it one screen at a time? 


thanks

A


I don't have any experience with aterm. I'm using rxvt-xpm to test this 
right now. It must be done in two stages: copy the text before the last 
screen and copy the text on the last screen. An alternate x-terminal (or 
perhaps just a text-editor) must be available to paste into; in my test, 
I used "cat > output" in another x-terminal."


Stage 1--Copy the text before the last screen: Scroll back as far as you 
can and right-click the top-left portion of the window; the window 
highlights. Switch into the alternate x-terminal (or editor) and middle 
click to paste the text; this should be all of the text before the last 
screen.


Stage 2--Copy the text on the last screen: Go back to the last 
(bottom-most) screen in the original aterm. Right-click the bottom-right 
portion of the window; the window highlights. Switch into the alternate 
x-terminal (or editor) and middle click to paste the text; this should 
be the text on the last screen.


Good luck.

--
[EMAIL PROTECTED]



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: capturing terminal scrollback buffer?

2006-09-29 Thread derek
you can direct the output to a file,for examplelsmod > tmp.txtOn 9/29/06, Andrew Sackville-West <
[EMAIL PROTECTED]> wrote:anybody know how to capture the contents of a terminal scrollback
buffer? i've got about 1000 lines of debug stuff from a networkproblem that I want to save, but its just sitting in the scroll backbuffer of an aterm. argh! how do I get it out of there withoutcopy/pasting it one screen at a time?
thanksA-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.5 (GNU/Linux)iD8DBQFFHeWiaIeIEqwil4YRArboAKCatls56HlBc+dvY61xBwbTXw2UcACgrZ6Ko9qghPHx228Y85ItS9sDJ4U==DKdB-END PGP SIGNATURE-



capturing terminal scrollback buffer?

2006-09-29 Thread Andrew Sackville-West
anybody know how to capture the contents of a terminal scrollback
buffer? i've got about 1000 lines of debug stuff from a network
problem that I want to save, but its just sitting in the scroll back
buffer of an aterm. argh! how do I get it out of there without
copy/pasting it one screen at a time? 

thanks

A


signature.asc
Description: Digital signature