![]() |
#1 |
New Member
Join Date: Feb 2005
Location: Chicago, Illinois
Posts: 8
![]() |
Hi everyone,
I've been tinkering around with SocketMUD to study ways sockets work. The C++ version of the program is nothing more than a simple program that echoes messages back to the client. While I am unsure if it was caused by the program, I did encounter strange behaviors when using a simple terminal to test it. I am unsure if this is specific to the code in use or if it happens regularly with any terminal. When I'm connected to the server, I can type a message -- but when I attempt to use backspace the output gets garbled.. example: Hi there! Hi there^R Hi ther^R That's what gets placed on the screen when I type "Hi there!" and hit the backspace key two times. What causes this? Are there ways of preventing this from happening, and if so, what other things should I look out for if I want to create an intuitive interface? Thanks, Rae |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: Dec 2005
Posts: 33
![]() |
When coding a mud you need to handle the backspace character to delete previous input characters yourself, as if the telnet client which connects is in character mode rather then line mode, it is the servers responsibility to handle this correctly.
However, the situation you have sounds almost like you are using a client which is in line mode, but is automatically typing ctrl-R for you each time you press delete. In a unix-like console running in line mode ctrl-R refreshes the current line to the screen incase you have become confused because of other text received while you were typing. It can be paticually confusing while backspacing, so a console may 'help you out' by typing Ctrl-R each time you press delete. |
![]() |
![]() |
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beyond Telnet | Rathik | Advanced MUD Concepts | 52 | 09-01-2006 01:21 AM |
Coding, Codebases, and Other Options | Shane | MUD Coding | 42 | 06-03-2006 04:30 PM |
Telnet Negotiations | Khadgar | MUD Coding | 6 | 01-09-2006 09:02 AM |
MUD Storage Options | Vopisk | MUD Coding | 1 | 03-25-2005 07:43 AM |
Interactive configuration options | Yui Unifex | Advanced MUD Concepts | 8 | 05-31-2002 02:51 PM |
|
|