Giter Club home page Giter Club logo

Comments (3)

kovidgoyal avatar kovidgoyal commented on September 22, 2024

Does not replicate for me with those steps, using kitty and bash with default configurations.
screenshot

Screensshot generated by running:

kitty --config=NONE -o shell=bash -o enabled_layouts=tall

waiting for a few foobars and splitting.

Indeed, terminals in general and kitty in particular do not know or care whether processes writing to their tty devices are background or foreground, there is no way for them to know if any particular write comes from the foregound or background process. This will be something in your shell rc files most likely related to how it redraws the prompt on a resize.

from kitty.

JellyKid avatar JellyKid commented on September 22, 2024

You didn't run the script in the background with &. Your test should be "sh /t/bg.sh &"

from kitty.

kovidgoyal avatar kovidgoyal commented on September 22, 2024

Ah, right sorry. Yes in that case this will happen, because on resize
kitty shell integration clears everything after the prompt on resize to allow
the shell to redraw its prompt correctly. See
https://sw.kovidgoyal.net/kitty/shell-integration

In particular:

Glitch free window resizing even with complex prompts. Achieved by erasing the prompt on resize and allowing the shell to redraw it cleanly.

Turn off shell integration if you dont want this behavior in kitty.conf

Although I will note that having multiple processes writing to the same
tty device is broken in so many ways its not even funny.

from kitty.

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.