MCPcopy
hub / github.com/cli/cli / RefreshScreen

Method RefreshScreen

pkg/iostreams/iostreams.go:403–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401}
402
403func (s *IOStreams) RefreshScreen() {
404 if s.IsStdoutTTY() {
405 // Move cursor to 0,0
406 fmt.Fprint(s.Out, "\x1b[0;0H")
407 // Clear from cursor to bottom of screen
408 fmt.Fprint(s.Out, "\x1b[J")
409 }
410}
411
412// TerminalWidth returns the width of the terminal that controls the process
413func (s *IOStreams) TerminalWidth() int {

Callers 2

watchRunFunction · 0.80
checksRunFunction · 0.80

Calls 1

IsStdoutTTYMethod · 0.95

Tested by

no test coverage detected