Top Mud Sites Forum Return to
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Thread Tools
Old 02-04-2006, 11:33 PM   #1
New Member
Join Date: Feb 2005
Location: Chicago, Illinois
Posts: 8
Raewyn is on a distinguished road
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?


Raewyn is offline   Reply With Quote
Old 02-05-2006, 09:58 AM   #2
Join Date: Dec 2005
Posts: 33
Smith is on a distinguished road
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.
Smith is offline   Reply With Quote

Thread Tools

Telnet Options? - Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 06:18 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud 2014