Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text with ANSI escape codes provokes glitches in a Log widget #3506

Closed
1 task done
superlevure opened this issue Oct 11, 2023 · 1 comment
Closed
1 task done

Text with ANSI escape codes provokes glitches in a Log widget #3506

superlevure opened this issue Oct 11, 2023 · 1 comment

Comments

@superlevure
Copy link

When writing text that contains ANSI escape codes to a Log widget, the border glitches:

image

I've posted a minimal reproducible example here: https://github.com/superlevure/textual-scroll-bug

For context, the data I'm trying to write to a Log widget comes from a Gitlab CI job trace, as produced by this API: https://docs.gitlab.com/ee/api/jobs.html#get-a-log-file

Textual Diagnostics

Versions

Name Value
Textual 0.39.0
Rich 13.6.0

Python

Name Value
Version 3.11.5
Implementation CPython
Compiler GCC 11.4.0
Executable .env/bin/python3.11

Operating System

Name Value
System Linux
Release 5.4.0-1106-gcp
Version #115~18.04.1-Ubuntu SMP Mon May 22 20:46:39 UTC 2023

Terminal

Name Value
Terminal Application vscode (1.83.0)
TERM xterm-256color
COLORTERM truecolor
FORCE_COLOR Not set
NO_COLOR Not set

Rich Console options

Name Value
size width=187, height=33
legacy_windows False
min_width 1
max_width 187
is_terminal True
encoding utf-8
max_height 33
justify None
overflow None
no_wrap False
highlight None
markup None
height None
@github-actions
Copy link

We found the following entries in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@Textualize Textualize locked and limited conversation to collaborators Oct 11, 2023
@willmcgugan willmcgugan converted this issue into discussion #3507 Oct 11, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant