Path: 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: Organization: Chateau D'Isaster Lines: 33 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