gansm / finalcut

A text-based widget toolkit
https://github.com/gansm/finalcut/wiki/First-steps#first-steps-with-the-final-cut-widget-toolkit
GNU Lesser General Public License v3.0
981 stars 52 forks source link

does it need ncurses?? #138

Open walkthetalk opened 4 months ago

walkthetalk commented 4 months ago

Describe the bug

in README, it said without external dependency of ncurses, but in FAQ, it said need libncurses, so which one is right?

gansm commented 4 months ago

It seems a bit confusing. FINAL CUT only needs the termcap library to determine the device-independent terminal capabilities.

#include <term.h> // termcap

The termcap library is available as a standalone library (libtermcap) or bundled with ncurses (libtinfo).

FINAL CUT does not call any ncurses functions with libtinfo. It has its own cursor optimization and window management. Therefore, libfinal is only dynamically linked with libtinfo and not with libncurses or libncursesw.  

Learn more about the termcap library: