all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: How can I make my caps lock key act like a control key?
Date: Wed, 16 Jul 2008 08:26:39 +0200	[thread overview]
Message-ID: <874p6q2vkw.fsf@hubble.informatimago.com> (raw)
In-Reply-To: mailman.14818.1216178279.18990.help-gnu-emacs@gnu.org

emacs615 <benjaminbondtate@gmail.com> writes:

> Hi,
> I am having trouble mapping my caps lock key to control key in my linux
> shell(NOT X). I want both the control and caps lock keys to act like control
> keys.  I've tried using loadkeys and I'm not getting errors, but I can't get
> it to work.  I've used dumpkeys to get a keymap, edited the map to where
> both the caps lock and control keys have the same key code (58 i think).  I
> then load this map with loadkeys and there are no errors but nothing
> happens.  I tried opening a new shell just in case and still no changes have
> occurred.
> Help on this issue would be appreciated.

It's not the linux shell, it's the linux console virtual terminals.
As you know, you will have to use loadkeys (and not xmodmap).

Make a copy of your prefered map (dumpkeys is ok), and edit it.  My
capslock was near the 'a' key, so I replaced it with Control (keycode
29):

keycode  29 = Control
keycode  30 = a
keycode  31 = s
keycode  32 = d
keycode  33 = f
keycode  34 = g
keycode  35 = h
keycode  36 = j
keycode  37 = k
keycode  38 = l
keycode  39 = semicolon        colon
	alt	keycode  39 = Meta_semicolon

This maps the keys of the keyboard, each having a unique keycode,  on
the left, to the meaning of the key, on the right.


Unix shells are just programs like any other.  They're not terminals.
Keyboards are managed by terminals, be them real or virtual.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

ATTENTION: Despite any other listing of product contents found
herein, the consumer is advised that, in actuality, this product
consists of 99.9999999999% empty space.


  parent reply	other threads:[~2008-07-16  6:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.14818.1216178279.18990.help-gnu-emacs@gnu.org>
2008-07-16  3:40 ` How can I make my caps lock key act like a control key? Chris F.A. Johnson
2008-07-16  6:26 ` Pascal J. Bourguignon [this message]
2008-07-16 14:27   ` emacs615
2008-07-16 15:52     ` Csányi Pál
2008-07-16 16:38       ` emacs615
2008-07-17  9:39         ` Csányi Pál
2008-07-16 21:17     ` Nikolaj Schumacher
2008-07-16  6:53 ken
  -- strict thread matches above, loose matches on Subject: below --
2008-07-15 16:09 emacs615
2008-07-16  6:40 ` Csányi Pál

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874p6q2vkw.fsf@hubble.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.