Path: csiph.com!news.swapon.de!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 14:35:22 -0700 Organization: None to speak of Lines: 21 Message-ID: <877crpzz39.fsf@nosuchdomain.example.com> References: <87edlz5cax.fsf@bsb.me.uk> <877crq4cbp.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="a44f767d52f7a9230c899799d3560062"; logging-data="1152428"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yfB+mr95bHzxVM1AK1AF1" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:kA/S3XaU1gHrkBwVDy6b2nw58YM= sha1:Ho8sXNZ8Too6GwsoFApl+zIKmAY= Xref: csiph.com comp.lang.c++:90766 "R.Wieser" writes: > Christian, > >> As written above, you can use the termcap or terminfo library. It tells >> you what keystrokes correspond to which keys. > > A quick search shows me that "termcap" is a textfile which as been marked > obsolete and that both are used to translate keystrokes into escape > sequences. There where no results shown in regard to translating escape > sequences back to keystrokes though. > > IOW, do you have any link(s) that show how the latter is supposed to be done > ? termcap and terminfo are specific to Unix-like systems, not to C++. I suggest asking elsewhere. -- 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 */