summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-15 06:12:04 +0200
committerhut <hut@lavabit.com>2010-10-15 06:12:04 +0200
commit58752d8aff1155c8fa6aaf70894c11e5366c7754 (patch)
tree74733a5aa014509bf80953cdadb44701efa5f5cc
parentb0e65cb151f2395c7b1496dc775ad46641ba01c6 (diff)
downloadranger-58752d8aff1155c8fa6aaf70894c11e5366c7754.tar.gz
gui.ansi: handle blink-code for doubled bitrate of background colors
-rw-r--r--ranger/gui/ansi.py2
-rw-r--r--ranger/gui/color.py1
2 files changed, 3 insertions, 0 deletions
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