This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
- From: Dawid Ferenczy <ferenczy at volny dot cz>
- To: cygwin at cygwin dot com
- Date: Wed, 29 Jan 2014 17:28:16 +0000 (UTC)
- Subject: Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20131231T025559-913 at post dot gmane dot org> <8545c95dp8ns21seorjf67o4eueglcarsk at 4ax dot com> <20131231185859 dot GA4460 at ednor dot casa dot cgf dot cx> <20131231222904 dot GA5441 at ednor dot casa dot cgf dot cx> <loom dot 20140103T011837-791 at post dot gmane dot org> <20140103065626 dot GB2538 at ednor dot casa dot cgf dot cx> <loom dot 20140104T042813-236 at post dot gmane dot org> <CAM9pMnOF4JVzWjSoMKc2bhTd3ApS5BkHW10W+5MFq9LVxPrxrA at mail dot gmail dot com> <20140105234943 dot GA2524 at ednor dot casa dot cgf dot cx>
Christopher Faylor <cgf-use-the-mailinglist-please <at> cygwin.com> writes:
> You are not an acknowledged expert in sleep, issues, or me, so your
> opinions are irrelevant. I don't know why you felt compelled to comment
> on this minor point but your recommendations, understanding of humor, or
> likes are really off-topic for the Cygwin mailing list.
It's nothing important to talk about I think :)
But could I ask you, if you have some spare time (I know that it's stupid
:) I haven't got any spare time too), could you take a look on preserving
the whole scrollback buffer, no matters how big it is, please? As I have
described in my previous post. When I open and exit e.g. the LESS, the
visible buffer is preserved, but when I scroll up, there is nothing. I have
scrollback buffer set to the 9999 lines (as it is maximum in the ConEmu).
Thank you very much for your exemplary support!
--
Dawid Ferenczy
http://ferenczy.cz
> And the fix is almost perfect. It's only almost perfect, because it
> preserves the visible buffer only, not the whole scrollback buffer, which
> could be much more larger, than the window size. I can live with that, but
> could it be possible to preserve the whole scrollback buffer, no
> matters how big it is? I have a window size of 240 * 70 and scrollback
> buffer of 240 * 9999 characters.
>
> So we need to split the buffer to the regions smaller than 16384
characters
> (to fit buffer in a heap). Maybe it could be possible to get the
> scrollback buffer dimensions instead of the window dimensions and use
> ReadConsoleOutputWrapper in a loop (buffer_width * buffer_height / 16384
> iterations). Moreover, if the window size is bigger than 32768 characters,
> your fix will fail, because you attempt to read a region bigger than
> 16384 characters at once, I guess.
>
> But it's interesting that when I have the window size smaller than 16384
> characters (240 * 62), the whole scrollback buffer is preserved, no
> matters how big it is.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- References:
- Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
- Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
- Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
- Re: Clearing the buffer after quitting LESS, MAN, VIM etc.
- Re: Clearing the buffer after quitting LESS, MAN, VIM etc.