Path: csiph.com!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Parsing multi-byte keystrokes Date: Mon, 26 Jun 2023 12:18:03 -0700 Organization: None to speak of Lines: 43 Message-ID: <87o7l2yqvo.fsf@nosuchdomain.example.com> References: <87ilbb13tu.fsf@nosuchdomain.example.com> <877crq1va9.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="a44f767d52f7a9230c899799d3560062"; logging-data="1104438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YXZBS/uCWHOkWdPEukoA6" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:VmBFNudyzcpIM0s5aTTTKlujGWI= sha1:Q4r8VzyADCBySWcPcidCzkdABoE= Xref: csiph.com comp.lang.c++:90756 "R.Wieser" writes: > Keith, > >> The term "console", on Unix-like systems, typically refers to the >> system console, sometimes accessed via /dev/console, while a "terminal" >> is a more general term for a text-based interface, usually accessed via >> /dev/tty* or similar. (A typical user might never see the console.) > > As I said, the difference between them is /at best/ confusing. That you > than introduce "system console" without offering any explanation to it does > not help either. :-| Apparently it helped you to find more information. > I found a link which says that all things are terminals, and that a console > is just a special one (your "system console"). > > In that case I'm working on/in the system console. > > Though I'm going to have a hard time remembering that ALT F1 is a console, > but that ALT F2...F6 are terminals (I probably, likely won't. Too little, > if any, distinction). It's fairly common to use the word "console" (perhaps incorrectly) to refer to terminals in general. On Linux-based systems, and probably others, all the Alt-FN screens are *virtual consoles*. They're supported by the OS more or less directly, and they don't depend on any GUI system like X11. Terminal emulators typically run as windows under X11 (or Wayland, or whatever). And since this is all specific to Unix-like systems, and perhaps more specifically to Linux-based systems, you might get better information in a Unix-specific newsgroup, perhaps comp.unix.programmer. (This is comp.lang.c++, and I don't think I've seen any C++ code in this thread, and the libraries we've been discussing are C, not C++.) [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */