From 1ea9b37468b2cffc6c6c62dd767ab4d3956e54c7 Mon Sep 17 00:00:00 2001
From: Ben Connors <benconnors@outlook.com>
Date: Tue, 3 Dec 2019 10:24:42 -0500
Subject: Interface fixes

- Don't use italics if unavailable
- Add more command-line options
- Fix channels indexing from 1 in interface (now 0)
---
 interface/input/tabcomp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'interface/input')

diff --git a/interface/input/tabcomp.py b/interface/input/tabcomp.py
index 4cce602..7479f97 100755
--- a/interface/input/tabcomp.py
+++ b/interface/input/tabcomp.py
@@ -152,7 +152,7 @@ class Input:
             self.win.addstr(1, 1, ' '*(self._width-2))
             self.win.addstr(2, 1, ' '*(self._width-2))
             self.win.addstr(1, 1, l1)
-            self.win.addstr(2, 1, l2, curses.A_ITALIC)
+            self.win.addstr(2, 1, l2, (curses.A_ITALIC if hasattr(curses, "A_ITALIC") else 0))
             self.win.move(1, len(l1)+1)
             self.win.refresh()
 
-- 
cgit v1.2.3