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 community
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 ...?
tput smam | od -t a 0000000 esc [ ? 7 h tput rmam | od -t a 0000000 esc [ ? 7 l