What does the “opost” stty flag do?

The name of the pictureThe name of the pictureThe name of the pictureClash 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:



enter image description here



I still don't get what this flag does!







share|improve this question


























    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:



    enter image description here



    I still don't get what this flag does!







    share|improve this question
























      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:



      enter image description here



      I still don't get what this flag does!







      share|improve this question














      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:



      enter image description here



      I still don't get what this flag does!









      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 6 '17 at 18:50









      Kusalananda

      105k14208326




      105k14208326










      asked Nov 6 '17 at 16:53









      user259241

      61




      61




















          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.






          share|improve this answer






















          • 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











          • 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











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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.






          share|improve this answer






















          • 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











          • 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















          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.






          share|improve this answer






















          • 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











          • 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













          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.






          share|improve this answer














          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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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 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











          • 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

















          • 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











          • 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
















          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


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)