All Manuals > LispWorks® User Guide and Reference Manual > 39 The LW-JI Package

*to-java-host-stream* Variable

Summary

An output stream that sends its output to the Java host.

Package

lw-ji

Initial Value

An output stream.

Description

The variable *to-java-host-stream* is bound globally to an output stream that sends any output that is written to it to the Java host, by calling send-message-to-java-host. The where-keyword argument to send-message-to-java-host is :add, so the output is added at the end and scrolled if needed. If you do not want scrolling, you can use *to-java-host-stream-no-scroll* instead.

See send-message-to-java-host for details.

Notes

The connection to the Java host is made by init-java-interface. Until init-java-interface has been called, output to *to-java-host-stream* does nothing.

*to-java-host-stream* is not buffered and makes frequent calls to send-message-to-java-host. This should be OK for dealing with a few kilobytes for each user gesture.

See also

send-message-to-java-host
*to-java-host-stream-no-scroll*


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:46