Hi,
May I know what for?
If it is for "elvis" (the default vi), I guess that elvis understands
"hjkl" only
instead of the arrow keys.
BTW: But, I was seldom using the qemu console. Why not using "telnet"
or "ssh" to the Minix system?
regards,
--
Rahmat M. Samik-Ibrahim --- vLSM.org
1) telnet is already available. Just copy or rename file
/etc/rc.daemons.dist to /etc/rc.daemons and reboot.
2) you need to install the ssh package
3) You need to redirect the telnet and/or ssh port. E.g.
-redir tcp:5522::22 -redir tcp:5523::23
4) If telnet, run: telnet localhost 5523
5) If ssh, run: ssh -p 5522 user@localhost
Sorry, it was added in a later varsion. Anyhow, try this patch.
Cheers, T.
--- minix_3.1.3a-orig/drivers/tty/console.c 2009-04-17 09:45:54.000000000 +0200
+++ minix_3.1.3a-patch/drivers/tty/console.c 2009-05-13 18:03:33.000000000 +0200
@@ -28,6 +28,8 @@
#include "../../kernel/config.h"
#include "../../kernel/type.h"
+#define DUP_CONS_TO_SER 1
+
/* Definitions used by the console driver. */
#define MONO_BASE 0xB0000L /* base of mono video memory */
#define COLOR_BASE 0xB8000L /* base of color video memory */
@@ -204,6 +206,13 @@
{
out_char(cons, *tbuf++);
} else {
+#if DUP_CONS_TO_SER
+ if (cons == &cons_table[0]) {
+ if (*tbuf == '\n')
+ ser_putc('\r');
+ ser_putc(*tbuf);
+ }
+#endif
cons->c_ramqueue[cons->c_rwords++] =
cons->c_attr | (*tbuf++ & BYTE);
cons->c_column++;
@@ -249,6 +258,16 @@
return;
}
+#if DUP_CONS_TO_SER
+ if (cons == &cons_table[0] && c != '\0')
+ {
+ if (c == '\n')
+ ser_putc('\r');
+ ser_putc(c);
+ }
+#endif
+
+
switch(c) {
case 000: /* null is typically used for padding */
return; /* better not do anything */