notcurses_core(3)
π notcurses_core(3) β minimal Notcurses linkage
okay so this is the manual page notcurses_core, section 3, and itβs all about linking the tiny-core version without dragging the whole multimedia party into your binary. bestie, itβs giving minimal.
πΈ NAME πΈ
notcurses_core β minimal Notcurses linkage
β¨ SYNOPSIS β¨
#include <notcurses/notcurses.h>
-lnotcurses-core
struct notcurses* notcurses_core_init(const notcurses_options* opts,
FILE* fp);
struct ncdirect* ncdirect_core_init(const char* termtype, FILE* fp,
uint64_t flags);
π¦ DESCRIPTION π¦
If your binary has no use for the multimedia capabilities of Notcurses, consider linking directly to libnotcurses-core rather than libnotcurses. This ought greatly reduce the dependency burden of Notcurses. slay for smaller dependency trees, honestly.
If using libnotcurses-core, notcurses_core_init must be used in the place of notcurses_init, and ncdirect_core_init must be used in the place of ncdirect_init. Failure to do will usually result in an error during linking. At worst, youβll end up with the unnecessary dependencies in your binary after all. π not the linker jumpscare.
π BUGS π
This all ought be handled by the toolchain. Itβs stupid for users to have to think about this. periodt.
π§ NOTES π§
If Notcurses was built with USE_MULTIMEDIA=none, libnotcurses will have no multimedia dependencies, and thus this wonβt save anything. Itβs still best to explicitly use libnotcurses-core when appropriate, to avoid picking up the dependency chain on systems where it is being used. iykyk β be intentional with your linkage.
π RETURN VALUES π
The same as notcurses_init and ncdirect_init.
π SEE ALSO π
π AUTHORS π
nick black nickblack@linux.com
source/version check: this page is from Notcurses v3.0.17, and the footerβs date slot is literally empty β no date listed, bestie. iconic minimalism fr fr. bye ππ«Άβ¨
π¦ where this page comes from
- alpine 3.24: notcurses-doc 3.0.17-r0 Β· Apache-2.0
- ubuntu resolute: libnotcurses-core-dev 3.0.17+dfsg-3 Β· Apache-2.0
- ubuntu stonking: libnotcurses-core-dev 3.0.17+dfsg-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms