Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: Testing for a background process waiting for input (use a thread)

by Eliya (Vicar)
on Apr 15, 2012 at 04:22 UTC ( #965124=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Testing for a background process waiting for input (use a thread)
in thread Testing for a background process waiting for input

But I guess what you are saying is that under *nix, the standard CRT input routines don't provided line editing facilities, unless the program in question uses a readline(3) library or similar.

Essentially yes.   stdin is just a file handle like any other, which by itself is unfiltered / binary-clean. Any other behavior you may observe (typically with interactive sessions) is the result of other layers that sit in between stdin and the user/keyboard, most prominently a tty and (optionally) some readline library.

When stdin is connected to a regular pipe for non-interactive communication, those layers are not involved, unless things have explicitly been programmed that way (as with tools like Expect or similar) — this of course can be done, but usually isn't.


Comment on Re^5: Testing for a background process waiting for input (use a thread)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-07-07 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls