What does the âopostâ stty flag do?

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
The documentation says the following:
[-]opost postprocess output
I don't understand what this means. I have tried to disable this flag to see what it does:
stty -opost -F /dev/pts/0
And I have typed the ls command, and the result had the first line indented:

I still don't get what this flag does!
linux shell terminal stty
add a comment |Â
up vote
1
down vote
favorite
The documentation says the following:
[-]opost postprocess output
I don't understand what this means. I have tried to disable this flag to see what it does:
stty -opost -F /dev/pts/0
And I have typed the ls command, and the result had the first line indented:

I still don't get what this flag does!
linux shell terminal stty
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
The documentation says the following:
[-]opost postprocess output
I don't understand what this means. I have tried to disable this flag to see what it does:
stty -opost -F /dev/pts/0
And I have typed the ls command, and the result had the first line indented:

I still don't get what this flag does!
linux shell terminal stty
The documentation says the following:
[-]opost postprocess output
I don't understand what this means. I have tried to disable this flag to see what it does:
stty -opost -F /dev/pts/0
And I have typed the ls command, and the result had the first line indented:

I still don't get what this flag does!
linux shell terminal stty
edited Nov 6 '17 at 18:50
Kusalananda
105k14208326
105k14208326
asked Nov 6 '17 at 16:53
user259241
61
61
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
stty -opost deactivates post-processing output. For example, normally sending a <LF> (U+00A0) character to the terminal will automatically insert a <CR> (U+000D) character, to make the cursor go to the beginning of the next line. Most importantly, setting -opost deactivates all processing of output, irrespective of any other output options.
See the manual page for stty(1) for details.
So if for example theocrnlis set, and I disable theopostflag, then theocrnlflag will be ignored (also all other similar flags responsible for processing of output will be ignored)?
â user259241
Nov 6 '17 at 17:58
Why not try it out?stty -opost ocrnl; echo -e 'aaanbbb'; stty sane
â AlexP
Nov 6 '17 at 18:11
While this is useful information, it is certainly not a comprehensive answer. E.g. I discovered thatopostcontrols whether or not an LF after a full line of text is suppressed. E.g. for an 80 chars wide terminal, outputting 80 dots followed by an LF will not cause a blank line to appear ifopostis set.
â Arne Vogel
Sep 1 at 19:13
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
stty -opost deactivates post-processing output. For example, normally sending a <LF> (U+00A0) character to the terminal will automatically insert a <CR> (U+000D) character, to make the cursor go to the beginning of the next line. Most importantly, setting -opost deactivates all processing of output, irrespective of any other output options.
See the manual page for stty(1) for details.
So if for example theocrnlis set, and I disable theopostflag, then theocrnlflag will be ignored (also all other similar flags responsible for processing of output will be ignored)?
â user259241
Nov 6 '17 at 17:58
Why not try it out?stty -opost ocrnl; echo -e 'aaanbbb'; stty sane
â AlexP
Nov 6 '17 at 18:11
While this is useful information, it is certainly not a comprehensive answer. E.g. I discovered thatopostcontrols whether or not an LF after a full line of text is suppressed. E.g. for an 80 chars wide terminal, outputting 80 dots followed by an LF will not cause a blank line to appear ifopostis set.
â Arne Vogel
Sep 1 at 19:13
add a comment |Â
up vote
3
down vote
stty -opost deactivates post-processing output. For example, normally sending a <LF> (U+00A0) character to the terminal will automatically insert a <CR> (U+000D) character, to make the cursor go to the beginning of the next line. Most importantly, setting -opost deactivates all processing of output, irrespective of any other output options.
See the manual page for stty(1) for details.
So if for example theocrnlis set, and I disable theopostflag, then theocrnlflag will be ignored (also all other similar flags responsible for processing of output will be ignored)?
â user259241
Nov 6 '17 at 17:58
Why not try it out?stty -opost ocrnl; echo -e 'aaanbbb'; stty sane
â AlexP
Nov 6 '17 at 18:11
While this is useful information, it is certainly not a comprehensive answer. E.g. I discovered thatopostcontrols whether or not an LF after a full line of text is suppressed. E.g. for an 80 chars wide terminal, outputting 80 dots followed by an LF will not cause a blank line to appear ifopostis set.
â Arne Vogel
Sep 1 at 19:13
add a comment |Â
up vote
3
down vote
up vote
3
down vote
stty -opost deactivates post-processing output. For example, normally sending a <LF> (U+00A0) character to the terminal will automatically insert a <CR> (U+000D) character, to make the cursor go to the beginning of the next line. Most importantly, setting -opost deactivates all processing of output, irrespective of any other output options.
See the manual page for stty(1) for details.
stty -opost deactivates post-processing output. For example, normally sending a <LF> (U+00A0) character to the terminal will automatically insert a <CR> (U+000D) character, to make the cursor go to the beginning of the next line. Most importantly, setting -opost deactivates all processing of output, irrespective of any other output options.
See the manual page for stty(1) for details.
edited Nov 6 '17 at 18:46
Kusalananda
105k14208326
105k14208326
answered Nov 6 '17 at 17:09
AlexP
6,656924
6,656924
So if for example theocrnlis set, and I disable theopostflag, then theocrnlflag will be ignored (also all other similar flags responsible for processing of output will be ignored)?
â user259241
Nov 6 '17 at 17:58
Why not try it out?stty -opost ocrnl; echo -e 'aaanbbb'; stty sane
â AlexP
Nov 6 '17 at 18:11
While this is useful information, it is certainly not a comprehensive answer. E.g. I discovered thatopostcontrols whether or not an LF after a full line of text is suppressed. E.g. for an 80 chars wide terminal, outputting 80 dots followed by an LF will not cause a blank line to appear ifopostis set.
â Arne Vogel
Sep 1 at 19:13
add a comment |Â
So if for example theocrnlis set, and I disable theopostflag, then theocrnlflag will be ignored (also all other similar flags responsible for processing of output will be ignored)?
â user259241
Nov 6 '17 at 17:58
Why not try it out?stty -opost ocrnl; echo -e 'aaanbbb'; stty sane
â AlexP
Nov 6 '17 at 18:11
While this is useful information, it is certainly not a comprehensive answer. E.g. I discovered thatopostcontrols whether or not an LF after a full line of text is suppressed. E.g. for an 80 chars wide terminal, outputting 80 dots followed by an LF will not cause a blank line to appear ifopostis set.
â Arne Vogel
Sep 1 at 19:13
So if for example the
ocrnl is set, and I disable the opost flag, then the ocrnl flag will be ignored (also all other similar flags responsible for processing of output will be ignored)?â user259241
Nov 6 '17 at 17:58
So if for example the
ocrnl is set, and I disable the opost flag, then the ocrnl flag will be ignored (also all other similar flags responsible for processing of output will be ignored)?â user259241
Nov 6 '17 at 17:58
Why not try it out?
stty -opost ocrnl; echo -e 'aaanbbb'; stty saneâ AlexP
Nov 6 '17 at 18:11
Why not try it out?
stty -opost ocrnl; echo -e 'aaanbbb'; stty saneâ AlexP
Nov 6 '17 at 18:11
While this is useful information, it is certainly not a comprehensive answer. E.g. I discovered that
opost controls whether or not an LF after a full line of text is suppressed. E.g. for an 80 chars wide terminal, outputting 80 dots followed by an LF will not cause a blank line to appear if opost is set.â Arne Vogel
Sep 1 at 19:13
While this is useful information, it is certainly not a comprehensive answer. E.g. I discovered that
opost controls whether or not an LF after a full line of text is suppressed. E.g. for an 80 chars wide terminal, outputting 80 dots followed by an LF will not cause a blank line to appear if opost is set.â Arne Vogel
Sep 1 at 19:13
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402874%2fwhat-does-the-opost-stty-flag-do%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password