Skip to content

text cursor advance from sixel seems wrong #820

@jerch

Description

@jerch

Contour Terminal version

0.3.3.204

Installer source

GitHub: release page

Operating System

Ubuntu 18 LTS

Architecture

x86-64

Other Software

No response

Steps to reproduce

  • run echo -e '\x1bPq$-$-$-$-\x1b\\' --> terminal advances full page (seems to be locked to yaml height value?)

Expected Behavior

The scriptlet inserts 4 empty sixel lines, thus 24px of vertical cursor advance. Terminal text cursor should advance by the same amount in cells. If vt340 cursor mode is enabled, the cursor should stop on the text line which covers the 24px from the original line.

Actual Behavior

On running the scriptlet terminal advances a full page (seems to be locked to yaml height value?).

Additional notes

NB: The test is furthermore degenerated in the sense that it does not place any pixel data. In contour this currently does not seem to make any difference (always shows full page advance). Note that most terminals are not sixel/vt340 conform for that no-pixel "image", as most dont move the cursor at all, which is wrong following the sixel spec - the text cursor should stop at the last active sixel line. (xterm seems to respect the empty image correctly, also need to fix it in xterm.js...)

Edit:
I stumbled over this behavior due to this script (can be used to test):
https://raw.githubusercontent.com/jerch/xterm-addon-image/1f68efe07d9404a73fafe5af4769faab42c9da1f/fixture/inspect_palette.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions