Getting one character at a time from sockets
penman
pen_man at my-deja.com
Tue Feb 6 18:56:33 EST 2001
More information about the Python-list mailing list
Tue Feb 6 18:56:33 EST 2001
- Previous message (by thread): Getting one character at a time from sockets
- Next message (by thread): Getting one character at a time from sockets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <95q044$2f9$1 at nnrp1.deja.com>, penman <pen_man at my-deja.com> wrote: > Using ordinary TCP/IP sockets with the socket module in Python, I need > to get a single character at a time from the client; something > like "talk" in unix. How could I do that? (should be platform > independent if possible) > > recv(1) didn't work. It waited till the carriage return came in. (non- > blocking didn't work either) > > Thanks in advance. > What I am trying to do is a text editor, something like vi, on the client side, in a BBS for telnet connections. When the client pushes "i" without CR, the server has to notice it and send some special characters to move the cursor up one line. Sent via Deja.com http://www.deja.com/
- Previous message (by thread): Getting one character at a time from sockets
- Next message (by thread): Getting one character at a time from sockets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list