[Tcsh] unicode in prompt

Amol Deshpande amol.vinayak.deshpande at gmail.com
Fri Jan 1 18:03:38 UTC 2021


false alarm. turns out it was a user error. I was putting non-escape
characters in %{ %}.  I confused the details of LITERAL and QUOTE.
Everything's fine on Linux.

thanks,
-amol

On Mon, Dec 28, 2020 at 7:12 AM Amol Deshpande <
amol.vinayak.deshpande at gmail.com> wrote:

> hey all,
>
> I've been trying to get unicode in the prompt like all the cool kids are
> doing these days. I created a gist based on my attempts with the prompt
> configuration tool oh my posh (at
> https://github.com/JanDeDobbeleer/oh-my-posh3)
>
> my gist:
> https://gist.github.com/amoldeshpande/8b95c58b94fe2278b65ba10e44e5a27e
>
> However, even on Linux  (WSL2 in Windows), setting the prompt this way
> seems to mess up the editing.  backward-delete-word , line erase etc. don't
> quite work reliably. They erase more than required (visually. the actual
> command itself is intact in the shell's buffer)
>
> Anyone have experience with this ?
>
> For Linux, should I be setting my locale somehow  to enable unicode in the
> term ? I am assuming it should just work.
>
>  From stepping through on Windows it looks like the calculations for
> cursor location are messed up by UTF8.  But that's a whole different thing
> I'm struggling with, so I'm not sure it's related. Doesn't Unix use UTF-32
> anyway ?
>
> BTW, gmail has been ghosting this mailing list for me (I do seem to get
> replies to threads though), so please feel free to email me directly if
> anything needs my attention.  I'm in the process of setting up a different
> email.
>
> thanks and Happy Holidays to all
>
> regards,
> -amol
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20210101/8a187754/attachment.htm>


More information about the Tcsh mailing list