| Summary: | Bash Shell Programming using Buildroot | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | umamahesh <umamahesh.y> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | buildroot, vapier |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
umamahesh
2018-06-30 17:27:15 UTC
Hi umamahesh,
If this is still relevant, here is the solution.
"tput" is part of the ncurses package. To enable it, go to:
make menuconfig
Target packages
Libraries
Text and terminal handling
Enable "ncurses", then enable the "ncurses programs" entry that has just appeared.
Help for the "ncurses programs" entry:
BR2_PACKAGE_NCURSES_TARGET_PROGS:
Include ncurses programs in target (clear, reset, tput, ...)
Best regards,
Tibor Stolz
Another solution is to program directly with escape sequences: echo -e '\E[32;1;7m LINUX PERFORMANCE TEST \E[0m' echo -ne '\E[32;1;7m' echo -n "LINUX PERFORMANCE TEST" echo -e '\E[0m' This will work on the Linux console and terminal emulators like xterm. See "help echo" and "man console_codes"-->"ECMA-48 Set Graphics Rendition" on your host Linux system. Best regards, Tibor Stolz |