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
There is no such thing as alignment in the terminal.
A similar feature can be implemented in the terminal client, but among the popular clients, I don’t remember it in any of them, and it has never been in demand. Left alignment is automatic, because there is the beginning of the line, and the line feed therefore starts the next line always on the left.
Of course, you can write a function and pass the output of each command through it in order to align everything to the right through some printf thread.
Output one character to the right, for example, like this:
read WindowHeight WindowWidth<<<$(stty size)
printf "%$WindowWidth" "A"
bash|(while read;do printf "%80s\n" $REPLY;done)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question