]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.c
colorize cvarlist and completion nicely
[xonotic/darkplaces.git] / cvar.c
diff --git a/cvar.c b/cvar.c
index 75ff70f44ad1242b7d2b630190d79b756d49605e..2aa3e9437ab94a6f97ea6c9ce9fc84fafb17c2f6 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -220,7 +220,7 @@ void Cvar_CompleteCvarPrint (const char *partial)
        // Loop through the command list and print all matches
        for (cvar = cvar_vars; cvar; cvar = cvar->next)
                if (!strncasecmp(partial, cvar->name, len))
-                       Con_Printf ("%c3%s%s : \"%s\" (\"%s\") : %s\n", STRING_COLOR_TAG, cvar->name, STRING_COLOR_DEFAULT_STR, cvar->string, cvar->defstring, cvar->description);
+                       Con_Printf ("^3%s^7 is \"%s\" [\"%s\"] %s\n", cvar->name, cvar->string, cvar->defstring, cvar->description);
 }
 
 
@@ -701,9 +701,9 @@ void Cvar_List_f (void)
        if (len)
        {
                if(ispattern)
-                       Con_Printf("%i cvar(s) matching \"%s\"\n", count, partial);
+                       Con_Printf("%i cvar%s matching \"%s\"\n", count, (count > 1) ? "s" : "", partial);
                else
-                       Con_Printf("%i cvar(s) beginning with \"%s\"\n", count, partial);
+                       Con_Printf("%i cvar%s beginning with \"%s\"\n", count, (count > 1) ? "s" : "", partial);
        }
        else
                Con_Printf("%i cvar(s)\n", count);