Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
21 views

How can I get red letters with tput when I seem to get yellow?

I was using #!/bin/sh if [ $TERM=screen ] then pass_color=' \033[01;32m' fail_color=' \033[01;31m' fi echo "$pass_color green $fail_color red" as in but I was advised to use tput instead, so ...
1
vote
0answers
45 views

tput command + how to locate dialog window on the top of the screen

Is it possible to use the tput command in order to place the dialog window on the top of the screen ? For example The following dialog command display the log is running by tail command dialog ...
4
votes
2answers
230 views

What is the difference between tput's 'setf' and 'setaf'?

The command tput has two different options for setting color, setf and setaf, yet both of them seem to work just fine on my computer: $ tput setf 2 && echo 'Hello world!' $ tput setaf 2 ...
3
votes
1answer
90 views

Cursor movement related tput commands under zsh: can the 'clear' behavior be configured?

Using the zsh shell, I've noticed a difference in the behavior of the tput command compared to bash. For instance With zsh, if you have many things output to a terminal emulator window and you're at ...
2
votes
1answer
801 views

bash script , echo output in box

I have created this Function , which generate below output on terminal , but this function seems complex, So I posted here for any improvement or for same alternate solution. #!/bin/bash function ...
1
vote
1answer
293 views

screen buffer and dialog

I was trying to use different screen buffer for my script using tput. Below is small script that I am running. tput smcup clear dialog --yesno "Do you want to continue?" 0 0 rc=$? clear tput rmcup if ...
3
votes
1answer
125 views

How to use the Meta/Alt Key with tput?

I want to redefine keybindings for the commandline of a lisp dialect. The commandline is actually modeled after Vi and implemented with tput/terminfo. I want an alternative version with Emacs ...
3
votes
2answers
443 views

Print console colors

Wrote a bash function to display the console colors. But, it seems some of the colors are not possible to show that way! (?) Also, note the strange "bright black"! (Note: The below screendump is of ...