On Thu, Apr 02, 2015 at 08:19:00AM -0400, sven falempin wrote:
> Sorry, no time to make a decent report ATM, must release.
> route add XXX -link -iface YYYYY
> creates problems.
Such a beautiful piece of performance art should be preserved:
Index: usr.bin/mg//theo.c
===================================================================
RCS file: /work/cvsroot/src/usr.bin/mg/theo.c,v
retrieving revision 1.146
diff -p -u -r1.146 theo.c
--- usr.bin/mg//theo.c 19 Mar 2015 21:48:05 -0000 1.146
+++ usr.bin/mg//theo.c 2 Apr 2015 15:17:08 -0000
@@ -35,11 +35,13 @@
#include "kbd.h"
void theo_init(void);
static int theo_analyze(int, int);
+static int sven_analyze(int, int);
static int theo(int, int);
static PF theo_pf[] = {
- theo_analyze
+ theo_analyze,
+ sven_analyze
};
static struct KEYMAPE (1) theomap = {
@@ -47,7 +49,7 @@ static struct KEYMAPE (1) theomap = {
1,
rescan,
{
- { CCHR('M'), CCHR('M'), theo_pf, NULL }
+ { CCHR('M'), CCHR('N'), theo_pf, NULL }
}
};
@@ -197,6 +199,12 @@ static const char *talk[] = {
static const int ntalk = sizeof(talk)/sizeof(talk[0]);
+static const char *sven_talk[] = {
+ "Sorry, no time to make a decent report ATM, must release."
+};
+
+static const int nsven_talk = sizeof(sven_talk)/sizeof(sven_talk[0]);
+
/* ARGSUSED */
static int
theo_analyze(int f, int n)
@@ -205,6 +213,26 @@ theo_analyze(int f, int n)
int len;
str = talk[arc4random_uniform(ntalk)];
+ len = strlen(str);
+
+ enewline(FFRAND, 2);
+
+ while (len--)
+ linsert(1, *str++);
+
+ enewline(FFRAND, 2);
+
+ return (TRUE);
+}
+
+/* ARGSUSED */
+static int
+sven_analyze(int f, int n)
+{
+ const char *str;
+ int len;
+
+ str = sven_talk[arc4random_uniform(nsven_talk)];
len = strlen(str);
enewline(FFRAND, 2);