Code Monkey home page Code Monkey logo

Comments (7)

bashbunni avatar bashbunni commented on June 9, 2024

Hi @vsoch could you please show us what they current behaviour is, and what you're hoping to achieve? I'm not sure I understand what you mean by "minimize" in this case

from lipgloss.

vsoch avatar vsoch commented on June 9, 2024

This example https://github.com/charmbracelet/bubbletea/tree/master/examples/altscreen-toggle is the behavior I want. And this is what I'm getting - when I press "t" the screen sort of jumps and I can see dots on the left side, and the scrollbar on the right, but it doesn't actually minimize like the example I linked above.
ezgif com-video-to-gif

from lipgloss.

bashbunni avatar bashbunni commented on June 9, 2024

@vsoch interesting... I think I know what you mean. Does this occur in your regular terminal as well? (as opposed to the terminal built-in to VS Code)

from lipgloss.

vsoch avatar vsoch commented on June 9, 2024

In my regular terminal it doesn't show even the side bits (the dots or the sidebar) it looks like nothing is happening! The example I linked above (just tested) works in both terminals. So I don't think it's a VSCode thing.

from lipgloss.

bashbunni avatar bashbunni commented on June 9, 2024

Hey @vsoch are you also returning model in this code block? You'll either need m to be a pointer to your model or return m after making your changes. The tea.Model interface doesn't use pointers and instead returns the model after each Update

	case key.Matches(msg, m.keyMap.fullscreen):
	var cmd tea.Cmd
	if m.fullscreen {
		cmd = tea.ExitAltScreen
	} else {
  	 	cmd = tea.EnterAltScreen
	}
	m.fullscreen = !m.fullscreen // are you returning this model?
	return cmd
}

from lipgloss.

bashbunni avatar bashbunni commented on June 9, 2024

Hey @vsoch is this still an issue for you?

from lipgloss.

vsoch avatar vsoch commented on June 9, 2024

I've stopped working on it, so happy to close. Thanks for checking in!

from lipgloss.

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.