Hi

does someone have a clever idea how to interactivly run the currently edited program within a terminal emulation without loosing potential error output?

Especially Term::ReadLine is unusable within compilation-mode, which opens a new pane showing the interaction with the program.

Compilation mode has no terminal emulation (AFAIK), which means potential errors and output is displayed but input doesn't get to the process.

3 ideas come to mind:

  1. augment compilation mode to incorparate term-mode?
  2. Term::ReadLine allows defining explicit IN and OUT handles which may be redirected to a separate xterm window?
  3. like 2., but redirect output to a new splitted pane within emacs
Curious for input, especially for insights if and how other IDEs solve this.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

glossary:
I use "pane" for a sub-window within the main window, i.e. what emacs calls a "window" and mozilla calls a "frame"

update

for what it's worth, it's possible to run a term script with "M-x term path-to-script" within emacs. This would not only need another keybinding but any special handling of error messages is lost than.


In reply to Testing terminal programs within emacs (or other IDEs) by LanX

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.