Implement tty-error-channel and export to console I/O.
authorChris Hanson <org/chris-hanson/cph>
Wed, 9 May 2018 04:58:35 +0000 (21:58 -0700)
committerChris Hanson <org/chris-hanson/cph>
Wed, 9 May 2018 04:58:35 +0000 (21:58 -0700)
src/runtime/primitive-io.scm
src/runtime/runtime.pkg

index 53bf50496ac241984b7389011dd45bfc4a8dc78a..b364642ce98db584505284d2ecbf053bf11a2a18 100644 (file)
@@ -359,6 +359,9 @@ USA.
 (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)))
 
index fbae99218980b9483880e863c36573fea15c0ee8..9ee61acf4f42e6d3980a0a4d71d0ab7e5d734b78 100644 (file)
@@ -1547,9 +1547,6 @@ USA.
 (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?)
@@ -3633,6 +3630,10 @@ USA.
          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)