bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib-tool.py: Display specified modules in bold.


From: Collin Funk
Subject: Re: gnulib-tool.py: Display specified modules in bold.
Date: Fri, 29 Mar 2024 17:22:34 -0700
User-agent: Mozilla Thunderbird

Hi Pádraig,

On 3/29/24 6:34 AM, Pádraig Brady wrote:
> On 29/03/2024 13:12, Collin Funk wrote:
> You could determine that programatically with something like:
> 
> if os.system(r'{ tput bold || tput md; } >/dev/null 2>&1') == 0:
>   # enable bold output

Thanks for the advice.

I tried checking if the Python standard library had something. There
is 'curses.A_BOLD' but I don't know how the 'curses' module will
behave on Windows, for example.

I figured keeping it the same as gnulib-tool.sh was good enough.

[1] https://docs.python.org/3/library/curses.html#curses.A_BOLD

Collin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]