MCPcopy
hub / github.com/micro-editor/micro / Resize

Method Resize

internal/display/termwindow.go:30–36  ·  view source on GitHub ↗

Resize informs the terminal of a resize event

(width, height int)

Source from the content-addressed store, hash-verified

28
29// Resize informs the terminal of a resize event
30func (w *TermWindow) Resize(width, height int) {
31 if config.GetGlobalOption("statusline").(bool) {
32 height--
33 }
34 w.Term.Resize(width, height)
35 w.Width, w.Height = width, height
36}
37
38func (w *TermWindow) SetActive(b bool) {
39 w.active = b

Callers

nothing calls this directly

Calls 2

GetGlobalOptionFunction · 0.92
ResizeMethod · 0.65

Tested by

no test coverage detected