Comments (8)
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.
@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.
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:
What does your ruby -v say?
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]
from bashly.
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.
Does this following command make any difference? (added semicolons to the escape):
@DannyBen, not at all:
from bashly.
Not sure how to reproduce. I thought i might be nushell, or your Ruby - but I tested both and see the colors.
from bashly.
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.
from bashly.
Related Issues (20)
- Add key-value parameters HOT 6
- Add support for recursive --help HOT 6
- Build multi-arch docker HOT 2
- Default argument is not validated HOT 6
- Flag arguments with a single hyphen prefix are not working HOT 1
- bash completions can't work properly when the position args used 'allowed:' HOT 3
- Repeatable args don't escape quotation marks HOT 12
- Add option to disable splitting of flags with value for catch_all arguments HOT 9
- Lifecycle for temporary directories HOT 1
- Heredoc indentation issue in bashly generated functions. HOT 9
- The Flag value is detected as an Argument HOT 2
- Showing an additional usage line for forced commands HOT 3
- Is it possible to have no command and take arguments from user ? HOT 3
- Shellcheck failure on repeatable argument with allowed values HOT 3
- Default command is not triggered when only flags are provided HOT 1
- using bashly without ruby or docker HOT 3
- Bashly generated script fails shellcheck rule SC2059 HOT 11
- Allow semi-private commands HOT 5
- THIS_SCRIPT variable HOT 4
- Bug in ini library HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bashly.