Use the (more reliable) plumber mechanism instead of exit-handler
This commit is contained in:
parent
7ef6d4fe9a
commit
11b4a88e62
|
@ -9,10 +9,9 @@
|
|||
(define (main)
|
||||
(tty-raw!)
|
||||
|
||||
(define old-exit-handler (exit-handler))
|
||||
(exit-handler (lambda (v)
|
||||
(display (reset-mode x11-any-event-mouse-tracking-mode))
|
||||
(old-exit-handler v)))
|
||||
(plumber-add-flush! (current-plumber)
|
||||
(lambda (handle)
|
||||
(display (reset-mode x11-any-event-mouse-tracking-mode))))
|
||||
|
||||
(for-each display (list (set-mode x11-any-event-mouse-tracking-mode)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue