▲ | layer8 a day ago | ||||||||||||||||||||||||||||||||||||||||
I fail to see the difference between REPL and CLI here. Any line-based interactive interface where you type commands is a CLI, like for example the ftp or mysql clients in interactive mode. Or, indeed, ed. | |||||||||||||||||||||||||||||||||||||||||
▲ | MobiusHorizons a day ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
Personally I usually make the distinction based on whether the process has to switch the tty to raw mode and overwrites the full screen (typically using ncurses), but it sounds like the person you are replying to makes the distinction in whether the program needs user input while executing. I guess such programs are more likely to work in pipelines or shell scripts | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
▲ | kristjansson a day ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||
Could you run it on an actual teletype without consuming an entire forest worth of paper? That’s a CLI. Otherwise it’s a TUI. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
▲ | Brian_K_White a day ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
They are obviously "command line interfaces" in that the interface is that you enter lines of commands. They are equally obviously different from the non-interative interface where all input is provided in the command line arguments and other shell syntax (pipes, redirection). ls is a cli app. bash is an interative app that provides the cli environment in which you use ls. I fail to see what is gained by trying make the meaning of "cli app" unclear when it definitely has an understood meaning, just because you can technically assemble the same words to mean other things. Sure in certsin contexts where you are speaking more geneticslly and more abstractly like in some research paper you may refer to a wide range of things all as "command line interface". But so what? How does noting that help in this context? (It does not) | |||||||||||||||||||||||||||||||||||||||||
|