Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Prompting for input inside IDE run (was Reading from STDIN)

by Corion (Patriarch)
on Mar 27, 2023 at 06:19 UTC ( [id://11151241]=note: print w/replies, xml ) Need Help??


in reply to Prompting for input inside IDE run (was Reading from STDIN)

How does Emacs launch your program? I was under the impression that it launches programs under debug by redirecting its STDIN and STDOUT to a "console" buffer managed by Emacs and that interactive input/output simply work?

Maybe if you can tell us how Emacs does this we can find out how to hook up interactive input/output to the Perl program...

  • Comment on Re: Prompting for input inside IDE run (was Reading from STDIN)

Replies are listed 'Best First'.
Re^2: Prompting for input inside IDE run (was Reading from STDIN)
by LanX (Saint) on Mar 27, 2023 at 12:58 UTC
    > I was under the impression that it launches programs under debug by redirecting its STDIN and STDOUT to a "console" buffer

    You are describing the debugger API via M-x perldb.

    It runs the debugger in a terminal emulation in an extra buffer and is in parallel scrolling the current point in the original source buffer.

    And it kind of works after typing c for continue (debugger command) I can input stuff. It actually looks exactly like when run with perl -d

    Tho it doesn't seem to have auto linking of Perl's error messages.

    I will update my OP later with an SSCCE explaining the output.

    > I was under the impression that it launches programs under debug by redirecting its STDIN and STDOUT to a "console" buffer

    Well I'm using mode-compile but emacs is more TIMTOWTDI than Perl. I think mode-compile was originally designed for make that's why interactive input isn't that important.

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11151241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-25 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found