Micah Cowan wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Miernik wrote: > >> How can I bind Super- (mod4) or Meta- (mod3) to some function in GNU >> screen? >> > > I'm pretty sure you can't. I don't think any terminals actually send > anything for those modifiers. Shift, Control, and Alt all work by > modifying the base ASCII code value they send (for regular keys); My understanding is that keyboards do send codes for those. For example, my KVM works by using a quick doubletap on "Control"; and some Windows systems will change mode if you lean on the Control key or Shift key too long, and a quintuple tap on the Control key activates an assistive mode.
The keyboard sends a keycode for all keys (including control, meta, alt, super, et al) and the cpu converts the keycodes to characters. I couldn't find anything on key codes in the screen manual (or source code), but I'd suggest looking at the termcap (is there a termcap entry for Meta or Super?) and using that. Look at the command "bindkey" as well as section 11.2 in the user manual (Input Translation). Screen uses the termcap/terminfo entries in order to be able to work on whatever physical screen it attached to at the moment (as it changes, of course...) -- UNIX System Administrator Linux+, SCSA, RHCE, LPIC-1 HP-UX, Linux, Solaris, FreeBSD Books: "Advanced System Administration" and "GNU Screen: A Comprehensive Introduction" http://www.lulu.com/ssrat
begin:vcard fn:David Douthitt n:Douthitt;David adr;dom:;;9118 West Grove School Road;Beloit;WI;53511 email;internet:[EMAIL PROTECTED] tel;fax:608-879-3768 tel;home:608-879-3677 tel;cell:608-750-0182 note;quoted-printable:LPI Level 1, RHCE, Linux+ certified=0D=0A= =0D=0A= Eight or more years of experience in:=0D=0A= HP-UX =E2=80=A2 Red Hat Linux =E2=80=A2 FreeBSD =E2=80=A2 Postfix =E2=80=A2= Sendmail =E2=80=A2 Perl =E2=80=A2 Korn shell (ksh) =E2=80=A2 TCP/IP =E2=80= =A2 Documentation =E2=80=A2 Apache =E2=80=A2 SSL =E2=80=A2 Ruby =E2=80=A2= UnixWare=0D=0A= x-mozilla-html:FALSE version:2.1 end:vcard
_______________________________________________ screen-users mailing list [email protected] http://lists.gnu.org/mailman/listinfo/screen-users
