From owner-svn-src-all@FreeBSD.ORG Tue Dec 10 13:31:06 2013 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85E16151; Tue, 10 Dec 2013 13:31:06 +0000 (UTC) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 3D3891C7C; Tue, 10 Dec 2013 13:31:05 +0000 (UTC) Received: from terran (unknown [192.168.99.1]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id C9E51C4927; Tue, 10 Dec 2013 15:31:04 +0200 (EET) Date: Tue, 10 Dec 2013 15:31:44 +0200 From: Aleksandr Rybalko To: Andreas Tobler Subject: Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken Message-Id: <20131210153144.c46b74fa28253f3456aa2821@ddteam.net> In-Reply-To: <52A4E865.6080602@FreeBSD.org> References: <201312052238.rB5McsVN020719@svn.freebsd.org> <52A3A8DE.9090907@FreeBSD.org> <2a683b40-1465-44f9-a9aa-d079f660529d@email.android.com> <52A4E865.6080602@FreeBSD.org> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: svn-src-head@FreeBSD.org, Aleksandr Rybalko , src-committers@FreeBSD.org, svn-src-all@FreeBSD.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 13:31:06 -0000 On Sun, 08 Dec 2013 22:45:09 +0100 Andreas Tobler wrote: > Hi Aleksandr, > > On 08.12.13 00:59, Aleksandr Rybalko wrote: > > Andreas Tobler написав(ла): > >> On 05.12.13 23:38, Aleksandr Rybalko wrote: > >>> Author: ray > >>> Date: Thu Dec 5 22:38:53 2013 > >>> New Revision: 259016 > >>> URL: http://svnweb.freebsd.org/changeset/base/259016 > >>> > >>> Log: > >>> Merge VT(9) project (a.k.a. newcons). > >>> > >>> Reviewed by: nwhitehorn > >>> MFC_to_10_after: re approval > >>> > >>> Sponsored by: The FreeBSD Foundation > >> > >> Great! Thanks, gives a new look & feel on the console :) > >> Have it running on amd64/i386 and PowerMac(32/64-bit). > >> The only thing I need to figure is the mapping of the AltGr or in Mac > >> world, the alt key mapping. Iow, the third level mapping of the keys. > >> e.g. the @ here is on altgr-2... > >> > >> Again, thanks! > >> Andreas > > > > > I'm glad to fix that, but I've to understand how it is should work :-) > > Hehe :) > > So do I. I was playing a bit while comparing to syscons.c > > And with the below diff I'm able to get what I want. At least when I > press RALT (Altgr) I get the third symbol printed on my keyboard. > I have a couple of Thinkpads here where I play with. (The PowerMac's are > currently to loud) > > For example, on the '2' I have the '"' as the second symbol and the '@' > as third symbol. Yeah, these are european keyboards.... > > Now I do not prepend the 0x1b and then my RALT behaves as used to, at > least for me. > > I do not know the fine details but LALT and RALT are different. > > What do you think, others? > > For me this is a really important thing since all the 'special' keys are > not accesible w/o the 'hack' below. If I want the pipe (|), or writing > code ({}, [], ...) I have to remote login to get the characters I need. > But I guess I do not need to explain that ;) > > TIA, > Andreas Hi Andreas! That keyboards have no Shift key for that? :) I will be glad to apply your changes, but I have to know how it should be controlled. RU and UA PC keyboards have same 3 symbols '2', '"', '@' To get '2' i have to press only '2' To get '@' I have to press Shift+'2' To get '"' I have to switch to UA or RU and press Shift+'2' Ahh, or use some called Third-Level (IIRC) in Xorg terms. Temporary lang switch. Which commonly mapped to one of Alt. Right? So R-Alt+Shift+'2'? > > Index: vt_core.c > =================================================================== > --- vt_core.c (revision 259095) > +++ vt_core.c (working copy) > @@ -408,6 +408,7 @@ > } else { > switch (c & ~RELKEY) { > case (SPCLKEY | RALT): > + break; > case (SPCLKEY | LALT): > vd->vd_kbstate |= ALKED; > } -- Aleksandr Rybalko