Anshuman Khanna
banner
anshumankhanna.bsky.social
Anshuman Khanna
@anshumankhanna.bsky.social
Software dev | Live project https://grievance.msit.in/ | I'll make everything open source
I went through that and as far as I can tell it is doing the formatting, that's just a parser code to set parameters of the escape sequence

I couldn't find where the parsed tokens are then being processed but I have good faith they are, because of the other thing I mentioned (git bash + deno works)
April 24, 2025 at 7:02 PM
It has to be a node.js problem and not a git bash problem because using 'deno' instead of node makes all the ANSI work
April 24, 2025 at 6:59 PM
Pitch this use to apple
April 24, 2025 at 2:27 PM
bsky.app/profile/ansh...

Here's the entire code

This is the entire file, nothing else

Running it with

node --experimental-strip-types

In ps it works, in bash doesn't work properly
Used \x1b[am

Where 'a' are values from 1-9
April 23, 2025 at 6:47 PM
Btw Deno with git bash, all ANSI work
April 23, 2025 at 6:12 PM
My problem isn't that the text got hidden at [8m, I know that hides

The thing is

Node with powershell, all ANSI work
Node with git bash, only two out of the 9 ANSI work

That's the issue

Why does git bash have such weird issues?
April 23, 2025 at 6:11 PM
Used \x1b[am

Where 'a' are values from 1-9
April 23, 2025 at 4:51 PM
Rust haters won't like the fact that rolldown is taking over
April 23, 2025 at 2:58 AM
Where else do you have to read it?
April 23, 2025 at 2:56 AM
I think I'll just build something using a Trie for regex one day and try to get it pushed in every language

I don't know if this is what is being used in current implementations
April 22, 2025 at 11:30 AM
Oh you are saying how some languages have weird working with regex

Yeah, I think JS has the most quirky one, never tried in Python though, just JS and C++
April 22, 2025 at 11:29 AM