Re: [Gterm-discuss] source code from gterm
Brought to you by:
theosib
From: Zhang Le <ej...@pe...> - 2003-02-13 14:48:45
|
On Wed, Feb 12, 2003 at 07:34:20PM +0100, jo...@br... wrote: > On Tue, Feb 11, 2003 at 02:43:37PM -0800, Edward Peschko wrote: > > hey, > > > > I was looking for the source code to gterm, on the sourceforge web page, and > > couldn't find any. > > Try CVS for know. I'll start asking theosib for a tar-ball, > after someone (ejoy, myself whoever) has written some > scrollback support. > This post reminds me of my history scrolling code;-) I've implemented such a history scroll function in sf.net/projects/zhcon in 2000. The trick here is to maintain a round up history buffer and push each new line in it. Also a new flag is needed to indicate whether we are in history mode(can be dismissed when new char arrives). When we are in history mode any control key such as C-UP,C-DOWN,S-UP,S-DOWN is treated specially to control history review. See the attachment for an idea. I just do not have time on gterm project these days. Any of you could do such hack, it's not vary hard. You may need to see the source (console.cpp) of zhcon for more ideas. -- Sincerely yours, Zhang Le |