prompt: filter ansi before calling readline
This commit is contained in:
@@ -280,7 +280,9 @@ check_script:
|
||||
} else {
|
||||
prompt = PROXPROMPT_OFFLINE;
|
||||
}
|
||||
cmd = readline(prompt);
|
||||
char prompt_filtered[PROXPROMPT_MAX_SIZE] = {0};
|
||||
memcpy_filter_ansi(prompt_filtered, prompt, sizeof(prompt_filtered), !session.supports_colors);
|
||||
cmd = readline(prompt_filtered);
|
||||
fflush(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user