From 63ee4ef39bfa9bb83ad3ee5a4877770dba7d82f7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 6 Mar 2014 23:21:18 +0100 Subject: add XDisplay.vt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/plugin-test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/plugin-test b/examples/plugin-test index 486212d..a012542 100644 --- a/examples/plugin-test +++ b/examples/plugin-test @@ -151,7 +151,8 @@ def redraw(): discstats = ['%s:%s' % (d[2:], colourise(i)) for d, i in discstats] discstats = 'Disc stats: %s' % (' '.join(discstats)) - xdisplay = ':%i' % XDisplay().display + xdisplay_ = XDisplay() + xdisplay = ':%i tty%i' % (xdisplay_.display, xdisplay_.vt) moc_ = MOC().state moc = {None : 'dead', MOC.STOPPED : 'stopped', MOC.PAUSED : 'paused', MOC.PLAYING : 'playing'} -- cgit v1.2.3-70-g09d2