Live data from Hacker News

Charm – Tools to make the command line glamorous

charm.sh

181–190 of 223 posts

Re: Charm – Tools to make the command line glamorous

#182

Earlier quoted context omitted.

It surely is impressively well made. I am wondering though whether Charm actually qualifies as a text-based interface. Isn't it more like a replication of a graphical user interface, with windows and tabs etc.? If one's issues with working on the command line has always been that there are no "drawn" windows GUI elements, then this of course is a revelation, but we already have high-res versions of Charm, i.e. modern…

There is no doubt, is a text based interface. The common term is text user interface (TUI vs GUI), and every app rendered as characters in a shell have been always considered TUI, whether they had windows, tabs, dropdowns and whatnot

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".

Re: Charm – Tools to make the command line glamorous

#183
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)

In that case, you can use something like Questionary.

https://github.com/tmbo/questionary

Re: Charm – Tools to make the command line glamorous

#184
post #46

This looks cool! But: These mostly aren't command line applications, they're mostly terminal applications. They're no more "command-line" than running "firefox" from your shell is "command-line". There's a big difference... a terminal application takes over your terminal and doesn't have all the usual advantages of command-line applications used from the shell, like history and easy scripting.

Ahh, after thinking about it for a moment, I see what you mean.

Yes, there is a difference. It might be better if they were called 'terminal applications', i.e. an app you run from the terminal, instead of command-line tools.

To put it another way,

sed -i -e 's/command-line/terminal-app'

:)

Regardless of name (while agreeing that names matter), they are some cool tools. I think I'm going to switch to Glow for my default markdown reader.

Re: Charm – Tools to make the command line glamorous

#185

Really nice design. I like CLI and TUI, they can be both practical and aesthetically pleasing, in my opinion the "beauty" of tools is something that can improve the quality of life for the end-user. But I have a few negative remarks. - The glow.exe app on Windows is 19M, the launch is fast and I love that it is self contained and portable, but I think that even a pretty markdown viewer could be compiled to a much sma…

Go produces large binaries (15Mb+) by default (it optimises for startup time not storage space). There are options to reduce this, but they involve tradeoffs so here be dragons.

Go code tends to be verbose (if you come from a more succinct language). Again, this is a result of design choices made by the Go language designers: optimising for simplicity and explicitness (lack of magic).

I've been coding in Go for years, and find it incredibly readable compared to other languages. I now find less-verbose code harder to read.

Re: Charm – Tools to make the command line glamorous

#186
post #46

This looks cool! But: These mostly aren't command line applications, they're mostly terminal applications. They're no more "command-line" than running "firefox" from your shell is "command-line". There's a big difference... a terminal application takes over your terminal and doesn't have all the usual advantages of command-line applications used from the shell, like history and easy scripting.

> 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.

Re: Charm – Tools to make the command line glamorous

#187
post #120

Earlier quoted context omitted.

I mean Hyper is really just an IDE that's REPL focused and so it makes as much sense to be in Electron as VSCode.

It makes ALOT of sense that vscode is written in electron. Why would you think otherwise?

I don't read the parent comment as saying that vscode shouldn't be written in electron. I read it as the opposite, that they are defending the terminal emulator using electron.

Also, out of interest, what reasons would you give for vscode being written with electron?

Re: Charm – Tools to make the command line glamorous

#188
post #147

Earlier quoted context omitted.

Those are cool but they are still using just ANSI color codes and what not. I think it is great but not ideal or optimized than if terminals would implement a native markdown or markup renderer.

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.

Re: Charm – Tools to make the command line glamorous

#189

Earlier quoted context omitted.

There is no doubt, is a text based interface. The common term is text user interface (TUI vs GUI), and every app rendered as characters in a shell have been always considered TUI, whether they had windows, tabs, dropdowns and whatnot

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.

Re: Charm – Tools to make the command line glamorous

#190

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…

Or just add a VM or user which specifically is used for such, and then destroyed. (By default, they still have your username and IP address, unless you take additional steps to obfuscate such)
Post reply on HN