Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
To position the cursor and display the results of executing a certain command in a certain familiarity, you can use the value of the PS1 variable.
Here is documentation with examples:
https://wiki.archlinux.org/index.php/Bash/Prompt_c...
Here is one example from there, the time will be displayed in the top right corner:
PS1=">\[\033[s\]\[\033[1;\$((COLUMNS-5))f\]\$(date +%H:%M)\[\033[u\]"
watch -n <период обновления> <скрипт или команда которая выводит значение>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question