screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy-scrollback mode -- VIsual feedback in window caption?


From: Chris Jones
Subject: Re: Copy-scrollback mode -- VIsual feedback in window caption?
Date: Tue, 15 Dec 2009 15:08:57 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Dec 15, 2009 at 12:19:09PM EST, Sadrul Habib Chowdhury wrote:

[..]

> I haven't committed the changes yet, still testing (patch attached,
> should someone want to try it out). Opinions?

Does a very nice job like so:

caption always "%?%P%{+u kw} copy-mode %{+u wk} %:%{+u wk} %?"
hardstatus alwayslastline "[%H]%L=%=%-w%45L>(%n-%t)%+w%=%-13=[%d/%m %c]" 

The caption duplicates the beginning of the 'copy-mode' message.

Anyway, since my caption line was an empty that I use it as a separator
it was easy to fit into my setup.

The only possible problem with this approach might be for users who
already have a very long caption/status line who would end up with
something really huge. 

Without additional changes to the code, is there any way I could display
the x,y coordinates of the cursor position as the transient message
does? 

Something like:

---------------------------------------------------------------------
Copy-mode Column xxx, Line yyy 
---------------------------------------------------------------------

Useful in contexts where the cursor is difficult to spot. I sometimes
have this problem on some web pages with the ELinks web browser.

Naturally, what I mean is the x,y within the page that's displayed in
the view port, not relative to the entire scroll-back buffer.

In any event, thanks much for the patch, works for me.

Thanks,

CJ






reply via email to

[Prev in Thread] Current Thread [Next in Thread]