Re: Ansi color detection ... little problem.

From: Bryan Donlan (bdonlan@maine.rr.com)
Date: 05/31/02


On Friday 31 May 2002 9:15 am, Vladimir Nano wrote:
> Hallo.
> I implemented $subj into my mud.
> In Win98 (borland compilator) all works fine.
>
> But in RedHat 6.0 with telnet:
> >telnet localhost 4000
> >Trying...
> >Detecting ANSI compliance... \x1B[6n
> >Not detected....
> >.
> >.
> >.
> >Enter your name, player:  Vladon
> >You entered '[21;30Vladon'... Invalid name....
>
> It means, server sends ansi string to client, but client
> do not answer immediately. Client answers when player enters new
> line(enter).
> And then ansi answer and name is in one string :-(
> How to force client to send answer immediately?
> Or is ansi answer somewhere in d->input before entering player name?

It's impossible. TCP is asyncronous, so anything send does not always get
responded to immediately. Try waiting a few secs after sending the codes,
then checking for a response.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT