Coder Social home page Coder Social logo

Comments (7)

randy3k avatar randy3k commented on August 16, 2024

Thanks for the detailed reproducible steps.

Originally, text will be truncated when the width of the window is decreased. It may more sensible to keep the text to prevent data lost.

from terminus.

divingskyward avatar divingskyward commented on August 16, 2024

Thanks! Would be great to keep the text if possible.

from terminus.

neunato avatar neunato commented on August 16, 2024

@randy3k Reporting that this is still not fixed.

Your commit fixes text disappearing when resizing down (and then scrolling in the downsized view), but when resizing back to a larger width the text disappears.

fd

from terminus.

randy3k avatar randy3k commented on August 16, 2024

@monkape actually the text is not truncated. There is a synchronization issue between the process and the screen. The text is not flowing correctly. It may be an upstream issue of winpty. Not really fixable in Terminus.

from terminus.

neunato avatar neunato commented on August 16, 2024

I see.

What do you think about adding a setting for minimum width (take a look here)?
Or even better, a word_wrap setting that, when false, would never decrease the view's width.

That fixes not only this problem, but also text wrapping when resizing a view that's running a never ending program, such as a web server.

before after
fsdsf fdsaf

I keep such terminals in groups to the right of the main view, and often resize them to a really small width in order to focus on the main content. Resizing back messes up the output + the noise can be distracting.

from terminus.

randy3k avatar randy3k commented on August 16, 2024

I am happy to support such a setting, but I would set it the default to a smaller number, say 20.

FYI, word_wrap is set as false in default.

from terminus.

neunato avatar neunato commented on August 16, 2024

I am happy to support such a setting, but I would set it the default to a smaller number, say 20.

Great, I'll hit you up with a pull request.

FYI, word_wrap is set as false in default.

I guess my wording was a bit off - what I meant was never "wrapping" the terminal content and not sublime's view.

It could be implemented by setting a huge width to the actual terminal (such that sublime's view won't surpass it) and then cropping lines (trimming whitespace) in view to match the longest line. That last bit is necessary to have a sensible horizontal scrollbar size.

from terminus.

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.