Live data from Hacker News

Charm – Tools to make the command line glamorous

charm.sh

211–220 of 223 posts

Re: Charm – Tools to make the command line glamorous

#211

TUIs over ssh/telnet can be a lot of fun. Especially in cases where multiple people can interact with each other on the server. It simplifies the programming model as you only have one state on the backend that you render to multiple connections. Syncing up everyone becomes trivial. You can also use some React concepts, like rendering a virtual TUI and sending just the right set of minimal escape sequences back to th…

Or the awesome https://github.com/rastapasta/mapscii :))

Re: Charm – Tools to make the command line glamorous

#212

Earlier quoted context omitted.

> I do wish it was easier to select text from the terminal screen without using the mouse. Check out TMUX. TMUX has a copy mode that can be used to navigate the scrollback buffer for any TMUX window/pane and select and copy text. By default, that text is copied to a TMUX paste buffer, but can be copied to the system buffer using a simple command (e.g., `tmux show-buffer | pbcopy` on macOS or `tmux show-buffer | xsel…

This kind of copy and paste is a bummer though since it isn’t aware of word wrapping.

I just checked. TMUX does not insert newlines if there were no newlines in the buffer. That's usually what you want.

Re: Charm – Tools to make the command line glamorous

#213

Earlier quoted context omitted.

Supply chain attacks?

If they put this much effort into planting some backdoor that's going to get burned the second it's used or spotted in the openly published source code they can have it

They are building the supply chain. Who knows who the targets will eventually be; never everyone.

Re: Charm – Tools to make the command line glamorous

#214

Earlier quoted context omitted.

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?

I read it as sarcasm, cause writing a terminal emulator in electron is really a stretch, could be wrong ofc.

At first I was a bit irritated that vscode is build on electron. Then I found code-server, essentially vscode in the browser and fell in love with it. I can run a fully fledged IDE on a PI without using too much ram or CPU power because the client does a lot of the ui heavy lifting. Then also the other way around, I use code-server on my powerful tower pc and can connect to it via vpn to run heavy coding tasks directly on the server while not miss8ng a single IDE feature. I use the metals plug-in to code Scala backend services and it works incredibly well. Much better then using remote desktop applications (nomachine, vnc, xrdp etc.) on the go. It's even better then ssh when the connection is bad, like mosh but for ui.

Re: Charm – Tools to make the command line glamorous

#215
post #99

Earlier quoted context omitted.

I'm young and had the same experience as GP - for me it's just too little said about too many different things, it's hard to tell what 'it' is (and I only realised on the second read through that that's partly because they are many things). Imagine if Amazon had a landing page with headings like 'eShopping', 'Internet', and 'Cashierless Shopping' to describe what the company did. (And worse, then obscured them behind…

They are a company that writes several different tools for developers, not an e-commerce site for the general population. Which tool has a useless description that doesn't tell you what it does? If one tool is interesting to someone they can click it and they are presented with a great Readme that explains it in more detail. It takes like 30 seconds to parse the page and find out if they offer anything that is intere…

You can’t tell if it’s interesting until after you have read the GitHub read me. That’s the problem.

Re: Charm – Tools to make the command line glamorous

#217

Earlier quoted context omitted.

This kind of copy and paste is a bummer though since it isn’t aware of word wrapping.

I just checked. TMUX does not insert newlines if there were no newlines in the buffer. That's usually what you want.

Maybe it varies by version, but I get this behavior all the time.

Re: Charm – Tools to make the command line glamorous

#218
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, natural language is a better command interface than iconic point and click for intermediate to advanced users. The mouse studies that came out of Apple back in the day were based on testing against the mass market so their findings only apply to mom, pop, buddy and sis.

Have there been studies done on "advanced users"? I'm an advanced user and I think mouse based interfaces are great when mixed sensibly with keyboard shortcuts and command search (like VSCode's Ctrl-Shift-P).

I'm not going to ever use the Edit->Copy menu but I'm also not going to learn the shortcut to click the Ublock origin button in Chrome, which I do maybe once a month.

Do you have any evidence for your assertion? It sounds like snobbery.

Re: Charm – Tools to make the command line glamorous

#219
post #52

I love the general renaissance of terminal UI tools we are seeing in the last few years. I can't quite put my finger on what I like about it so much. Something to do with the simplicity and directness of these UIs, guaranteed optimised for efficient keyboard nav, widespread adoption of vim-like navigation keys, and the fact that they link directly with my terminal shell so I can stay entirely in a stream of thought w…

> I love the general renaissance of terminal UI tools we are seeing in the last few years.

Terminals are underused. This is why I push for implementation of all off terminal codes such as double width and height, blink, smooth scrolling, ReGIS, Tek 4010 and so on. I had a small victory long ago by adding 25 and 50% fills in sysdig spectrograms so that running it on the framebuffer console looked better.

Imagine an htop using Tektronix graphics. Or ReGiS.

I managed to convince the Windows Terminal folks to support overline (so I could have a 3270-like status on tmux, where I added overline myself).

Now I got myself into promising to implement Tektronix for VTE.

Re: Charm – Tools to make the command line glamorous

#220

TUIs over ssh/telnet can be a lot of fun. Especially in cases where multiple people can interact with each other on the server. It simplifies the programming model as you only have one state on the backend that you render to multiple connections. Syncing up everyone becomes trivial. You can also use some React concepts, like rendering a virtual TUI and sending just the right set of minimal escape sequences back to th…

Yeah I was just thinking it's about time React Native made it to the command line.
Post reply on HN