MCPcopy Create free account
hub / github.com/cli/cli / RefreshScreen

Method RefreshScreen

pkg/iostreams/iostreams.go:416–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

414}
415
416func (s *IOStreams) RefreshScreen() {
417 if s.IsStdoutTTY() {
418 // Move cursor to 0,0
419 fmt.Fprint(s.Out, "\x1b[0;0H")
420 // Clear from cursor to bottom of screen
421 fmt.Fprint(s.Out, "\x1b[J")
422 }
423}
424
425// TerminalWidth returns the width of the terminal that controls the process
426func (s *IOStreams) TerminalWidth() int {

Callers 2

watchRunFunction · 0.80
checksRunFunction · 0.80

Calls 1

IsStdoutTTYMethod · 0.95

Tested by

no test coverage detected