Re: [mpg123-devel] Please test new network code in/out of mpg123 (now with HTTPS support)!
Brought to you by:
sobukus
From: Thomas O. <tho...@or...> - 2022-05-15 05:40:16
|
Am Sun, 15 May 2022 07:28:48 +0200 schrieb Thomas Orgis <tho...@or...>: > So, the question now is if we can extend that to reading a single key from the terminal. > > Does your code work? It should be apparent in the compact tag info printout with fields sharing a line. Or you just add a printf in term_width(). > > What is nagging me: It did work with the previous posix code. You did get the error about terminal attributes before (e.g. with 1.29.3), right? That means the width detection did work, just not the proper setup. In fact, we did exactly what you propose now … int term_width(int fd) { #ifdef __EMX__ /* OS/2 */ int s[2]; _scrsize (s); if (s[0] >= 0) return s[0]; #else … but under __EMX__ ifdef. So is EMX still present or not? I guess we need a writeup of the discussion so far … Alrighty then, Thomas |