Python ntpq

Achim Gratz Stromeko at nexgo.de
Sun Nov 27 11:10:49 UTC 2016


Achim Gratz writes:
> It doesn't use wide display for the rv and cv commands no matter the
> option.

That turned out to be caused by a hardcoded width:

--- a/ntpq/ntpq
+++ b/ntpq/ntpq
@@ -443,7 +444,7 @@ usage: help [ command ]
                         lastcount = 0
                     else:
                         lastcount += 1
-                if lastcount + len(item) > 78:
+                if lastcount + len(item) > self.termwidth:
                     text = text[:-1] + "\n"
                 text += item
             text = text[:-2] + "\n"


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables



More information about the devel mailing list