▲ 112 ▼ Why I Prefer CLI and TUI over GUI - alavi.me (alavi.me) submitted 6 months ago by somegeek@programming.dev to c/linux@lemmy.ml 52 comments fedilink hide all child comments
[–] Levi@lemmy.ca 6 points 6 months ago (2 children) Thanks! I guess something like vim would count as a TUI then. permalink fedilink source parent hideshow 4 child comments replies: [–] thingsiplay@lemmy.ml 4 points 6 months ago Yes. Think of any terminal application with an interactive user interface, that mimics a GUI. Something that is not just controlled by commandline options like grep and sed in example. permalink fedilink source parent [–] Hawke@lemmy.world 2 points 6 months ago (1 child) I’d say vi is in a fuzzy grey area below a tui. It’s more than a cli but shares a lot with cli programs; it pretty much has its own command line built in. At the same time it has nothing like dialog box or menus like normal tui programs. permalink fedilink source parent hideshow 2 child comments replies: [–] Ferk@lemmy.ml 5 points 6 months ago* (last edited 6 months ago) (1 child) Personally, I feel that if it uses control characters to update the screen in previous positions, altering the scroll buffer, moving beyond where the cursor is and redrawing the screen, then it's a TUI. CLI programs only output plain text in a stream, using just control characters for coloring and formatting, and if they do any re-drawing it's only for the current line (eg. progressbars and so). So.. even something like less is a TUI program.. but things like more or sed would be CLI programs. permalink fedilink source parent hideshow 2 child comments replies: [–] Hawke@lemmy.world 2 points 6 months ago Fair enough. I’d never consider less to be a TUI program. permalink fedilink source parent
[–] thingsiplay@lemmy.ml 4 points 6 months ago Yes. Think of any terminal application with an interactive user interface, that mimics a GUI. Something that is not just controlled by commandline options like grep and sed in example. permalink fedilink source parent
[–] Hawke@lemmy.world 2 points 6 months ago (1 child) I’d say vi is in a fuzzy grey area below a tui. It’s more than a cli but shares a lot with cli programs; it pretty much has its own command line built in. At the same time it has nothing like dialog box or menus like normal tui programs. permalink fedilink source parent hideshow 2 child comments replies: [–] Ferk@lemmy.ml 5 points 6 months ago* (last edited 6 months ago) (1 child) Personally, I feel that if it uses control characters to update the screen in previous positions, altering the scroll buffer, moving beyond where the cursor is and redrawing the screen, then it's a TUI. CLI programs only output plain text in a stream, using just control characters for coloring and formatting, and if they do any re-drawing it's only for the current line (eg. progressbars and so). So.. even something like less is a TUI program.. but things like more or sed would be CLI programs. permalink fedilink source parent hideshow 2 child comments replies: [–] Hawke@lemmy.world 2 points 6 months ago Fair enough. I’d never consider less to be a TUI program. permalink fedilink source parent
[–] Ferk@lemmy.ml 5 points 6 months ago* (last edited 6 months ago) (1 child) Personally, I feel that if it uses control characters to update the screen in previous positions, altering the scroll buffer, moving beyond where the cursor is and redrawing the screen, then it's a TUI. CLI programs only output plain text in a stream, using just control characters for coloring and formatting, and if they do any re-drawing it's only for the current line (eg. progressbars and so). So.. even something like less is a TUI program.. but things like more or sed would be CLI programs. permalink fedilink source parent hideshow 2 child comments replies: [–] Hawke@lemmy.world 2 points 6 months ago Fair enough. I’d never consider less to be a TUI program. permalink fedilink source parent
[–] Hawke@lemmy.world 2 points 6 months ago Fair enough. I’d never consider less to be a TUI program. permalink fedilink source parent