Add option to retain colors in scrollback

This commit is contained in:
Berke Viktor
2012-07-19 09:14:34 +02:00
parent 89584e565a
commit ef81a24f64
4 changed files with 12 additions and 2 deletions

View File

@@ -338,7 +338,10 @@ scrollback_load (session *sess)
text = strchr (buf + 3, ' ');
if (text)
{
text = strip_color (text + 1, -1, STRIP_COLOR);
if (prefs.text_replay_strip_color)
{
text = strip_color (text + 1, -1, STRIP_COLOR);
}
fe_print_text (sess, text, stamp);
g_free (text);
}
@@ -373,7 +376,10 @@ scrollback_load (session *sess)
text = strchr (buf + 3, ' ');
if (text)
{
text = strip_color (text + 1, -1, STRIP_COLOR);
if (prefs.text_replay_strip_color)
{
text = strip_color (text + 1, -1, STRIP_COLOR);
}
cleaned_text = text_replace_non_bmp (text, -1, &cleaned_len);
if (cleaned_text != NULL)
{