Live data from Hacker News

Charm – Tools to make the command line glamorous

charm.sh

191–200 of 223 posts

Re: Charm – Tools to make the command line glamorous

#191
post #186

Earlier quoted context omitted.

> There's a big difference... a terminal application takes over your terminal What do you mean "takes over"? You can always open another tab inside your terminal. You can use tmux to open multiple panes inside the same tab. > and doesn't have all the usual advantages of command-line applications used from the shell, like history and easy scripting. That may be true but at least TUI apps can be truly platform and DE i…

Your typical command line application on Unix can be piped into another one, or get its input from a file. That's not what Charm is about.

Sure, that's okay, it helps build TUIs rather than CLIs. I'll gladly take TUIs over their GUI counterparts in most cases except where it isn't practical such as image editing.

A good example is the lf file manager.

https://github.com/gokcehan/lf

I was using ranger before this but yeah, I have no reason to use GUI file managers anymore.

Re: Charm – Tools to make the command line glamorous

#192
post #10

, I like it, but I am not sure about diving into Golant again. Any way to use it in other languages? Or do I just keep poking at Rich[1] in Python? [1] https://rich.readthedocs.io/en/latest/

The one thing that jumps out at me that this has that Rich doesn't is the List selector thing and Viewports (Rich might have that but I haven't looked too hard)

Rich is the low level part, for list select or viewports, you need the high level lib from the same author: textual (https://github.com/willmcgugan/textual).

Re: Charm – Tools to make the command line glamorous

#193
post #147

Earlier quoted context omitted.

Wait, how would that even work? Do you want something like SIXL support but for markdown? Encode your markdown doc in an unholy escape sequence and throw it at the terminal?

what is SIXL? when googling I can only find some random ETF that I don't think you're talking about.

It's called "Sixel", and it's a way to print graphics in the terminal:

https://en.wikipedia.org/wiki/Sixel

Re: Charm – Tools to make the command line glamorous

#194
post #147

Earlier quoted context omitted.

Wait, how would that even work? Do you want something like SIXL support but for markdown? Encode your markdown doc in an unholy escape sequence and throw it at the terminal?

what is SIXL? when googling I can only find some random ETF that I don't think you're talking about.

I think the parent refers to sixel: https://saitoha.github.io/libsixel/

Re: Charm – Tools to make the command line glamorous

#195

Earlier quoted context omitted.

OK. Then I probably should have asked whether there is anything gained by "drawing" a GUI with characters. Don't get me wrong, I spend most of my day on the command line. But I never thought "this would be so much better if it was more like windows / mac os".

I do think so. Terminal applications tend to be really accessible.

You said accessible, so would you expect terminal applications to work with screen readers for example? What about localisation?

Re: Charm – Tools to make the command line glamorous

#196

Earlier quoted context omitted.

I do think so. Terminal applications tend to be really accessible.

You said accessible, so would you expect terminal applications to work with screen readers for example? What about localisation?

> would you expect terminal applications to work with screen readers for example

Can you explain to me any way in which they might not, bearing in mind they're basically text.

Re: Charm – Tools to make the command line glamorous

#197
post #76

Earlier quoted context omitted.

> I can't quite put my finger on what I like about it so much. I can. Doesn't require a 1.5GB build directory to make a 500MB binary that uses 3GB of RAM to display a chat client/music player/etc.

Also, every app uses the same font and colors, there is no animation, its very responsive.

That's definitely not true. While fonts may be the same, colours are definitely not. Many terminals support a very large array of colours. Lots of tools have animations for progress bar, and a shell us no guarantee of being responsive. Anything that displays git statuses in the prompt will take multiple seconds to be ready on a large project, and many will just silently pause while they chug away at whatever they're doing.

In terms of responsiveness, there are plenty of terminal based apps that respond poorly to window resizing (the flickerkng is incredibly frustrating to me), or just don't handle aspect ratio changes at all and clip the ends of lines. Some tui applications don't clear their screen buffer properly on quit so completely break scrolling back the terminal. Many terminals really suck for performance and can really really chug if you accidentally dump a large JSON file to the terminal, for example. That's not responsive at all.

Re: Charm – Tools to make the command line glamorous

#199

Earlier quoted context omitted.

Looks cool! Are there any security risks posed by ssh'ing into an unknown server?

By default, you are probably uniquely identifiable: the SSH client sends your public keys, and sites like GitHub and GitLab publish the public keys for each account too. Someone made a demonstration SSH server a few years back that would greet you by GitHub username based on this, but I can’t immediately find it. If you don’t specify a username, your local account name will be used and thereby disclosed. Much more se…

    ssh whoami.filippo.io
Post reply on HN