2 ms·
git works without a pager too. I agree that you will need something like terminfo if you writing a TUI like a pager, but for most CLI programs you only need si
by account42 6y ago
git works without a pager too.
I agree that you will need something like terminfo if you writing a TUI like a pager, but for most CLI programs you only need simple color output and maybe cursor movement on and erasing of the current line and for that terminfo is an unnecessary dependency.
- blueflow 6y agoLine editing is tricky enough that i would recommend a thing like the readline library, which in turn uses ncurses. Just for colored output alone, i agree.