🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3179

ctrl-printscreen

#3179
From: Paul Selkirk
Date: Tue, 27 Nov 1990 18:50
20 lines
1627 bytes
Ok folks, does anyone know what really happens when you hit ctrl-printscreen?
I know that stdout is echoed to stdprn, but how does this come about?  Stdprn
(file handle 5) is opened for write, and gets a copy of every character
written to stdout (file handle 1).  At what point does this duplication occur;
what control bits are changed?  In short, how can you tell at a glance
(without peeking at the keyboard buffer) that ctrl-prtsc has been pressed at
some point in the indeterminate past?  I understand the theory of file
handles, but none of my references mentions how file handles are mapped to
devices or disk files, where you might find information on open files, or in
general how DOS uses file handles internally.

In a similar vein, why are stdout and stdprn the only files that have this
output-echoing capabililty; why can't I echo stdout to a disk file (without a
printer redirector)?  4DOS has a 'Y' command to do this; are they just
kludging around a DOS limitation, or am I missing something?

---------------------------------------------------------------------------
Paul Selkirk                                                   paul@ftp.com 
FTP Software                           26 Princess St., Wakefield, MA 01880
Technical Details
Message-ID: <1235@vaxeline.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!vaxeline!paul

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!vaxeline!paul
From: paul@vaxeline.COM (Paul Selkirk)
Newsgroups: comp.os.msdos.programmer
Subject: ctrl-printscreen
Message-ID: <1235@vaxeline.COM>
Date: 27 Nov 90 18:50:48 GMT
Organization: FTP Software Inc., Wakefield, MA
Lines: 20