Re: Re: tk scrollback buffer size

will guaraldi <[email protected]>
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
Mmm...  I think the history window copies the data verbatim from the
output window when it gets created (when you press pageup).  I think the
total number of lines the output window has is 800.  So I think the size
of the history buffer is 800 lines, too.

Though to be honest, I haven't touched the tkui in a long time, so I'm not
wholly sure this is true.  I forget how it works exactly.

So at present my best answer to your question is that you can't modify it
(unless you go into the code--search for instances of "800" and change
those to your desired number).  However, I think if you increase the size
(for example, increasing it to 8000), the tk output window will slow down
incredibly and copying data from the output window to the history window
will take a longer amount of time as well.  (I don't use the tkui ever, so
this may not be true, but it sure seems familiar from way back when I
implemented this.)


Someone with more recent tkui experience might be able to answer this
better and/or create a patch that allows this to be configurable via the
configuration system (both on startup and in-game).  I'll happily
incorporate it into 4.1 when it gets released (which is in the next month
or so).

/will


On Tue, 6 Apr 2004, Yik-Jong Harry Lam wrote:
>
> Sorry, I meant the backscroll buffer, as in the maximum amount of text
> that can be stored in the pageup window.  Configuration of the buffer
> size when lyntin is started would be optimal, but "on the fly" also
> works.  On a relatively spamfree mud, I can usually fill up the buffer
> with about 5 minutes of active playing.
>
> -Harry
>
> One Tue, 6 Apr 2004, will guaraldi wrote:
> >
> > Mmm...  I'm not sure what you're referring to.  When you say
> > "scrollback size" are you referring to the commandline history or the
> > window that pops up when you hit pageup?
> >
> > Also, when you say "manipulate" do you mean "change the number while
> > I'm playing" or "configure the number to a greater or lesser size when
> > I start Lyntin"?
> >
> > /will


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.