Rampartisan
Rampartisan

Reputation: 427

Buildroot: Ncurses includes tput?

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

Upvotes: 1

Views: 726

Answers (2)

Chih-Hung Hsieh
Chih-Hung Hsieh

Reputation: 121

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

Upvotes: 0

Thomas Petazzoni
Thomas Petazzoni

Reputation: 5956

You forgot to enable BR2_PACKAGE_NCURSES_TARGET_PROGS.

Upvotes: 2

Related Questions