From 30ee1109f178b5cf9f68c0fe338487e121e9b831 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 11 Mar 2000 14:16:55 +0000 Subject: [PATCH] Robert de Bath's patch: ARG_DEFAULT is now zero because it's apparently defined behaviour for _all_ CSI-type sequences that ESC[Q should be equivalent to ESC[0Q. Which is a pain in the wossname and not a sane way to do it, but if the standards say it then I suppose ... :-( [originally from svn r406] --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index b0cc3548..636b5dd9 100644 --- a/terminal.c +++ b/terminal.c @@ -41,7 +41,7 @@ static int alt_t, alt_b; static int alt_which; #define ARGS_MAX 32 /* max # of esc sequence arguments */ -#define ARG_DEFAULT -1 /* if an arg isn't specified */ +#define ARG_DEFAULT 0 /* if an arg isn't specified */ #define def(a,d) ( (a) == ARG_DEFAULT ? (d) : (a) ) static int esc_args[ARGS_MAX]; static int esc_nargs;