Skip to content

PAGE incorrectly leaves cursor at bottom left #203

Open
@rgizz

Description

@rgizz

PAGE is supposed to leave the cursor at the top left of the terminal, according to the standard. However, in pforth, PAGE leaves the cursor at the bottom left.

I suggest this.

: page ( -- , clear screen )
$1B emit [char] [ emit
." 1;H" $1B emit [char] [ emit ." 2J" ;

Thank you very much for pforth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions