Skip to content

XTSMGRAPHICS "Read sixel graphics geometry" returns the different value from xterm. #656

@kumattau

Description

@kumattau

Contour Terminal version

0.3.1-unreleased-master-7f13fbb0

Installer source

Github: source code cloned

Operating System

Ubuntu Linux 20.04

Architecture

x86-64

Other Software

No response

Steps to reproduce

cat <<EOF > test.sh
IFS=';' read -a REPLY -s -t 0.25 -d "S" -p $'\e[?2;1;0S'
echo "width=\${REPLY[2]} height=\${REPLY[3]}"
EOF
bash test.sh

Expected Behavior

Returned width and height are smaller than or equal to screen width and height (same as the latest xterm).

Actual Behavior

Returned width and height are always 1920 and 1080 regardless of screen size.

Additional notes

By this problem, https://github.com/hackerb9/lsix can not layout pictures as expected position.

contour
image

xterm
image

ref: xterm implementation:

https://github.com/ThomasDickey/xterm-snapshots/blob/834b501a1416d7f14b1c38705083f413aea92eee/charproc.c#L4625

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