przemek@rrdstrad.nist.gov (Przemek Klosowski) (05/31/91)
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 -- przemek klosowski (przemek@ndcvx.cc.nd.edu) Physics Department University of Notre Dame IN 46556
feist@cs.rochester.edu (Steven E. Feist) (05/31/91)
If you use some version of ANSI.SYS, you can easily re-define ^P to be something useful (I have it translated to F3, to recall the previous line). I don't remember the magic invocation exactly, but you are hving trouble figuring it out, I'll look it up. -- Steven -- Steven Feist feist@cs.rochester.edu ...!rochester!feist
bruce@hpcvra.cv.hp.com. (Bruce Stephens) (05/31/91)
If you are running ANSI.SYS (or compatible) as a keyboard driver, you can send an escape sequence to the keyboard to redefine the CTRL-P key to be something else, possibly even something useful if you are running a history command stack. Try sending "\033[16;0;72p" to the screen to map CTRL-P to the uparrow key. -- Bruce Stephens bruce@hp-pcd.cv.hp.com