Timeline for Is multi-line alignment possible with tput?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 17, 2017 at 15:24 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | deleted 1 character in body |
| Nov 17, 2017 at 15:23 | vote | accept | Radvansky | ||
| Nov 17, 2017 at 15:10 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | added 676 characters in body |
| Nov 17, 2017 at 14:52 | comment | added | Stéphane Chazelas | @Radvansky, as seen in the comment, it restores the default tab stops. You may also want to add that tabs -8 to a SIGINT/TERM trap to make sure the tabs are restored if that script is interrupted. It's one way in that it's less "clean": it affects the behaviour of the terminal. That can also cause problems if the script is suspended for instance. It would not work after stty -tabs (but people would only do that on terminals that don't support tabs in the first place anyway). | |
| Nov 17, 2017 at 14:44 | comment | added | Radvansky | Both @thor answer and yours produce the result I was after. I was already commenting to ask how to implement the output of the ping command with your method when you edited the answer. As it is, it does seem a cleaner approach. Do you agree? By the way, what exactly does the tabs -8 do? | |
| Nov 17, 2017 at 14:39 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | added 45 characters in body |
| Nov 17, 2017 at 14:22 | history | answered | Stéphane Chazelas | CC BY-SA 3.0 |