restore more terminal properties
This commit is contained in:
parent
49f4d3ee84
commit
c45bdacb26
|
@ -109,7 +109,13 @@
|
|||
(set! t (open-term))
|
||||
(set! rows 24)
|
||||
(set! cols 80)
|
||||
(set! buf (make-cached-buffer rows cols #:output (term-out t)))
|
||||
(set! buf
|
||||
(make-terminal-buffer rows cols #:output (term-out t))
|
||||
#;
|
||||
(make-cached-buffer rows cols #:output (term-out t)))
|
||||
|
||||
;; Save the current title
|
||||
(display/term t "\e[22t")
|
||||
|
||||
;; Initialize term
|
||||
(when alternate?
|
||||
|
@ -159,6 +165,11 @@
|
|||
(when alternate?
|
||||
(display/term t (reset-mode alternate-screen-mode)))
|
||||
|
||||
(display/term t "\e[?12l\e[?25h")
|
||||
|
||||
;; Restore the old title
|
||||
(display/term t "\e[23t")
|
||||
|
||||
(close-term t))])
|
||||
|
||||
(provide
|
||||
|
|
Loading…
Reference in New Issue