summaryrefslogtreecommitdiffstats
path: root/loader/kon2/tools/rel.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/kon2/tools/rel.c')
-rw-r--r--loader/kon2/tools/rel.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/loader/kon2/tools/rel.c b/loader/kon2/tools/rel.c
new file mode 100644
index 000000000..d5e8afd78
--- /dev/null
+++ b/loader/kon2/tools/rel.c
@@ -0,0 +1,18 @@
+#include <sys/types.h>
+#include <sys/kd.h>
+#include <sys/vt.h>
+#include <sys/ioctl.h>
+
+int main(void)
+{
+ struct vt_mode vtm;
+
+ ioctl(0, KDSETMODE, KD_TEXT);
+ vtm.mode = VT_AUTO;
+ vtm.waitv = 0;
+ vtm.relsig = 0;
+ vtm.acqsig = 0;
+ ioctl(0, VT_SETMODE, &vtm);
+
+ return 0;
+}