Skip to content

Helix can't handle unescaped ANSI escape codes in files #12134

Description

@Rot127

Summary

Helix rendering breaks down completely if it encounters not escaped ANSI escape codes.
This messes up the rendering, as you can see here:
asciicast

Reproduction Steps

Open a file in Helix with ANSI escape codes.

Example:

...
echo
EOF
EXPECT=<<EOF
^[[?25l^[[0;0H^[[0m[0x00005ae0 [Xadvc]0 11% 192 bins/elf/ls]> xc @ entry0
- offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF  comment
0x00005ae0  f30f 1efa 31ed 4989 d15e 4889 e248 83e4  ....1.I..^H..H..  ; entry0
...

File: https://github.com/rizinorg/rizin/blob/dev/test/db/cmd/cmd_visual

Helix log

Log is empty.

Platform

Linux Fedora 40

Terminal Emulator

GNU bash, version 5.2.26(1)-release

Installation Method

Feodra repo/dnf install

Helix Version

helix 24.7 (079f544)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-helix-termArea: Helix term improvementsC-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions