Buildroot: Ncurses includes tput?

539 Views Asked by At

I have a startup sh script that plays an "animation" of text, using tput to manipulate / delete lines on the terminal. Unfortunately it does not seem that tput is present on my system, I have included the ncurses library, which apparently also contains tput.

I am looking for either a way to get tput OR an alternative.

Thanks

2

There are 2 best solutions below

1
On

You forgot to enable BR2_PACKAGE_NCURSES_TARGET_PROGS.

0
On

You have to check ncurses programs when setup buildroot config

  1. make menuconfig
  2. Target packages -> Libraries -> Text and terminal handling -> ncurses -> ncurses programs
  3. save
  4. make clean (or rm -rf output/build/ncurses-6.1/)
  5. make

After compile finish, you can find tput at output/target/usr/bin/tput

my buildroot version: buildroot-2021.02.3