Code Monkey home page Code Monkey logo

Comments (4)

Aimeast avatar Aimeast commented on August 25, 2024

please see lastest adc00fd dev branch readme, DEMO MiniTerm not support change window size

from fxssh.

coddoge avatar coddoge commented on August 25, 2024

I saw ResizePseudoConsole in PseudoConsoleApi.cs of MimiTerm.
Try call it on MiniTerm.Terminal class, add a method for ConnectionService.WindowChange event to call.

It seem works.

After window width changed, All outputed content will wrap line or unwrap line immediately
After windows height changed, output scroll still ok.

But i don't know it's stability.
When i run a nano.exe (git bash on windows), long line may display incorrect after window resize.
But nested run ssh to real linux, the nano is working fine.

from fxssh.

Aimeast avatar Aimeast commented on August 25, 2024

FxSsh is a implementation for SSH Protocol, provide interface. But the MiniTerm, it just a DEMO and copy from https://github.com/microsoft/terminal/tree/main/samples/ConPTY/MiniTerm, not a part of FxSsh.

MiniTerm has imported ResizePseudoConsole API, but not make it public. As for you said, I didn't know how different between nano.exe and linux ssh.

And the readme said, Demonstrates the basic API calls required, but not intended for "real-world" usage.

from fxssh.

coddoge avatar coddoge commented on August 25, 2024

Thank you for reply.

from fxssh.

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.