Lua debugger: maxlen command implemented.

Let the user control the replies truncation.
This commit is contained in:
antirez
2015-11-16 16:20:02 +01:00
parent c560c645e9
commit 0cc19174f9
2 changed files with 55 additions and 14 deletions

View File

@ -521,6 +521,7 @@ sds sdsCatColorizedLdbReply(sds o, char *s, size_t len) {
if (strstr(s,"<redis>")) color = "green";
if (strstr(s,"<reply>")) color = "cyan";
if (strstr(s,"<error>")) color = "red";
if (strstr(s,"<hint>")) color = "bold";
if (strstr(s,"<value>") || strstr(s,"<retval>")) color = "magenta";
if (len > 4 && isdigit(s[3])) {
if (s[1] == '>') color = "yellow"; /* Current line. */