wiki
wiki copied to clipboard
control characters around Read more link?
I'm using OSX. Wiki works perfectly except for one thing: I get strange characters around the Read more
link:
ESC[32mRead more: https://en.wikipedia.org/wiki/JusticeESC[0m
Wouldn't be a big deal except that when I click the link, it takes me to broken link URLs like this: https://en.wikipedia.org/wiki/JusticeESC
That sounds strange, I have tested it in both iTerm and Terminal.app and get colorized output, no control characters. What terminal app do you use? Do you have any settings in your terminal application regarding color or escape characters?
A workaround for temporarily fixing the issue is to use the -n
flag for skipping the colorized output. E.g.
$ wiki -n justice
You can also add an alias to your .bash_profile
(depending on which shell you use) so you don't have to use the flag every time. E.g.
alias wiki='wiki -n'
Then you just use it as normal. E.g.
$ wiki justice
Hope this helps!
Thanks, that workaround worked!
As for colors, here's what I have:
export LSCOLORS=GxFxCxDxBxegedabagaced export TERM="xterm-color" export CLICOMMANDSLOR=1 export LSCOMMANDSLORS=GxFxCxDxBxegedabagaced export CLICOLOR=1
On Wed, Jun 29, 2016 at 9:54 AM, Fredrik Wallgren [email protected] wrote:
That sounds strange, I have tested it in both iTerm and Terminal.app and get colorized output, no control characters. What terminal app do you use? Do you have any settings in your terminal application regarding color or escape characters?
A workaround for temporarily fixing the issue is to use the -n flag for skipping the colorized output. E.g.
$ wiki -n justice
You can also add an alias to your .bash_profile (depending on which shell you use) so you don't have to use the flag every time. E.g.
alias wiki='wiki -n'
Then you just use it as normal. E.g.
$ wiki justice
Hope this helps!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/walle/wiki/issues/11#issuecomment-229362729, or mute the thread https://github.com/notifications/unsubscribe/AB7EcoewCL7HRlk53AgJTIWcq9spVDzsks5qQnkQgaJpZM4JAvAl .
ᐧ