[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CURSORPOS argument order



    Date: 8 April 1981 14:01-EST
    From: Carl W. Hoffman <CWH>

        Date:  8 APR 1981 0029-EST
        From: Moon at MIT-AI (David A. Moon)

        Well it's documented to take it as the first arg in Maclisp, or it was
        when the Lisp machine cursorpos was written.  Evidently it was changed.
        The only Lisp machine program I know of that uses CURSORPOS is Macsyma;
        so how come Macsyma works?

    Streams?  But that's Space Age Technology.  Macsyma calls CURSORPOS without
    a stream argument.

The [now outdated] LispM manual has always claimed that streams were not
supported, so I doubt at this point that many programs depend on them.
The most recent documentation on the subject is as follows from
.INFO.;LISP NEWS:

    FRIDAY  APRIL 18,1975   FQ+9H.34M.47S.   LISP 1049   - GLS -

    CURSORPOS MAY TAKE AN EXTRA ARGUMENT TO DETERMINE WHICH OUTPUT
    TTY TO DO THE CURSOR POSITIONING ON.  IF THE LAST ARGUMENT CAN
    BE TAKEN TO BE A TTY, IT IS.
    ONE INCOMPATIBILITY IS THAT (CURSORPOS 'T) NOW MEANS GET THE
    COORDINATES OF TTY "T" RATHER THAN GO TO THE TOP OF THE SCREEN.
    TO GO TO THE TOP OF THE SCREEN FOR THE DEFAULT TTY, USE
    (CURSORPOS 'TOP) OR (CURSORPOS 124) OR (CURSORPOS 'T T).

I would advocate letting the new manual be wrong and putting the arg in
the `right' place since the function is documented to be for `Maclisp
compatibility.'

-kmp