Coder Social home page Coder Social logo

Comments (8)

DannyBen avatar DannyBen commented on September 23, 2024

This is weird. Not sure how to reproduce it, as we are both on Ubuntu.

Maybe you can send me the output of your env command minus any secrets or positively unrelated vars?

from bashly.

DannyBen avatar DannyBen commented on September 23, 2024

@EmilySeville7cfg I am guessing that if you run the below command you get the same unescaped codes?

$ ruby -r readline -e 'Readline.readline "\n\e[33m\e[1mbashly\e[0m > "'

Bashly terminal is using Ruby's built in Readline behind the scenes, which simply has a prompt as a first argument, which should support escaping.

What does your ruby -v say?

from bashly.

EmilyGraceSeville7cf avatar EmilyGraceSeville7cf commented on September 23, 2024

Maybe you can send me the output of your env command minus any secrets or positively unrelated vars?

COLORTERM=truecolor
SHELL=/usr/bin/nu
TERM=xterm-256color

@EmilySeville7cfg I am guessing that if you run the below command you get the same unescaped codes?

That's true:

image

What does your ruby -v say?

ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]

from bashly.

DannyBen avatar DannyBen commented on September 23, 2024

Thanks - I will take a deeper look.

Does this following command make any difference? (added semicolons to the escape):

$ ruby -r readline -e 'Readline.readline "\n\e[33;1mbashly\e[0m > "'

from bashly.

EmilyGraceSeville7cf avatar EmilyGraceSeville7cf commented on September 23, 2024

Does this following command make any difference? (added semicolons to the escape):

@DannyBen, not at all:

image

from bashly.

DannyBen avatar DannyBen commented on September 23, 2024

Not sure how to reproduce. I thought i might be nushell, or your Ruby - but I tested both and see the colors.

from bashly.

DannyBen avatar DannyBen commented on September 23, 2024

I went with the "if you can't fix it, eliminate it" approach. The prompt is now colorless, and looks like the bashly logo:
$> bashly

from bashly.

DannyBen avatar DannyBen commented on September 23, 2024

Released in 1.0.6.

from bashly.

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.