-(defun line-length (&optional (stream *standard-output*))
- "Returns the number of characters that will fit on a line of output on the
- given Stream, or Nil if that information is not available."
- (let ((stream (sb-impl::out-synonym-of stream)))
- (etypecase stream
- (simple-stream
- (%simple-stream-line-length stream))
- (ansi-stream
- (funcall (sb-kernel:ansi-stream-misc stream) stream :line-length))
- (fundamental-stream
- (sb-gray:stream-line-length stream)))))
-