TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Frank Adam
from: David Nugent
date: 1996-07-03 03:05:00
subject: Memory Blocks snuffed ?

> DN> with a string. The algorithm I use is an adaptation of the
 > DN> "gap" technique (popular with editors), which is based on
 > DN> the idea that the "hole" of free space inside a buffer can
 > DN> slide within it - to insert text less than the size of the
 > DN> gap, you just move the cursor (lower bounds of the gap) to

 > Would you know of a site or name of an editor (with source) that would
 > have that ?

The 'joe' editor was originally written as a classroom demonstration of the
theory. It has become a little more spiffy since those days, but it still
contains the algorithm. But it isn't particularly complex.

 > I'd like to have a look at this, at first read it seemed simple, but the
 > more i think about it the more complicated it gets.

Nope, not really complex at all.


 > I'm not sure if i get this slididng business.

Perhaps "moving" hole is a better description. It does
"slide" if you read the buffer sequentially, though, since the
lower end of the gap is your "cursor".

 > It sounds like just a few ifs
 > and memmoves,perhaps the buffer would need to be padded with spaces too.

"padded with spaces"?  Why?  It doesn't matter what is in the gap.

--- MaltEd/2 1.0.b6
* Origin: Unique Computing Pty Limited (3:632/348)
SEEN-BY: 50/99 620/243 623/630 632/103 107 348 360 633/371 634/388 396
SEEN-BY: 635/301 502 503 506 544 639/252 711/401 409 410 413 430 808 809 932
SEEN-BY: 711/934 712/515 713/888 714/906 800/1
@PATH: 632/348 635/503 50/99 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.