aboutsummaryrefslogtreecommitdiffstats
path: root/examples/plugin-test
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plugin-test')
-rw-r--r--examples/plugin-test3
1 files changed, 2 insertions, 1 deletions
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'}