From owner-freebsd-questions@freebsd.org Tue Dec 5 22:15:10 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDC41E84C7E for ; Tue, 5 Dec 2017 22:15:10 +0000 (UTC) (envelope-from jack@rosenth.al) Received: from po.640k.net (po.640k.net [50.116.4.213]) by mx1.freebsd.org (Postfix) with ESMTP id ABE1575448 for ; Tue, 5 Dec 2017 22:15:10 +0000 (UTC) (envelope-from jack@rosenth.al) Received: from rosenth.al (csm-wl-dhcp-235-10.mines.edu [138.67.235.10]) by po.640k.net (Postfix) with ESMTPSA id 039A15E7DA; Tue, 5 Dec 2017 15:15:03 -0700 (MST) Date: Tue, 5 Dec 2017 15:15:02 -0700 From: Jack Rosenthal To: Polytropon Cc: freebsd-questions@freebsd.org Subject: Re: Implementing multi-layer keyboard in FreeBSD vt (was: syscons), and control keys repeat rate Message-ID: <20171205221502.GA17875@rosenth.al> References: <20171204003039.GA16209@rosenth.al> <20171205010844.93a1164c.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <20171205010844.93a1164c.freebsd@edvax.de> X-PGP-Key: "http://pgp.mit.edu/pks/lookup?op=get&search=0x924EDC10B20E73F7" User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2017 22:15:10 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 05 Dec 2017 at 01:08 +0100, Polytropon wrote: > On Sun, 3 Dec 2017 17:30:39 -0700, Jack Rosenthal wrote: > > I'm trying to implement a multi-layer keyboard layout for the FreeBSD > > console (sort of like the Neo layout, there's more things that change > > the keys than just shift). If you're curious, the keyboard spec is here: > >=20 > > https://github.com/jackrosenthal/threelayout > >=20 > > Here's what I've got so far: > >=20 > > https://github.com/jackrosenthal/threelayout/blob/master/freebsd/3l.kbd >=20 > Interesting effort. However, I think traditional syscons (sc) will > be abolished soon and fully replaced by NewCons (vt) due to the fact > that modern X doesn't work until you switch to vt. Maybe you can > also investigate how vt does things, and find a solution there? Uh oh... I had meant vt (had read the manual for syscons and simply assumed that was what I was using)... noob issues ;) > > 2. Any way to make the Ctrl key send Ctrl+Shift? I was thinking that I > > could make a function key for that, but cannot find any way to do > > that from the manual (kbdcontrol). >=20 > This is something to be implemented in the keyboard driver directly, > i. e., atkbd or ukbd - and re-check with the lower-level sc (or vt?) > interface to those drivers, usually there are ioctl()s doing it. I had a feeling this would be the answer... maybe some week when I have a bit more time I'll go down this rabbit hole. --=20 Jack Rosenthal No keyboard. Press F1 to continue. --envbJBWh7q8WU6mo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEYa4zBojHi2FaOX2Hkk7cELIOc/cFAlonGmYACgkQkk7cELIO c/dKJg//UvWGpbsTIBjHg+C8YWFz/waetKBwrF498DyHGmMC2Z3O7WQVj9XtbJHf KMC7ZGD6mONu+x17f3MRsiURlFePy+8YXOrbxYe39ZCel/EEv3svPLBgEREkjr9a x36+JESAW8gAWb3pCuKsb6KRHgf6aq8fD8c5WgTcJ8kZ7oGDlZIC2xD9eZL+bwxd u2erJ0F+BSGX9N2a8HqEisBcM/lfq+Qxwe48upA6pOIyM/NAEl13TP9QX1vE/McO tiDNAYKS1v0kJ/lM6dMIDnil9AnDJCcf0Wp7cz/TjGpuVcU/0JQ6dcq/YSXh2UNP WNVtNkfljG73+h6UCkmbSm6JpGp8v8qZZ+Neowf+A62gWnz5A1f4rHoUZ5GIMLvS K5uXM36qQbt8ykAXTHLsoz5mYOGlGvypTrfgdoKAWk9mHrhxo838pdvuRTwomZOY 05tbUTNuWbTWrzKaor5+1eGXTFVd5vCgefjDAOT9VyT27hOWvAV9e1h5uYWzIU8Y rS7to4yqBV37VBh/4XVlpMekUxiKAwlGGZqf2fRB5CeGO2Fx9wMajjxoNyDrnt+w tIDY0a3wnjW6E2bta7PXvjfy5CieR1i+tRof7yZnunsNVaKBR+AaJjnx+A0RZG04 ElqAXiuBd24AaX+zuq9O3uun+OWwzt0C/scY48CwsIM8AdQWwJg= =YCsH -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--