🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #14198

Re: Damn Ctrl-P

#14198
From: Chris Woodward
Date: Tue, 04 Jun 1991 20:34
32 lines
1599 bytes
przemek@rrdstrad.nist.gov (Przemek Klosowski) writes:

>Hello!

>I apologize if this is very easy---but how does one prevent Ctrl-P key from
>always trying to send something to the printer? I use C-P often under Emacs
>editor, and I sometimes instinctively type it in MSDOS when I want
>to correct a typo I did. Since some of my computers do not have a printer
>attached, it hangs the poor thing. I looked for a program to disable it on
>the usual archives, to no avail. Any ideas? I see two avenues: 
>	1) disable something in the software
>	2) short some pins in the parallel connector, to fool it into believing
>	   that printer did print the stuff

>I can't believe that there is no simple way to prevent what is equivalent to
>prompt system hangup after one keystroke.
>		przemek

Well, it can be done using the prompt command under dos, if you are using
ansi.sys...

just do a prompt $e[16;0;72p at the command line, then do a prompt $p$g
(or whatever) to restore your prompt and now Ctrl-P is remapped to be
an up arrow!
hope this helps.
-chris

 
-- 
Chris Woodward                            
Internet: woodward@esv.bgsm.wfu.edu  
UUCP: ...!gatech!kd4nc!rbdc!chris        
Technical Details
Message-ID: <1991Jun4.203450.12291@rbdc>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!kd4nc!rbdc!chris
References: <PRZEMEK.91May30155306@rrdstrad.nist.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!kd4nc!rbdc!chris
From: chris@rbdc (Chris Woodward)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Damn Ctrl-P
Message-ID: <1991Jun4.203450.12291@rbdc>
Date: 4 Jun 91 20:34:50 GMT
References: <PRZEMEK.91May30155306@rrdstrad.nist.gov>
Organization: Chateau D'Isaster
Lines: 33