openbsd-ports/net/BitTorrent/patches/patch-bittorrent-curses_py
naddy 6196fc060b update to 4.4.0:
- new icons
- a single torrent can now use the complete upload bandwidth
2006-05-08 13:46:48 +00:00

14 lines
501 B
Plaintext

$OpenBSD: patch-bittorrent-curses_py,v 1.1 2006/05/08 13:46:48 naddy Exp $
--- bittorrent-curses.py.orig Sun Apr 9 20:28:31 2006
+++ bittorrent-curses.py Sun Apr 9 20:29:16 2006
@@ -114,7 +114,8 @@ class CursesDisplayer(object):
self.spew_scroll_pos = 0
self._remake_window()
- curses.use_default_colors()
+ if curses.has_colors():
+ curses.use_default_colors()
def set_torrent_values(self, name, path, size, numpieces):
self.file = name