Cool if you need anything else just ask.
Sure. What I have done ATM is a small telnet server that helps me test various basic communication between itself and the BBS orientated client (testing mostly on SyncTerm 1.1 for Mac and IcyTerm 0.6.8).
I know how to draw ansi, clear screen, set position, set colors (16c, 24bit)
I loaded ansi file propely to show on the screen (IcyDraw comes with a lot of garbage, so I needed to turn back to Moebius to receive reasonable and predictable rendering results).
I need to assume terminal size as I found no way I could read terminal's row/col sizing properly. I have some clues how to maybe obtain this information as a part of telnet's DO command during initial negotiation. I found that SyncTerm sends this information through the command in its source code.. but this is still not addressed by me very well, yet.
Is there any standard way how server may optain information about telnet client's current size and resize window events?
Ansi POS is also not working as expected. regardless if I turn cursor onto 0,0 or 1,1 it is still in the second row from the top.
Also when I keep posting lines client terminal keeps scrolling to leave last line empty. Effectively instead of 25 rows, I have 23 at my disposal with ANSI POS escape code commands.
I lost the ability to render header and footer properly and I see various BBS server software achieves that correctly. Is there some trick that can help me have character cell positioning control for whole 80x25 space without risking that the terminal will scroll down?
My ansi_pos function looks like this:
puts "\e[#{row};#{col}H"
-h1
... Xerox Alto was the thing. Anything after we use is just a mere copy.
--- Mystic BBS v1.12 A48 (Linux/64)
* Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)