tput rmam
turns off line wrapping on the terminal.app
I always forget this command, because I never figured out what rmam
stands for. Anybody knows?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communitytput rmam
turns off line wrapping on the terminal.app
I always forget this command, because I never figured out what rmam
stands for. Anybody knows?
From section 5 of the terminfo manual page (terminfo(5)
):
rmam turn of automatic margins
You could think of it as: ReMove Automatic Margins.
man 5 terminfo
> Enter /
(search) and smam
(so /smam
) which will reveal: enter_am_mode smam SA turn on automatic margins
Jul 26, 2017 at 15:24
r
.
Looking at the terminfo standard, most capabilities starting with sm..
are documented as either "Start Mode ..." or "Enter Mode ..." or "Set ..." so smam
means either Start Mode Automatic Margins or Set Mode Automatic Margins
rm..
is indeed a bit more mysterious. In the same place most capabilities starting with rm..
are documented as "Exit Mode ..." so maybe rm...
stands for Reset Mode ...
or Return from Mode ...
?
Also interesting:
tput smam | od -t a
0000000 esc [ ? 7 h
tput rmam | od -t a
0000000 esc [ ? 7 l
rm
command that removed files
Feb 6, 2019 at 1:48
sm
. The answer might be in some old terminfo source code.