Get terminal status for termcap capabilities
1
vote
2
answers
376
views
How can one retrieve status of terminal settings like
smam
and rmam
?
Reason is that I set rmam
by:
tput rmam
in script, then proceed to set smam
on exit:
tput smam
But if terminal has rmam
set when script starts, I do not want to set smam
on exit.
---
How can this be done?
Asked by ibuprofen
(3040 rep)
Jan 26, 2021, 10:51 AM
Last activity: Jan 28, 2021, 11:27 AM
Last activity: Jan 28, 2021, 11:27 AM