diff options
author | nyan <nyan@FreeBSD.org> | 2001-06-17 03:13:48 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2001-06-17 03:13:48 +0000 |
commit | d3a49deed9a7d90887ac11057d11a040e010bd4b (patch) | |
tree | 1dd422e4eb511d6063dc19f61525470d76530be1 /usr.sbin | |
parent | d5c9b58974599e3e5bf0fda304860c896a90d8ba (diff) | |
download | FreeBSD-src-d3a49deed9a7d90887ac11057d11a040e010bd4b.zip FreeBSD-src-d3a49deed9a7d90887ac11057d11a040e010bd4b.tar.gz |
Supported to select a keymap for PC-98x1.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sade/Makefile | 4 | ||||
-rw-r--r-- | usr.sbin/sade/menus.c | 18 | ||||
-rw-r--r-- | usr.sbin/sysinstall/Makefile | 4 | ||||
-rw-r--r-- | usr.sbin/sysinstall/menus.c | 18 |
4 files changed, 44 insertions, 0 deletions
diff --git a/usr.sbin/sade/Makefile b/usr.sbin/sade/Makefile index 353523e..946df64 100644 --- a/usr.sbin/sade/Makefile +++ b/usr.sbin/sade/Makefile @@ -75,11 +75,15 @@ rtermcap: rtermcap.c ${CC} -o ${.TARGET} ${.ALLSRC} -ltermcap +.if ${MACHINE} == "pc98" +KEYMAPS= jp.pc98 jp.pc98.iso +.else KEYMAPS= be.iso br275.iso danish.iso finnish.iso fr.iso \ german.iso hr.iso hu.iso2.101keys it.iso icelandic.iso jp.106 \ norwegian.iso pl_PL.ISO8859-2 pt.iso ru.koi8-r si.iso \ spanish.iso swedish.iso swissfrench.iso swissgerman.iso ua.koi8-u \ ua.koi8-u.shift.alt uk.iso us.dvorak us.iso us.pc-ctrl us.unix +.endif keymap.h: rm -f keymap.tmp diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c index d95f218..7d850a0 100644 --- a/usr.sbin/sade/menus.c +++ b/usr.sbin/sade/menus.c @@ -1432,6 +1432,23 @@ DMenu MenuSyscons = { { NULL } }, }; +#ifdef PC98 +DMenu MenuSysconsKeymap = { + DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS, + "System Console Keymap", + "The default system console driver for FreeBSD (syscons) defaults\n" + "to a standard \"PC-98x1\" keyboard map. Users may wish to choose\n" + "one of the other keymaps below.\n" + "Note that sysinstall itself only uses the part of the keyboard map\n" + "which is required to generate the ANSI character subset, but your\n" + "choice of keymap will also be saved for later (fuller) use.", + "Choose a keyboard map", + NULL, + { { "Japanese PC-98x1", "Japanese PC-98x1 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98" }, + { " Japanese PC-98x1 (ISO)", "Japanese PC-98x1 (ISO) keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98.iso" }, + { NULL } }, +}; +#else DMenu MenuSysconsKeymap = { DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS, "System Console Keymap", @@ -1496,6 +1513,7 @@ DMenu MenuSysconsKeymap = { { " USA UNIX", "US traditional UNIX-workstation", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.unix" }, { NULL } }, }; +#endif DMenu MenuSysconsKeyrate = { DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS, diff --git a/usr.sbin/sysinstall/Makefile b/usr.sbin/sysinstall/Makefile index 353523e..946df64 100644 --- a/usr.sbin/sysinstall/Makefile +++ b/usr.sbin/sysinstall/Makefile @@ -75,11 +75,15 @@ rtermcap: rtermcap.c ${CC} -o ${.TARGET} ${.ALLSRC} -ltermcap +.if ${MACHINE} == "pc98" +KEYMAPS= jp.pc98 jp.pc98.iso +.else KEYMAPS= be.iso br275.iso danish.iso finnish.iso fr.iso \ german.iso hr.iso hu.iso2.101keys it.iso icelandic.iso jp.106 \ norwegian.iso pl_PL.ISO8859-2 pt.iso ru.koi8-r si.iso \ spanish.iso swedish.iso swissfrench.iso swissgerman.iso ua.koi8-u \ ua.koi8-u.shift.alt uk.iso us.dvorak us.iso us.pc-ctrl us.unix +.endif keymap.h: rm -f keymap.tmp diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c index d95f218..7d850a0 100644 --- a/usr.sbin/sysinstall/menus.c +++ b/usr.sbin/sysinstall/menus.c @@ -1432,6 +1432,23 @@ DMenu MenuSyscons = { { NULL } }, }; +#ifdef PC98 +DMenu MenuSysconsKeymap = { + DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS, + "System Console Keymap", + "The default system console driver for FreeBSD (syscons) defaults\n" + "to a standard \"PC-98x1\" keyboard map. Users may wish to choose\n" + "one of the other keymaps below.\n" + "Note that sysinstall itself only uses the part of the keyboard map\n" + "which is required to generate the ANSI character subset, but your\n" + "choice of keymap will also be saved for later (fuller) use.", + "Choose a keyboard map", + NULL, + { { "Japanese PC-98x1", "Japanese PC-98x1 keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98" }, + { " Japanese PC-98x1 (ISO)", "Japanese PC-98x1 (ISO) keymap", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=jp.pc98.iso" }, + { NULL } }, +}; +#else DMenu MenuSysconsKeymap = { DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS, "System Console Keymap", @@ -1496,6 +1513,7 @@ DMenu MenuSysconsKeymap = { { " USA UNIX", "US traditional UNIX-workstation", dmenuVarCheck, dmenuSetKmapVariable, NULL, "keymap=us.unix" }, { NULL } }, }; +#endif DMenu MenuSysconsKeyrate = { DMENU_RADIO_TYPE | DMENU_SELECTION_RETURNS, |