Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!bingvaxu!consp04 From: consp04@bingvaxu.cc.binghamton.edu (Daniel F. Boyd) Newsgroups: comp.emacs Subject: Setting the Mark in emacses Keywords: set mark ctl-space Message-ID: <2308@bingvaxu.cc.binghamton.edu> Date: 20 Jul 89 16:07:39 GMT Organization: SUNY Binghamton, NY Lines: 34 When using GNU Emacs on our VAX 8530, with a VT220 terminal, I can quickly and easily set the mark with control-spacebar. The terminal likes to send a ^@ (which I think is actually ASCII 0; a NULL) when you hit control-space. I have yet to see any Emacs for the PC set the mark with control-spacebar. I know that in order to trap control-space, you have to look at the BIOS shift byte (with which you could tell not only if the control, shift, or alt keys are pressed, but also left or right shift key, left or right control on 101-key keyboards, or whatever. I also have yet to see terminal emulation software that sends a ^@ when I hit control-space. Whenever I hit C-SPC I get a space on the screen. MS-Kermit seems to be able to read the BIOS shift byte; you take the scancode of the key and add 512 for shift, 1024 for Control, and 2048 for Alt to get the key number for a SET KEY statement in a kermit script. It works fine for Alt-this and Control-that, but it is unable to trap shift-space, control-space, and alt-space. Am I crazy, or is there a conspiracy? I want control-space! Does Freemacs use control-space to set the mark, or is that a lost hope? -- Daniel F. Boyd | "If it wasn't for disappointments, Student Consultant, SUNY Binghamton | I wouldn't have any appointments." consp04@bingvaxu.cc.binghamton.edu | -- They Might Be Giants