[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Portable way to handle ncurses extensions?
From: |
Thomas Dickey |
Subject: |
Re: Portable way to handle ncurses extensions? |
Date: |
Mon, 27 Jan 2020 20:35:43 -0500 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Mon, Jan 27, 2020 at 04:09:18PM -0600, Bryan Christ wrote:
> Is there a way to gracefully handle the use of extensions? Basically, if
> init_extended_color() exists I would like to use it over init_color() when
> possible. I thought the NCURSES_EXT_FUNC definition would help me with
> that, but it seems it's always defined so linking fails when the actual
> function doesn't exist. Before I go down the time suck path of using
> dlopen() and friends to run-time map... is there a better way of doing this?
probably not (dynamic binding is probably what you want)
--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature