News for hackers. Stuff that matters.
Re:Tig – Text-mode interface for Git by masklinn on Wednesday December 16, 2020 @11:24AM (#25444407)
tig is a curses program, it's an interactive terminal GUI (a TUI), as opposed to a CLI e.g. you can browse and interact with your log rather than dump it in a pager and need a separate terminal to dive into a commit or whatever.

magit is a good alternative, it's not exactly a TUI because it works entirely inside emacs and uses emacs concepts, but it's entirely text-based.

Re:Tig – Text-mode interface for Git by minhm on Wednesday December 16, 2020 @09:56PM (#25451860)
magit is a good alternative, it's not exactly a TUI because it works entirely inside emacs

Emacs also has TUI (when running in the Linux terminal or run `emacs -nw') so magit should also has TUI (at least on GNU/Linux where I use Emacs on).

Re:Tig – Text-mode interface for Git by tnorthcutt on Wednesday December 16, 2020 @11:59AM (#25444892)
Interesting, thank you! I think I need go learn more about what "curses" means
Re:Tig – Text-mode interface for Git by acoard on Wednesday December 16, 2020 @12:23PM (#25445293)
"Curses" is a library for writing, well, TUIs[0]. I get that's a bit circular, so let me explain.

With a normal CLI program, you essentially just output to STDOUT line by line. You type `git status`, and the git program basically does `print(status)`. Then you're back to your terminal and you type another command, git or otherwise.

A "curses" program renders fundamentally different. It's much more like how video games render. Every time it renders, it'll draw to the entire screen. You're not in an empty command line where you can type any command, rather you are "in" the application. Take a look at this screenshot [1]. You can imagine how pressing up/down keys might move which input is selected. If you want to get back to the normal terminal you have to quit the TUI application.

While not commonly thought of TUIs, generally vi/emacs/lynx/etc would all technically qualify (tho people might give you a strange look if you called them TUIs). To be clear, these do not use curses. They kind of predate curses and just wrote it manually. Curses is not a requirement ffor a TUI, but is by far the most common library to use when writing TUIs now-a-days.

[0] https://en.wikipedia.org/wiki/Curses_(programming_library)

[1] https://i.stack.imgur.com/oD7mJ.png

Re:Tig – Text-mode interface for Git by ephimetheus on Wednesday December 16, 2020 @05:01PM (#25449382)
Actually, curses uses two buffers and diffs them so that only the delta is sent „over the wire“. In graphics, everything is redrawn every frame usually.
Re:Tig – Text-mode interface for Git by httpsterio on Wednesday December 16, 2020 @01:51PM (#25446677)
Curses is just a library for writing command line interfaces. Normally a CLI just deals with the text buffer pushing content and the user inputting textual commands, curses allows for a bit more control like with panes, dynamic areas and giving the user more control on how to input commands.
Re:Tig – Text-mode interface for Git by ezequiel-garzon on Wednesday December 16, 2020 @06:13PM (#25450076)
Curses is just a library for writing command line interfaces.

You mean text user interfaces, right?