summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-23 22:10:44 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-23 22:10:44 +0000
commit55cb41cc67afe86ebb2a14cdc709095fb92aa625 (patch)
tree96efe39010792bfb6ebdb813da02257609c4b2b8 /usr.bin
parentb79e4794c9bb327f4c587d48111e7251225efe41 (diff)
export "fundamental_map" that points to the fundamental keymap
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/kbd.h3
-rw-r--r--usr.bin/mg/keymap.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mg/kbd.h b/usr.bin/mg/kbd.h
index 073ffa8a8d8..62ff514cd0f 100644
--- a/usr.bin/mg/kbd.h
+++ b/usr.bin/mg/kbd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kbd.h,v 1.8 2001/05/23 21:59:45 art Exp $ */
+/* $OpenBSD: kbd.h,v 1.9 2001/05/23 22:10:43 art Exp $ */
/*
* kbd.h: type definitions for symbol.c and kbd.c for mg experimental
@@ -41,6 +41,7 @@ typedef struct MAPS_S {
} MAPS;
extern MAPS map_table[];
+extern KEYMAP *fundamental_map;
typedef struct {
PF n_funct;
diff --git a/usr.bin/mg/keymap.c b/usr.bin/mg/keymap.c
index 9d9d022bd6e..3f4558ae2f8 100644
--- a/usr.bin/mg/keymap.c
+++ b/usr.bin/mg/keymap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keymap.c,v 1.8 2001/05/23 21:59:45 art Exp $ */
+/* $OpenBSD: keymap.c,v 1.9 2001/05/23 22:10:43 art Exp $ */
/*
* Keyboard maps. This is character set dependent. The terminal specific
@@ -615,6 +615,8 @@ MAPS map_table[] = {
#define NMAPS (sizeof map_table/sizeof(MAPS))
int nmaps = NMAPS; /* for use by rebind in extend.c */
+KEYMAP *fundamental_map = (KEYMAP *)&fundmap;
+
char *
map_name(map)
KEYMAP *map;