Bug 260888 - devel/py-blessed 1.19.0 constructs wrong ANSI-Escape sequences for colors
Summary: devel/py-blessed 1.19.0 constructs wrong ANSI-Escape sequences for colors
Status: Closed Not Enough Information
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-02 19:19 UTC by p5B2EA84B3
Modified: 2022-12-06 09:10 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description p5B2EA84B3 2022-01-02 19:19:31 UTC
IPython 7.29.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import blessed

In [2]: term = blessed.Terminal()

In [3]: term.yellow
Out[3]: '\x1b[33m'

In [4]: term.bright_yellow
Out[4]: '\x1b[311m'

this done manually works:
n [5]: ansi_bright_yellow = '\x1b[1;93;48m'

In [6]: print(ansi_bright_yellow + 'TEST')
TEST
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2022-01-02 19:23:14 UTC
Hello p5B2E9A8F@t-online.de,

Thanks for the report.

This appears to be an upstream issue and should be reported upstream https://github.com/jquast/blessed


Yuri
Comment 2 p5B2EA84B3 2022-01-09 01:58:37 UTC
>> and should be reported upstream 

I cannot do it for a reason.
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2022-01-09 03:09:53 UTC
For me the output is different:
> $ ipython3
> Python 3.8.12 (default, Nov  6 2021, 01:10:35) 
> Type 'copyright', 'credits' or 'license' for more information
> IPython 7.29.0 -- An enhanced Interactive Python. Type '?' for help.
> 
> In [1]: import blessed
> 
> In [2]: term = blessed.Terminal()
> 
> In [3]: term.yellow
> Out[3]: '\x1b[38;5;3m'
> 
> In [4]: term.bright_yellow
> Out[4]: '\x1b[38;5;11m'

And colors work.

I am in the XFCE4 terminal.