Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Issue with blank spacing
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Dretzile
USA (5 posts) Bio
|
Date
| Mon 12 Nov 2012 02:13 AM (UTC) |
Message
| I recently compiled smaugfuss 1.9 on a Raspberry Pi, with a lot of coffee, a few advil and a decent amount of searching through the files I was successfully able to get it compiled, It's running nearly perfectly, but there are two problems I have noticed so far.
First, whenever someone logs in, every time they type their name the first time, it says that the name is illegal, the second time the name is typed in it accepts it every time.
Second, every time I pull up wizlist, it shows the information that is located in the wizlist file, but everything after that appears as a y with 2 dots over it (ÿ). The link at the bottom of the post is a link to an image of what i'm talking about. I've double checked and there are no spaces after the information in the wizlist file.
http://imgur.com/PJVPA | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Mon 12 Nov 2012 04:37 AM (UTC) |
Message
| It's to do with Telnet subnegotiation. The ÿ character is 0xFF (IAC).
I think the client is asking something like "do you support NAWS?" with the negotiation. Since it only asks once, if you log in again it works.
The proper way to handle it would be to add subnegotiation handling to the input handler. I think there are snippets around on this site about doing that. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Dretzile
USA (5 posts) Bio
|
Date
| Reply #2 on Mon 12 Nov 2012 05:40 AM (UTC) |
Message
| I'm not one to ask for help without trying everything and searching everywhere I can on my own first, but I cannot seem to find any snippets that add subnegotiation. Perhaps I'm not very good at searching, but you wouldn't happen to know where I could find this at, would you?
I greatly appreciate any help provided. | Top |
|
Posted by
| ThomasWatts
USA (66 posts) Bio
|
Date
| Reply #3 on Mon 12 Nov 2012 06:24 AM (UTC) |
Message
| Take a look at the following, it started out as my attempt at telnet negotiation for Smaug but as it grew past that rather quickly you will have to adapt it.
telnet.h
http://pastebin.com/ZYbujsm7
telnetOptions.c
http://pastebin.com/1uLRgjnJ
Hope this helps you. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #4 on Mon 12 Nov 2012 07:24 AM (UTC) Amended on Mon 12 Nov 2012 07:25 AM (UTC) by Nick Gammon
|
Message
| |
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
17,537 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top