It is hard to offer much in the way of concrete advice without a working example that shows the problem. Please see How do I post a question effectively? and edit your post accordingly.

Until such time, all I can do is take a guess (although a somewhat educated one) that perhaps, somewhere along the line, your process (or one of its threads) managed to send a Linux terminal escape code to change the terminal mode, as for example do some curses applications.

One way you can get down to the raw bytes is through the use of the common script(1) utility. Run your program under that, and then look at the typescript file with a hex editor to spot any unwanted control codes.

Please do consider coming up with a minimal example that illustrates your problem, and consult the above links for possible diagnostic help.


In reply to Re: Carriage return needed after process finishes! by rjt
in thread Carriage return needed after process finishes! by mdkempfert

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.