[plt-scheme] basic question about display + read + threads

From: Eli Barzilay (eli at barzilay.org)
Date: Tue Feb 15 00:53:47 EST 2005

On Feb 15, Psy-Kosh wrote:
> Bleh, thanks, suspected such a possibility. So there's no way, to,
> oh, I dunno, set the cursor at the beginning of the line right
> before a display, display with a linefeed, then return the cursor to
> the end of whatever's there? (ie, the front of the input text)

Yes, you can do that, but there's a lot of code that you'll need to
implement yourself, and --

> Oh, btw, forgot to mention, using v209, on winxp.

windows doesn't help much with such games.


> And no big deal, basically, just for the heck of it, to practice and
> to experiment with the mzscheme's tcp stuff, wanted to try making a
> crude chat proggie. (ie, nothing of great import)

I did something similar, and basically needed to implement these
things myself.  I used some ansi escape codes to deal with things like
erasing the current line, display the incoming message, then redisplay
the current "input buffer".  It's a bit of a headache to deal with all
the details, so if you want to play with such things my personal
recommendation (especially given that you use windows) would be to use
a gui for the interactions.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!



Posted on the users mailing list.