Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Input/Output through the Keyboard

by rinceWind (Monsignor)
on Nov 14, 2002 at 10:46 UTC ( #212814=note: print w/replies, xml ) Need Help??

in reply to Input/Output through the Keyboard

Others have correctly answered this question for normal, command line Perl scripts, referring to STDIN. However, for completeness, there is another case: that of GUI programming. How does one get access to the keyboard from a Tk application?

Over and above text fields, where the default bindings allow cursor based editing, you may find that you need to add bindings in order to trap certain keystrokes and key combinations.

In the case of a GUI application, STDOUT (and STDERR) go to the command window, if the application has been invoked with one. Just for the record, for CGI applications, STDIN is used to read POST data, STDOUT is used to send HTTP data (normally HTML, but could be graphical), and STDERR writes to the webserver's error log file.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2022-12-08 23:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found