Fork me on GitHub
#babashka
<
2022-03-02
>
edannenberg22:03:31

What are the chances of getting https://github.com/fusesource/jansi support for Babashka? Would enable usage of projects like https://github.com/pmonks/spinner 🥺

borkdude22:03:41

That chance is fairly low, given that there are pure Clojure alternatives that already work with bb: • https://github.com/AvisoNovate/prettyhttps://github.com/trhura/clojure-term-colors

borkdude22:03:12

@UKFSJSM38 you have also implemented a spinner in lsp right? when invoking it from the command line? I see some ansi stuff here too: https://github.com/clojure-lsp/clojure-lsp/blob/7a263482fcffde7a3777b9dee990d0516c6bd6ac/lib/src/clojure_lsp/diff.clj#L43

lukasz22:03:53

Wow, that's a lot of java code for what is effectively concatenating magic strings (like here: https://github.com/ams-clj/clansi/blob/master/src/clansi/core.clj)

lukasz22:03:10

Unless that java lib does more than just colors and escape sequences

ericdallo22:03:45

Yes @U04V15CAJ I was trying to avoid adding one more lib 😅

borkdude22:03:22

@UKFSJSM38 very good, where is that spinner located in the code? I guess it's just printing slashes/hyphens + backspaces right?

borkdude22:03:32

ams-clj/clansi also just works with bb btw

ericdallo22:03:11

The \r does the magic

edannenberg22:03:25

Thanks, that should get me going! 👍