5
Console
Many applications choose to interact with the console. The command-line of the console is ideal for logging events, configuring applications, accepting user input, accessing developer tools, and more.
Console applications that rely entirely on a command-line interface (CLI) for interacting with users are not uncommon and are an acceptable alternative to a graphical user interface (GUI). Like GUI applications, command-line user interfaces can have a good or bad design. Note that the best practices for designing a CLI for a console application are different from those of a GUI. This chapter, however, focuses on the technical capabilities for reading and writing to a console, not design choices.
Several commands exist to read and write ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access