Skip to content

In vt52 mode positioning sequence ESCYcxcy does not work correctly in mintty #1299

@sf-at-sf

Description

@sf-at-sf

Hello,

In vt52 mode ESCYcycx sequence does not position cursor correctly if cy value exceed number of rows on the screen (24).

This is from email conversation with Thomas Dickey (xterm maintainer):

the manual (EK-VT5X-OP-001_DECscope User's Guide) agrees with you:

    For "line#", the host sends the octal code 040 to specify the top line
    of the screen, 041 to specify the line below the top line, and so
    forth.  On the VT50H, 053 specifies the bottom line.  On the 24-line
    VT52, 067 specifies the bottom line.  If line# does not specify a line
    that exists on the screen, the VT50H will move the cursor to the bottom
    line of the screen.  However, the VT52 will not move the cursor
    vertically if the vertical parameter is out of bounds.  A Direct Cursor
    Addressing command with the first parameter greater than 067 can be
    issued to the VT52 to move the cursor arbitrarily in the horizontal
    direction without the flickering of the video that the full Direct
    Cursor Addressing command can cause.

The impact (which I observe):
Using hobbyist RT11 OS under SIMH and native DEC K52 editor. K52 will keep entered line always at the bottom and does not display or browse files correctly, keeping cursor at the last line for every entry.

Fix which I put for my self yet:

MINTTY Source VERSION 3.7.6
src/termout.c file:

replace from line 125 :
125 if (y >= term.rows)
126 y = term.rows - 1;

with:

125 if (y >= term.rows)
126 {
127 if (term.vt52_mode)
128 y = curs->y;
129 else
130 y = term.rows - 1;
131 }

Please let me know if any questions or concerns.

Thanks
Serguei

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