(ts-enter-insert-mode false read-only true)
(ts-enter-standout-mode false read-only true)
(ts-enter-termcap-mode false read-only true)
+ (ts-enter-keypad-mode false read-only true)
(ts-exit-delete-mode false read-only true)
(ts-exit-insert-mode false read-only true)
(ts-exit-standout-mode false read-only true)
(ts-exit-termcap-mode false read-only true)
+ (ts-exit-keypad-mode false read-only true)
(ts-forward-scroll false read-only true)
(ts-forward-scroll-multi false read-only true)
(ts-insert-char false read-only true)
ts-enter-insert-mode
ts-enter-standout-mode
(termcap-get-string "ti") ;ts-enter-termcap-mode
+ (termcap-get-string "ks") ;ts-enter-keypad-mode
(termcap-get-string "ed") ;ts-exit-delete-mode
(termcap-get-string "ei") ;ts-exit-insert-mode
ts-exit-standout-mode
(termcap-get-string "te") ;ts-exit-termcap-mode
+ (termcap-get-string "ke") ;ts-exit-keypad-mode
ts-forward-scroll
ts-forward-scroll-multi
ts-insert-char
(define (console-enter! screen)
(add-event-receiver! event:console-resize resize-screen)
(maybe-output screen (ts-enter-termcap-mode (screen-description screen)))
+ (maybe-output screen (ts-enter-keypad-mode (screen-description screen)))
(set-screen-cursor-x! screen false)
(set-screen-cursor-y! screen false))
(move-cursor screen 0 (fix:-1+ (screen-y-size screen)))
(exit-standout-mode screen)
(exit-insert-mode screen)
+ (maybe-output screen (ts-exit-keypad-mode description))
(maybe-output screen (ts-exit-termcap-mode description)))
(output-port/flush-output console-i/o-port))