1

我有一个启动 sh 脚本,它播放文本的“动画”,使用 tput 来操作/删除终端上的行。不幸的是,我的系统上似乎没有 tput,我已经包含了 ncurses 库,它显然也包含 tput。

我正在寻找获得 tput 的方法或替代方法。

谢谢

4

2 回答 2

2

您忘记启用BR2_PACKAGE_NCURSES_TARGET_PROGS.

于 2017-12-16T10:00:37.097 回答
0

设置 buildroot 配置时必须检查ncurses 程序

  1. 制作菜单配置
  2. 目标包 -> 库 -> 文本和终端处理 -> ncurses -> ncurses 程序
  3. 节省
  4. make clean (或 rm -rf output/build/ncurses-6.1/)
  5. 制作

编译完成后,可以在 output/target/usr/bin/tput 找到tput

我的 buildroot 版本:buildroot-2021.02.3

于 2021-08-16T14:08:47.553 回答