Code Monkey home page Code Monkey logo

mini-telnet's Introduction

Hi there ๐Ÿ‘‹

mini-telnet's People

Contributors

kolapapa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mini-telnet's Issues

Extraneous newlines in telnet server response

Thanks for writing and releasing this crate. I'm using it to collect diagnostic data from my router and seem to be getting extra newlines in the response from the telnet server.

When I telnet to my router using PuTTY and issue xdslctl info I get:

xdslctl: ADSL driver and PHY status
Status: Showtime
Last Retrain Reason:    1
Last initialization procedure status:   0
Max:    Upstream rate = 12578 Kbps, Downstream rate = 60380 Kbps
Bearer: 0, Upstream rate = 12835 Kbps, Downstream rate = 59803 Kbps
Bearer: 1, Upstream rate = 0 Kbps, Downstream rate = 0 Kbps

but when I use mini-telnet and let response = telnet.execute("xdslctl info").await? and then println!("{}", response), I get:

xdslctl: ADSL driver and PHY status

Status: Showtime

Last Retrain Reason:    1

Last initialization procedure status:   0

Max:    Upstream rate = 12578 Kbps, Downstream rate = 60276 Kbps

Bearer: 0, Upstream rate = 12835 Kbps, Downstream rate = 59803 Kbps

Bearer: 1, Upstream rate = 0 Kbps, Downstream rate = 0 Kbps

Could it be

let result = self.content.join("\n");
that's introducing the extra newlines?

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.