From 58752d8aff1155c8fa6aaf70894c11e5366c7754 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 15 Oct 2010 06:12:04 +0200 Subject: gui.ansi: handle blink-code for doubled bitrate of background colors --- ranger/gui/ansi.py | 2 ++ ranger/gui/color.py | 1 + 2 files changed, 3 insertions(+) diff --git a/ranger/gui/ansi.py b/ranger/gui/ansi.py index a9b37665..ea024977 100644 --- a/ranger/gui/ansi.py +++ b/ranger/gui/ansi.py @@ -47,6 +47,8 @@ def text_with_fg_bg_attr(ansi_text): attr |= color.bold elif n == 4: attr |= color.underline + elif n == 5: + attr |= color.blink elif n == 7: attr |= color.reverse elif n == 8: diff --git a/ranger/gui/color.py b/ranger/gui/color.py index 58f0b38a..67be30f7 100644 --- a/ranger/gui/color.py +++ b/ranger/gui/color.py @@ -56,6 +56,7 @@ default = -1 normal = curses.A_NORMAL bold = curses.A_BOLD +blink = curses.A_BLINK reverse = curses.A_REVERSE underline = curses.A_UNDERLINE invisible = curses.A_INVIS -- cgit 1.4.1-2-gfad0