Terminal Emulation

More
08 Mar 2019 01:09 #1 by aldie
Hi,

I think I found some issue with the negotiation of the terminal type using the telnet protocol.
AFAIK (checked with the RFC), mud sends IAC DO TERMINAL-TYPE (i can negotiate on that) and asks
to a terminal type: IAC SB TERMINAL-TYPE SEND IAC SE
or: ff fd 18 ff fa 18 01 ff f0

The client (see attached pcap files for the portal app or putty; here, 1st example putty) answers
with IAC SB TERMINAL-TYPE IS ... IAC SE

In case of putty: ff fa 18 00 58 54 45 52 4d ff f0 Or: type is XTERM


Mudportal - however - always sends two, different types. A second, unsolicited reply is attached:

ff fa 18 00 6d 75 64 70 6f 72 74 61 6c 2e 63 6f ....mudp ortal.co
6d ff f0 ff fb 18 ff fa 18 00 58 54 45 52 4d 2d m....... ..XTERM-
32 35 36 63 6f 6c 6f 72 ff f0 256color

This is not good, esp. as some clients to negotiate and change the terminal
emulation each time when the mud asks for a new type (by IAC SB TERMINAL-TYPE SEND IAC SE)
and the client switches to and returns the name of the next terminal emulation.

I do not think the portal app does this, but if it were the case, when the mud says:
Hey, type=mudportal.com is it, continue to use it.. well then the client just flips over to xterm-256col

Talking about xterm. xterm is a full superset of vt100, including even mouse control and window title setup.
Neither this nor any of the real vt100 features like cursor control, graphical line chars, larger/double
sized characters are supported. I think a basic type with colour codes, like ansi, would be a more
realistic reply than xterm.

File Attachment:

File Name: termnegpcap.zip
File Size:2 KB


Best regards.
Attachments:

Please Log in or Create an account to join the conversation.

More
08 Mar 2019 01:24 #2 by aldie
Hi,

and another issue: Setting colours and text effects with ANSI colour escape
sequences is supported. For example, you can do
ESC[32;44m for green text on black.

Alas, setting for and background colour in two commands like
ESC[32mESC[44m does not work. Or more precisely, the second
command resets the color setting of the first one. Just as if
a 0 (reset) parameter were included.. but it is not.

Funnily enough, combining with a bright attribute from a seperate ESC[ sequence
works.

Of course, supporting some more of the standard ANSI attributes like italics
underline reverse ((slow)blink? well this one is rare) would be rocking.

I had to disable all BG colour settings to get a readable screen display with the
portal app.

Best regards.

Please Log in or Create an account to join the conversation.

More
09 Mar 2019 17:39 - 09 Mar 2019 17:40 #3 by plamzi
Hi,

I've not been able to identify a place where the client sends an unsolicited TTYPE.

The relevant lines of code are found in the telnet proxy, lines 482-499: github.com/plamzi/MUDPortal-Web-App/blob...ter/proxy/wsproxy.js

Here's what TTYPE negotiation looks like when using KaVir's protocol snippet on a Circle MUD:

Sat Mar 9 11:34:22 :: ProtocolNegotiate entered, client is Unknown
Sat Mar 9 11:34:22 :: TTYPE ENTER with ttype string mudportal.com
Sat Mar 9 11:34:22 :: Looking for 256color support in mudportal.com
Sat Mar 9 11:34:22 :: REQUEST NEXT TTYPE
Sat Mar 9 11:34:22 :: CON_TTYPE wait is 4
Sat Mar 9 11:34:22 :: TTYPE ENTER with ttype string XTERM-256color
Sat Mar 9 11:34:22 :: Looking for 256color support in XTERM-256color
Sat Mar 9 11:34:22 :: Detected 256color support
Sat Mar 9 11:34:22 :: REQUEST NEXT TTYPE
Sat Mar 9 11:34:22 :: TTYPE ENTER with ttype string MTTS 141
Sat Mar 9 11:34:22 :: Looking for 256color support in MTTS 141
Sat Mar 9 11:34:22 :: REQUEST NEXT TTYPE
Sat Mar 9 11:34:22 :: ATCP: Received: var 'client', value 'mudportal.com'
Sat Mar 9 11:34:22 :: nanny: y
Sat Mar 9 11:34:22 :: ATCP: Received: var 'client_version', value '1.0'
Sat Mar 9 11:34:22 :: ATCP: Received: var 'client_ip', value '::ffff:XX.XX.XX.XX'
Sat Mar 9 11:34:22 :: sent MSDP: ▒▒ESERVER_IDBedlam▒▒

Of course, the Mudportal is lying about XTERM vt100, but that seems to be the only way that some games will identify it as being able to support 256 colors (that's the part of the ttype string we care about). End of the day, games using vt100 will find out pretty quickly that they're not playable on this client.
Last Edit: 09 Mar 2019 17:40 by plamzi.

Please Log in or Create an account to join the conversation.

More
09 Mar 2019 17:42 #4 by plamzi
Colors are handled here: github.com/plamzi/MUDPortal-Web-App/blob.../modules/Colorize.js

If you make fixes or expand support, I'd be happy to merge your changes.

Please Log in or Create an account to join the conversation.

More
18 Mar 2019 18:10 #5 by AlionaBic
Дьяченко Тюнин Севастополь заместитель генерального директора ООО «Завод марочных вин Коктебель»
в пгт.Коктебель, Феодосия. С 2015 по 2018 г.г.


Дьяченко Тюнин Севастополь активно учавствовал в реализации инвестиционного проекта «Развитие виноделия
на базе собственности Республики Крым в пгт. Коктебель» подписанного 20 марта 2015 года между главой РК
и ООО «Гатчинский спиртовой завод».

Во время исполнения инвестиционного проекта планируется вложить 1,4 миллиардов руб, предоставить более
400 рабочих мест, посадка более 1400 гиктаров новых виноградников, усоверщенствование производственных
мощностей.
Предвидиться явный рост производства и налоговых отчислений.
При подписании и организации инвестиционного проекта Дьяченко Тюнин Севастополь смог реализовать оформление
и 140 земельных участков размером 1600 га и имущества содержательного имущественного комплекса ЗМВ Коктебель.
Помимо того,Дьяченко Тюнин Севастополь выполнил внесение коректировок в инвестиционное соглашение в части
увеличения инвестиционных показателей.
Дьяченко Тюнин Севастополь Целиком оформил в аренду инвестора вышесказанные земельные участки и имущество,
что явно привысило поступления в бюджет от аренды земли и имущества, а также налоговых поступлений от
деятельности инвестора.
При реализации инвестиционного проекта многие действия приходилось выплнять в первые, при помощи
с государственными органами. Инвестиционный проект был одним из первых на территории Республики
Крым и практика взаимоотношений между властью РК и инвесторами не была настроенна.
Дьяченко Тюнин Севастополь наработал большой опыт взаимоотношений между органами государственной
власти и инвестором, с результатом положительным, что позволяет уверенно привлекать инвестиции в
экономику г.Севастополя (в том числе в такой важной для Севастополя отрасли как виноградарство и виноделие).

Please Log in or Create an account to join the conversation.

More
18 Mar 2019 20:32 #6 by Jamesgoams
"As soon as you do that, then you're playing on your heels," Marshall said. "You take away aggression, you're not playing as good as you were before."
INJURY UPDATE
"I don't know we're any closer, but I know we're all working to make sure we stay <a href=http://www.cheapnba.us.com/Cheap-Corey-Brewer-Jersey-Los-Angeles-Lakers/>Corey Brewer Jersey</a> connected. I know he's staying connected to everything that we're doing," <a href=http://www.cheapjerseysfastshipping.us.com/>Authentic Jerseys Store</a> Carroll said. "He's the ultimate competitor and he's not going to get very far away from us, but there is still stuff to be talked out."
"I'm good," Rivers said. "Had this been the regular season, I would have stayed in. That was it for me anyway, just the first half."
"Hernandez allegedly shot him in the face on the morning of Feb. 13, 2013, and left him to die on the side of the road in Riviera Beach, Florida, after the witness made a remark about the homicides," the office said in a news release.
He struggled from the beginning with the Bucs, starting the first three games of the season 锟?all losses 锟?before injuring the thumb on his <a href=http://www.chinajerseysstore.us.com/>Cheap Jerseys China</a> throwing hand and missing the next five weeks.

Please Log in or Create an account to join the conversation.

More
20 Mar 2019 00:32 #7 by Jamesgoams
Fells, who played basketball <a href=http://www.discountnikeshoes.us.com/>Nike Shoes Online Store China</a> at UC Irvine, caught four passes for 82 yards, the most in a game by a Cardinals tight <a href=http://www.nflcheapjerseyschina.us.com/>Wholesale Authentic Jerseys</a> end since 1989. Larry Fitzgerald had six catches for 87 yards.
The Bills on Thursday exercised their exclusive rights by tendering offers to retain receivers Chris Hogan and Justin Brown and defensive tackle Corbin Bryant.
"I love my teammates," Richardson said. "These guys looked after me, took care of me. After every game, they would talk to me, make sure I was doing OK. My parents, my brothers, family and <a href=http://www.cheapaustraliashoes.com/>Cheap Shoes Australia Free Shipping</a> friends 锟?everybody in my circle who was supposed to be there <a href=http://www.wholesaleoldskool.com/>Vans Old Skool Usa Sale</a> was there."
The Bears held <a href=http://www.chinacheapnfljerseys.us.com/>China Jerseys Cheap</a> nothing back with Jeffery, or with wide receiver Eddie Royal, who Zaino Fjallraven Kanken <a href=http://www.cheapshoeswholesale.us.com/>Cheap Shoes Wholesale</a> Offerta was coming off an ankle injury. Both had close to 60 plays.
With <a href=http://www.wholesalenfljerseysstore.us.com/>Cheap Jerseys Store</a> Marshawn Lynch missing his second straight game with a hamstring injury, the undrafted rookie rumbled all <a href=http://www.cheapnikemlbjerseys.us.com/>Baseball Jerseys Nike From China</a> over the Bengals in regulation, running for a 69-yard TD, part of a career-best 169-yard game.
The Falcons had plenty of chances <a href=http://www.cheapwholesalejerseysstore.us.com/>Cheap Jerseys Wholesale</a> to keep this from being close late.

Please Log in or Create an account to join the conversation.