Next Previous Up Top Contents Index

17 The STREAM package

stream-advance-to-column

Generic Function

Summary

Writes the required number of blank spaces to ensure that the next character will be written in a given column.
Package

stream

Signature

stream-advance-to-column stream column => result

Arguments

stream

A stream.

column

An integer.

Values

result

A boolean.

Description

The generic functionstream-advance-to-column writes enough blank spaces to stream to ensure that the next character is written at column. The generic function returnst if the operation is successful, ornil if it is not supported for this stream.
This function is intended for use byprint andformat ~t. The default method usesstream-line-column and repeated calls tostream-write-char with a#\Space character, and returnsnil ifstream-line-char returnsnil.
See also

stream-line-column

LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker