Code Monkey home page Code Monkey logo

Comments (11)

jonmosco avatar jonmosco commented on August 17, 2024

What are locale settings? $ locale
What does the terminal print if you type $ echo $'\2388'

from kube-ps1.

ckorobov avatar ckorobov commented on August 17, 2024

Here it is @jonmosco :

[08:30:33] ~ $ bash --norc
bash-4.3$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=
bash-4.3$ echo $'\2388'
�88
bash-4.3$

image

from kube-ps1.

jonmosco avatar jonmosco commented on August 17, 2024

Sorry, forgot the u
$ echo $'\u2388'

Which terminal emulator are you using?

from kube-ps1.

ckorobov avatar ckorobov commented on August 17, 2024

It's terminator, but the same is in terminal.

[13:26:13] ~/Downloads $ echo $'\u2388'

[15:10:55] ~/Downloads $
[15:10:55] ~/Downloads $ terminator -v
terminator 0.98
[15:11:32] ~/Downloads $
[15:12:39] ~/Downloads $ gnome-terminal --version
GNOME Terminal 3.18.3
[15:12:42] ~/Downloads $

from kube-ps1.

jonmosco avatar jonmosco commented on August 17, 2024

Do you see the same output when you have kube_ps1 in your actual prompt?

from kube-ps1.

ckorobov avatar ckorobov commented on August 17, 2024

Yes @jonmosco , this is how I discovered it.

from kube-ps1.

jonmosco avatar jonmosco commented on August 17, 2024

Can you paste the portion of your bashrc that is calling kube_ps1?

from kube-ps1.

ckorobov avatar ckorobov commented on August 17, 2024

source ~/.kube/kubectl-alias.sh
PS1='\D{[%T]} \w $(kube_ps1)$ '
kubeoff

from kube-ps1.

jonmosco avatar jonmosco commented on August 17, 2024

I can reproduce this on my machine with the correct output.

Can you send a screenshot of this in the prompt?

from kube-ps1.

ckorobov avatar ckorobov commented on August 17, 2024

It's weird, now it's working fine in the prompt, but when I do echo it's still there. I guess we can close it:
image

from kube-ps1.

jonmosco avatar jonmosco commented on August 17, 2024

\001 and \002 are removed by bash and PS1 is drawn correctly. The terminal in the case of the echo (gnome-terminal specifically) is not properly translating those chars. I tested this in xterm, rxvt, and terminal and it works as expected. This will even work in gnome-terminal with tmux as well.

from kube-ps1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.