Git Product home page Git Product logo

Comments (4)

nirui avatar nirui commented on August 29, 2024

Hi, sorry for the inconveniences.

Were you trying to operate a Telnet remote or non-linux shell though Sshwifty? If so, it might not working correctly.

Sshwifty currently only supports sending only LF sequence when enter key is pressed, while some shell expects sequence such as CRLF or CR.

This is a known issue, but I'm currently lack of energy and time to properly test and fix it. Again, sorry for the inconveniences.

from sshwifty.

VladimirSergeevichRU avatar VladimirSergeevichRU commented on August 29, 2024

Yes, target is a device that has its own telnet server and a hardware console.
An we are actually seeing two issues.

  1. Sshwifty connects via telnet protocol to a device itself. This way, any character we type on the termial gets duplicated.
  2. Sshwifty connects via telnet to a moxa nport, which has a serial connection to a target console port. This way, to have the [Enter] keypress passed, we need to press any other key after [Enter] each time.

Thank you for the answer. We cannot reconfigure the CRLF/LF/CR option for the device's telnet. We tried to set different option for that in moxa, but it didn't help at all.

If you have any ideas were to look, could you nudge us in that direction? We might perhaps be able to fiddle with code a little, or get some debug info, do some tests.
Anyway this is not urgent! Thanks!

from sshwifty.

nirui avatar nirui commented on August 29, 2024

Well, Sshwifty probably need a complete over haul in order to properly support Telnet, and it takes time to get it right, that's the reason why I hasn't started working on this currently.

The duplicated output problem is probably caused by echoing. Sshwifty supports local as well as remote echos, but the remote needs to tell Sshwifty what to do (some don't).

In addition to that, Sshwifty uses a Terminal called xterm.js, which is a XTerm emulator. So right off the bag it limits which PTY/Shell it can support without proper input/output conversion. And based on my readings, the conversion is not a light work.

All and all, it's not going to happen in a short term. Plus, I need to get quite a few things sorted before I can get back to work on Sshwifty. So don't hold your breath for this. Sorry for the disappointment.

from sshwifty.

VladimirSergeevichRU avatar VladimirSergeevichRU commented on August 29, 2024

No problem! Thank you very much for your work, and explanation.

from sshwifty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.