MCPcopy Create free account
hub / github.com/charmbracelet/bubbletea / enableAltScreen

Function enableAltScreen

cursed_renderer.go:645–651  ·  view source on GitHub ↗

enableAltScreen sets the alt screen mode. Note that this writes to the buffer directly if write is true.

(s *cursedRenderer, enable bool, write bool)

Source from the content-addressed store, hash-verified

643// enableAltScreen sets the alt screen mode.
644// Note that this writes to the buffer directly if write is true.
645func enableAltScreen(s *cursedRenderer, enable bool, write bool) {
646 if enable {
647 enterAltScreen(s, write)
648 } else {
649 exitAltScreen(s, write)
650 }
651}
652
653func enterAltScreen(s *cursedRenderer, write bool) {
654 s.scr.SaveCursor()

Callers 3

startMethod · 0.85
closeMethod · 0.85
flushMethod · 0.85

Calls 2

enterAltScreenFunction · 0.85
exitAltScreenFunction · 0.85

Tested by

no test coverage detected