Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
TUI for lobste.rs, Written in Rust (wezm.net)
77 points by goranmoomin on Oct 26, 2019 | hide | past | favorite | 18 comments


Can somebody explain why we need another acronym that appears to mean the same thing as CLI?

Edit: Gotta love these downvotes. Punishing people for trying to patch holes in their knowledge is a great teaching strategy. Stay curious, folks


A TUI is not a CLI, but a GUI that 'happens' to render in a terminal environment, restricted to the features available there. (mostly ANSI escape codes)

It's a common acronym.


> It's a common acronym...

Thanks! Learned something new today.



Do you mean TUI (Terminal User Interface)? It is not the same as a CLI (Command Line Interface). A CLI is text-prompt based: run a single command, get a response.

A TUI is an interactive program with keybindings, where one can navigate around, do actions and the screen will update to reflect the new state. Basically like a X11/win32 GUI, but inside a terminal window.


Ironically the best CLIs are also TUIs, but unix shells don't really seem to have caught onto that yet. For instance, in bash/fish/zsh, why can't I scroll up and mouse click on a command I ran earlier to edit and run it again? I can do that in my scheme repl in emacs. It's a richer experience.


> Punishing people for trying to patch holes in their knowledge is a great teaching strategy.

I didn't downvote you, but the general tone of the comment is a bit sarcastic...? It hears like that people has made up another useless word as the same way people criticizing things like 'JAMstack' or 'Big Data', etc...


You're right that your original comment was fine, but the edit breaks the guidelines, which guarantees further downvotes. Please review https://news.ycombinator.com/newsguidelines.html all the way to the end.


I know, and almost never mention downvotes, but in this case I think it worth mentioning because it's such a common antipattern:

https://xkcd.com/1053/


It doesn't mean the same. It doesn't have a command line (although it might be started from one), but a text-based UI inside the application, so it isn't a CLI, but a TUI.


If it says CLI, I tend to think of it as a normal command that runs and spits out some output (or nothing). A TUI means a full-screen, long-running, interactive application.

So if this were a CLI for lobste.rs, I'd assume it just fetches the stories and prints them.


Git is a CLI, lazygit is a TUI


This article leaves me with more questions than answers after reading it. Has the author written a TUI for lobste.rs in another language before? How was the experience different by using Rust? Where there any "Aha!" moments during this exercise which makes the author think that Rust could replace other languages in their daily work?


I mean, the author probably just picked Rust as a language because they like Rust, the same way that most people pick languages for small projects.


Yes... but this hit the front page of Hacker News: why? Just because it has "Rust" in the title? I was hoping for a little insight or, you know, _news_...


Every other year there is a trendy language, and if you write a Tetris clone with it you can write a blog post about it. Nowadays it's Rust, tomorrow it will be something else.

Project idea: a visualization of trendy languages on HN, written in Kotlin


Terminal-based interfaces for HN-like websites are generally popular on HN.


> but this hit the front page of Hacker News

Because it has rust in the title.

Its community have a disproportionate tendency to shove generally unninteresting content into frontpages.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: