Skip to content

Printing over 2nd cell in wide character should delete wide character #1268

@mitchellh

Description

@mitchellh

Contour Terminal version

brew installed, unsure

Installer source

something else (please specify below)

Operating System

macOS 14

Architecture

AArch64

Other Software

No response

Steps to reproduce

#!/usr/bin/env bash
printf "橋"
printf "\033[D"
printf "X"
read

Expected Behavior

Terminal state should be X (note space prefix) according to behavior matching xterm, iTerm, urxvt, libvte-based terminals.

Actual Behavior

Terminal state became 橋X with the wide character taking 1 cell instead of 2.

Additional notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    VT: BackendVirtual Terminal Backend (libterminal API)bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions