(define (tty-output-channel)
(make-channel ((ucode-primitive tty-output-channel 0))))
+(define (tty-error-channel)
+ (make-channel ((ucode-primitive tty-error-channel 0))))
+
(define (terminal-get-state channel)
((ucode-primitive terminal-get-state 1) (channel-descriptor channel)))
(define-package (runtime console-i/o-port)
(files "console-io")
(parent (runtime))
- (import (runtime primitive-io)
- tty-input-channel
- tty-output-channel)
(export ()
console-i/o-port
console-i/o-port?)
test-for-io-on-channel
test-for-io-on-descriptor
with-channel-blocking)
+ (export (runtime console-i/o-port)
+ tty-input-channel
+ tty-output-channel
+ tty-error-channel)
(export (runtime emacs-interface)
channel-descriptor)
(export (runtime load)