Compare commits

...

2 Commits

Author SHA1 Message Date
Rafael Laurindo
0f71cfd3c1
docs(qrsvg): fix command example (#11436) 2023-01-11 19:54:53 +01:00
Lawton Nichols
3dd83a22a1
fix(lib): send carriage return after title to fix #11314 (#11315)
Window and tab titles are changed by emitting an unprintable escape
sequence to the terminal. These escape sequences do not play nicely
with the TAB character on multiple terminal emulators--they create
un-deletable characters on the first line after command execution.
Sending "\r" after changing the window and tab titles allows all
characters on the first line to be deleted.

Fixes #11314
2023-01-11 19:44:29 +01:00
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,8 @@ function title {
fi
;;
esac
print -Pn "\r" # move the cursor to the beginning of the line
}
ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD

View File

@ -5,4 +5,4 @@ Generate a QR Code from the command line. Uses [QRcode.show](https://qrcode.show
alias | command
--------------- | --------
`qrcode [text]` | `curl -d "text" qrcode.show`
`qrsvg [text]` | `curl -d "text" qrcode.show -H "Accepct: image.svg"`
`qrsvg [text]` | `curl -d "text" qrcode.show -H "Accept: image/svg+xml"`