>>>>> "Tommy" == Tommy Thorn <[EMAIL PROTECTED]> writes: > Indeed. When I was getting into Haskell, I hacked the ansi.hs example > from the Hugs distribution to add editing. Parts of the function > actually became simpler this way. .. hack snipped Thats nice: maybe the next step would be to allow arbitrarily long lines, and give "loop" another state argument which is the offset into the buffer of the (one-dimensional) window we currently have into it. Or something equivalent. With luck, this would generalise to two dimensions without too much extra fuss. Does ansi do scrolling, and such things? If it was written using monadic IO, a simple screen editor would make a rather nice example program for Haskell, and a basis for tuning and further features. Regards, Peter
- A datatype for the text editor buffer? Marcin 'Qrczak' Kowalczyk
- A datatype for the text editor buffer? Peter Hancock
- Re: A datatype for the text editor buffer? Fergus Henderson
- Re: A datatype for the text editor buffer? Bernd Loechner
- A datatype for the text editor buffer? Tommy Thorn
- Re: A datatype for the text editor buffer? Kevin Atkinson
- Re: A datatype for the text editor buffer? Peter Hancock
- Re: A datatype for the text editor buffer? Marcin 'Qrczak' Kowalczyk
- RE: A datatype for the text editor buffer? Frank A. Christoph
- RE: A datatype for the text editor buff... Peter Hancock
- Re: A datatype for the text editor ... George Russell
- Re: A datatype for the text edi... Peter Hancock
- RE: A datatype for the text editor ... Frank A. Christoph
- RE: A datatype for the text edi... Frank A. Christoph