无法在终端中正确显示块元素

huangapple go评论69阅读模式
英文:

fail to display block element correctly in terminal

问题

当我在通过SSH连接的Linux终端中使用plotext来绘制图形时,我发现它无法正确显示块元素。

以下是我使用的命令:

python3 -c "import plotext as plt; y = plt.sin(); plt.scatter(y); plt.title('Scatter Plot'); plt.show()"

输出结果如下:
无法在终端中正确显示块元素

一些块元素,例如▝、▖,显示为问号。

是否有什么办法可以解决这个问题?我的终端设置是TERM=xterm-256color

更新

原来是ConEmu的问题。

英文:

When I use plotext to plot graph in Linux terminial which is connected via ssh, I find that it fails to display block elements correctly.

Here is the command I use

python3 -c "import plotext as plt; y = plt.sin(); plt.scatter(y); plt.title('Scatter Plot'); plt.show()"

And the output is
无法在终端中正确显示块元素

Some of the block elements, for examples ▝,▖ are displayed as question mark.

Is there anything I can do to make it right? My terminal setting is TERM=xterm-256color

Update

Turn out to be the problem of ConEmu

答案1

得分: 1

这是翻译好的部分:

"Turn out to be a problem of ConEmu, it can be fixed by the method provided here: https://github.com/Maximus5/ConEmu/issues/1381

英文:

Turn out to be a problem of ConEmu, it can be fixed by the method provided here: https://github.com/Maximus5/ConEmu/issues/1381

huangapple
  • 本文由 发表于 2023年7月11日 11:48:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76658601.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定