summaryrefslogtreecommitdiffstats
path: root/sys-apps/kbd/files/consolechars
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/kbd/files/consolechars')
-rwxr-xr-xsys-apps/kbd/files/consolechars22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-apps/kbd/files/consolechars b/sys-apps/kbd/files/consolechars
new file mode 100755
index 0000000..810829f
--- /dev/null
+++ b/sys-apps/kbd/files/consolechars
@@ -0,0 +1,22 @@
+#! /bin/bash
+
+setfont=0
+setmap=0
+
+for name in $@; do
+ if [ $setfont -eq 1 ]; then
+ setfont $name
+ setfont=0
+ fi
+
+ if [ $setmap -eq 1 ]; then
+ mapscrn $name
+ setmap=0
+ fi
+
+ if [ $name = "-f" ]; then
+ setfont=1
+ elif [ $name = "-m" ]; then
+ setmap=1
+ fi
+done