From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by ewsd; Wed Sep 30 09:03:10 -0400 2020 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 92D535C0198 for <9front@9front.org>; Wed, 30 Sep 2020 09:03:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 30 Sep 2020 09:03:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bolddaemon.com; h=references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=Ub4+TmOmAltR0FCxL4LaHs90Af t1zw7GuoY/vFaojXw=; b=YWiZaEKPNsZFFIEJ4gHaESr2z2HK1THlEm51VU33rG dMd73cT0tnVpvQbAtr8ggp7REACyfYGqO4gM5nnsQs4qvRKjbRYP5a0tR5hZn22K ZeSyMarpw5xksPIzCdrKQmQ8T+6nCEx3fSdziPJVNSxzlusyOtq4P6cFj/U8AZla 4fRHE7vOjcwrJOVMPaRZ5FmMHtpTMkFrJzy6IjdgZ6qea2Q9cBi33en1XPLdRL9T k47F5+QkEnkbuSuL9oElJoxRSbDnMFAA58X3J8JA32/HG93kwQpNeXx5dfTSJeiX 9JSdjSKcnGmQ/idiIOK9INDRd2abIvZ5hl+YLRsIOc7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Ub4+Tm OmAltR0FCxL4LaHs90Aft1zw7GuoY/vFaojXw=; b=Yv/CNpqm7LbZM4Jofj1OTx d9NnoV9L9DBs7xDMcrJFjnznihkKQWbJw/zQeqqj4ottX9TUtsTrqZPk8VLBOGxo ixm4EjFPJW1DAdJa3sDqGbu54Xf7S2SQ/vksPA02PauzWN6p6qslPWfoHT/33+cQ Pn0J6gQa7QRaTLMfTxD3igFvqH4Iv4aZ5f/SzhlQNKG6YdyWJhRch4R9+gfDG7rT cucIfsXEFqHI5IQq//roLklvIg8q4JpTcPn/dCpTjVy0jTK7BzpWfhG53F5gz3A/ l9IDdF8CU1sSAg86OMfrKFR9b5TklcJe2La3kpQvh51IwVN88/Oj1au12Fxtz1EQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrfedvgdehiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufgjfffkgggtsehttdertd dtredtnecuhfhrohhmpeetrghrohhnuceuihgvsggvrhcuoegrrghrohhnsegsohhluggu rggvmhhonhdrtghomheqnecuggftrfgrthhtvghrnhepleehieevffeftdfgjedtjedtgf eivddvveeiudekhffgkedvleffhfeufefhjeetnecukfhppedvtdekrdduvdefrdduvdel rddvgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprggrrhhonhessgholhguuggrvghmohhnrdgtohhm X-ME-Proxy: Received: from tal.tapenet.org (unknown [208.123.129.243]) by mail.messagingengine.com (Postfix) with ESMTPA id 5ECE8328006B for <9front@9front.org>; Wed, 30 Sep 2020 09:03:06 -0400 (EDT) References: <8736301ap1.fsf@tal.tapenet.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Aaron Bieber To: 9front@9front.org Subject: Re: [9front] Add the ability to set kbmap=value via plan9.ini In-reply-to: Date: Wed, 30 Sep 2020 07:03:05 -0600 Message-ID: <87zh57zaba.fsf@tal.tapenet.org> MIME-Version: 1.0 Content-Type: text/plain List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: agile mobile metadata self-signing property layer cinap_lenrek@felloff.net writes: > the idea is too bad, its just that this code as no place > in that while loop. just run it after starting kbdfs > (before main is called). Here is the diff with it moved to after kbdfs is started: diff -r 484d3f8e5978 sys/man/8/plan9.ini --- a/sys/man/8/plan9.ini Tue Sep 29 07:28:47 2020 -0700 +++ b/sys/man/8/plan9.ini Wed Sep 30 12:56:45 2020 -0600 @@ -571,10 +571,22 @@ The line .B serial=type=com can be used to specify settings for a PCMCIA modem. +.SS \fLkbmap=\fIvalue\fP +This specifies the keyboard map to use. +.I Value +can be a map file found in +.B /sys/lib/kbmap +on the ramdisk. +.PP +For example: +.TP +.B kbmap=colemak .SS \fLmouseport=\fIvalue\fP This specifies where the mouse is attached. .I Value -can be +can be a map file found in +.B /sys/lib/kbmap +on the ramdisk. .TP .B ps2 the PS2 mouse/keyboard port. The BIOS setup procedure diff -r 484d3f8e5978 sys/src/9/boot/bootfs.proto --- a/sys/src/9/boot/bootfs.proto Tue Sep 29 07:28:47 2020 -0700 +++ b/sys/src/9/boot/bootfs.proto Wed Sep 30 12:56:45 2020 -0600 @@ -58,6 +58,10 @@ nusbrc 555 sys sys ../boot/nusbrc bootrc 555 sys sys ../boot/bootrc tmp +sys + lib + kbmap + + lib firmware + diff -r 484d3f8e5978 sys/src/9/boot/bootrc --- a/sys/src/9/boot/bootrc Tue Sep 29 07:28:47 2020 -0700 +++ b/sys/src/9/boot/bootrc Wed Sep 30 12:56:45 2020 -0600 @@ -170,6 +170,13 @@ if(! ~ $#a 0) a=/dev/eia^$a aux/kbdfs -q -s cons $a + + if(! ~$#kbmap 0){ + if(test -f /sys/lib/kbmap/$kbmap){ + echo 'setting kbmap to' $kbmap + cat /sys/lib/kbmap/$kbmap >/dev/kbmap + } + } } # usb devices