Since this can be a problem with other applications too, why don't you fix it outside of Perl? It's definitely not a Perl problem after all. Naturally Perl can fix it, but being lazy programmers we want to fix it only once, and for all, don't we? :-)

Fixing the backspace problem is simple:

This is all you need, just add the command to your .tcsh or .bashrc or equivalent, so that it will be permanent and it will help other programs that do simple I/O too.

Note: some versions of stty want you to type a ^ followed by the caracter, others want you to type the exact character. In the latter case, most modern shells (and many editors) allows you to press ^V (that is, a real CTRL+V) followed by the real ^? or ^H. Again, because of the special meaning of a ? for the shell, you might have to type \? instead.

-- TMTOWTDI


In reply to Re: Re: Re: Backspace & delete by trantor
in thread Backspace & delete by billysara

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.