Skip to content
Snippets Groups Projects
Commit e6ac087c authored by Lars Wirzenius's avatar Lars Wirzenius Committed by Alexandre Detiste
Browse files

Import Debian changes 0.28-1

python-ttystatus (0.28-1) unstable; urgency=medium
.
  * New upstream version.
parents 382c3615 bc21cc4b
No related branches found
No related tags found
No related merge requests found
NEWS file for ttystatus
=======================
Version 0.28, released 2015-10-10
---------------------------------
* Fix another case where terminal capabilities are queried and the
terminal isn't capable.
Version 0.27, released 2015-10-10
---------------------------------
......
python-ttystatus (0.28-1) unstable; urgency=medium
* New upstream version.
-- Lars Wirzenius <liw@liw.fi> Sat, 10 Oct 2015 16:18:36 +0300
python-ttystatus (0.27-1) unstable; urgency=medium
* New upstream version.
......
......@@ -35,7 +35,7 @@ from .bytespeed import ByteSpeed
from .fmt import parse
__version__ = '0.27'
__version__ = '0.28'
__all__ = locals()
......@@ -34,8 +34,12 @@ class PhysicalTerminal(object):
def open_tty(self):
self._terminal = open('/dev/tty', 'wb')
curses.setupterm(None, self._terminal.fileno())
self._cuu = curses.tparm(curses.tigetstr('cuu'), 1)
self._cud = curses.tparm(curses.tigetstr('cud'), 1)
for name in ['cuu', 'cud']:
s = curses.tigetstr(name)
if s is not None:
setattr(self, '_' + name, curses.tparm(s, 1))
self._cr = curses.tigetstr('cr')
self._el = curses.tigetstr('el')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment