knqyf263 / pet

Simple command-line snippet manager
MIT License
4.54k stars 230 forks source link

Garbled characters appear when using variables. #160

Closed ofey404 closed 3 years ago

ofey404 commented 3 years ago

When I use a snippet with variable, like this:

[[snippets]]
  description = "ssh without hostkey auth"
  command = "ssh <user>@<host> -o StrictHostKeyChecking=no"
  output = ""

I got some garbled characters on the terminal, like:

image

It's a bit annoying... I am trying to figure out why by myself. I'm grateful if there are anyone who have met this issue before.

My system is fedora 33, garbled characters happens on gnome-terminal and guake terminal, font is system monospace.

roeniss commented 3 years ago

just quick question: where does that visual come from? Do you use some graphic ssh client?

ofey404 commented 3 years ago

It’s a screenshot from my own laptop. I run fedora on my own computer, bare metal. I wonder if this problem comes from Wayland, for it has caused many problems...

ofey404 commented 3 years ago

Maybe I should change my font to test it.

ofey404 commented 3 years ago

I compiled from source and this problem disappeared. Maybe the version in fedora's package manager is too old.