-/* $OpenBSD: cons.c,v 1.1 1996/10/23 09:02:53 mickey Exp $ */
+/* $OpenBSD: cons.c,v 1.2 1997/04/02 04:59:22 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
struct consw *console = &consw[0];
+int
+cons_probe()
+{
+ int i;
+ for (i = 0; i < ncons; i++) {
+ if ((consw[i].cn_probe)() != 0)
+ printf("%s present\n", consw[i].name);
+ }
+ printf("using %s console\n", console->name);
+ return 1;
+}
+
void
putc(c)
int c;