[CalendarServer-changes] [15670] CalendarServer/trunk/calendarserver/tools
source_changes at macosforge.org
source_changes at macosforge.org
Sat Jun 11 18:11:06 PDT 2016
Revision: 15670
http://trac.calendarserver.org//changeset/15670
Author: dre at apple.com
Date: 2016-06-11 18:11:06 -0700 (Sat, 11 Jun 2016)
Log Message:
-----------
Don't make the cursor invisible if the terminal can't support it
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/dashboard.py
CalendarServer/trunk/calendarserver/tools/dashview.py
Modified: CalendarServer/trunk/calendarserver/tools/dashboard.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/dashboard.py 2016-06-11 18:24:25 UTC (rev 15669)
+++ CalendarServer/trunk/calendarserver/tools/dashboard.py 2016-06-12 01:11:06 UTC (rev 15670)
@@ -62,7 +62,11 @@
if useCurses:
def _wrapped(stdscrn):
- curses.curs_set(0)
+ if hasattr(curses, 'curs_set'):
+ try:
+ curses.curs_set(0) # make the cursor invisible
+ except:
+ pass
curses.use_default_colors()
curses.init_pair(1, curses.COLOR_RED, curses.COLOR_WHITE)
d = Dashboard(servers, stdscrn, True)
Modified: CalendarServer/trunk/calendarserver/tools/dashview.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/dashview.py 2016-06-11 18:24:25 UTC (rev 15669)
+++ CalendarServer/trunk/calendarserver/tools/dashview.py 2016-06-12 01:11:06 UTC (rev 15670)
@@ -60,7 +60,11 @@
def _wrapped(stdscrn):
- curses.curs_set(0)
+ if hasattr(curses, 'curs_set'):
+ try:
+ curses.curs_set(0) # make the cursor invisible
+ except:
+ pass
curses.use_default_colors()
curses.init_pair(1, curses.COLOR_RED, curses.COLOR_WHITE)
d = Dashboard(server, stdscrn)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160611/78703f94/attachment.html>
More information about the calendarserver-changes
mailing list