From: Aaron Bieber <aaron@bolddaemon.com>
To: 9front@9front.org
Subject: Add the ability to set kbmap=value via plan9.ini
Date: Tue, 29 Sep 2020 16:26:34 -0600 [thread overview]
Message-ID: <8736301ap1.fsf@tal.tapenet.org> (raw)
Hi,
This lets one specify they desired kbmap via plan9.ini. Makes typing
boot parameters much easier!
Cheers,
Aaron
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 Tue Sep 29 18:17:18 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 Tue Sep 29 18:17:18 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 Tue Sep 29 18:17:18 2020 -0600
@@ -67,6 +67,12 @@
fn main{
mp=()
while(~ $#mp 0){
+ if(! ~$#kbmap 0){
+ if(test -f /sys/lib/kbmap/$kbmap){
+ echo 'setting kbmap to' $kbmap
+ cat /sys/lib/kbmap/$kbmap >/dev/kbmap
+ }
+ }
if(~ $#nobootprompt 0){
echo
showlocaldevs
next reply other threads:[~2020-09-29 22:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-29 22:26 Aaron Bieber [this message]
2020-09-30 6:33 ` [9front] " cinap_lenrek
2020-09-30 13:03 ` Aaron Bieber
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=8736301ap1.fsf@tal.tapenet.org \
--to=aaron@bolddaemon.com \
--cc=9front@9front.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).