mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Hide cursor during benchmark run
This commit is contained in:
@@ -57,10 +57,10 @@ func benchmark_data(description string, data string, opts Options) (duration tim
|
|||||||
return term.WriteAllString(data)
|
return term.WriteAllString(data)
|
||||||
}
|
}
|
||||||
state := loop.TerminalStateOptions{Alternate_screen: !opts.WithScrollback}
|
state := loop.TerminalStateOptions{Alternate_screen: !opts.WithScrollback}
|
||||||
if err = write_with_retry(state.SetStateEscapeCodes()); err != nil {
|
if err = write_with_retry(state.SetStateEscapeCodes() + loop.DECTCEM.EscapeCodeToReset()); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer func() { _ = write_with_retry(state.ResetStateEscapeCodes() + reset) }()
|
defer func() { _ = write_with_retry(state.ResetStateEscapeCodes() + loop.DECTCEM.EscapeCodeToSet() + reset) }()
|
||||||
const count = 3
|
const count = 3
|
||||||
|
|
||||||
const clear_screen = "\x1b[m\x1b[H\x1b[2J"
|
const clear_screen = "\x1b[m\x1b[H\x1b[2J"
|
||||||
|
|||||||
Reference in New Issue
Block a user