[英]\t in conky shows another character
When I use \\t
in conky, another character appears on the screen. 当我在conky中使用
\\t
时,另一个字符出现在屏幕上。
Here's what I've used: 这是我用过的:
text = 'Uploaded: ' .. conky_parse('${totalup wlp2s0}') .. '\tSpeed: ' .. conky_parse('${upspeed wlp2s0}')
And I used cairo_show_text()
function to show the text on the screen. 我使用
cairo_show_text()
函数在屏幕上显示文本。
How can I fix it? 我该如何解决?
http://conky.sourceforge.net/variables.html http://conky.sourceforge.net/variables.html
Use goto
to start the next character at position x. 使用
goto
在位置x处开始下一个字符。
As cairographics says, 正如航空摄影作品所说,
The functions with text in their name form cairo's toy text API
名称中带有文本的函数构成开罗的玩具文本API
and its limited functionality is for testing and demos. 其有限的功能仅用于测试和演示。 You will have to do your own work to implement a tab stop by drawing the text, not including the tab character, then reposition the current point to the fixed position you want as tab stop, and draw the rest of the text.
您将需要做自己的工作来实现制表位,方法是绘制文本(不包括制表符),然后将当前点重新定位到所需的固定位置作为制表位,然后绘制其余文本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.