I need to display text recieved through a telnet session in a fast manner. As of right now I can format the text according to ansi escape codes (I used string mapping, for those curious) extreamly quickly, and push it into a text box quickly. The problem is, as the text box fills up, the display slows down. Does anyone have any suggestions on how I could go about clipping the text, and buffering the last 10000 characters? ie. if the buffer is full;
offset = (Ubound(buf1) - MaxBuf)
for i = LBound(buf1) to offset
buf(i) = buf(offset + i)
next i
Or something along those lines...but of corse, that wouldn't exactly be fast. I'm open to any other suggestions.
Thanks, Rob
"Programming is like art...It makes me feel like chopping my ear off."
- Currently down
offset = (Ubound(buf1) - MaxBuf)
for i = LBound(buf1) to offset
buf(i) = buf(offset + i)
next i
Or something along those lines...but of corse, that wouldn't exactly be fast. I'm open to any other suggestions.
Thanks, Rob
"Programming is like art...It makes me feel like chopping my ear off."
- Currently down