Coder Social home page Coder Social logo

Comments (7)

meowgorithm avatar meowgorithm commented on May 21, 2024 1

That would be awesome, @kiyonlin. Please do feel free to submit a PR. Iโ€™d probably call them tea.EnterAltScreenMsg and tea.ExitAltScreenMsg for naming consistency (like tea.KeyMsg and tea.WindowSizeMsg).

from bubbletea.

kiyonlin avatar kiyonlin commented on May 21, 2024

This is a good idea. So we should provide 2 Msg tea.EnterAltScreen and tea.ExitAltScreen. User can trigger them in Update if they want to change the alt screen mode.

I think I can submit a PR if you haven't done this.

from bubbletea.

meowgorithm avatar meowgorithm commented on May 21, 2024

Actually, @kiyonlin, thereโ€™s a branch I should merge before you do this. Iโ€™ll do that in a few minutes and let you know when itโ€™s in.

from bubbletea.

kiyonlin avatar kiyonlin commented on May 21, 2024

Dw, I will do it tomorrow (9 hours later) ๐Ÿ˜ƒ

from bubbletea.

meowgorithm avatar meowgorithm commented on May 21, 2024

@kiyonlin Alright, go for it. There are some small changes in how the alt screen is set in #61 (just merged) but it shouldn't change your implementation.

from bubbletea.

meowgorithm avatar meowgorithm commented on May 21, 2024

Oh, just one more thought: realizing we'll also need two commands in addition to messages which I'd probably call tea.EnterAltScreen and tea.ExitAltScreen.

from bubbletea.

meowgorithm avatar meowgorithm commented on May 21, 2024

This has been merged and was released in v0.13.0.

from bubbletea.

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.