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-19 07:03:02
|
Am Wed, 18 May 2022 18:52:27 -0700 schrieb Dave Yeo <dav...@gm...>: > On 05/18/22 08:12 AM, Thomas Orgis wrote: > Ok, operator error previously. It consistently outputs "Note: stderr > terminal width: 0" no matter the terminal width. So … what do we do with that?! Is our code broken? Isn't OS/2 able to provide a terminal width?! #ifdef __OS2__ int s[2]; _scrsize (s); if (s[0] >= 0) return s[0]; #else What is wrong here? > What it does is cause an extra blank line below the xxx's before the > prompt returns. Change the 80 to 79 and that line goes away. > Seems that there is a CR or such printed at the end of the line so > effectively it is 79 chars without scrolling. A CR shall not trigger advancing a line. That's the point of it. If this is the case, it's a bug in your terminal. So we need to solve this second problem. I can do an ifdef(__OS2__) limit = limit - 1; … but first, we need to be able to get a proper width value! You could put the above snippet with printout into a little stand-alone program for easier testing. Do you have different terminal emulators to try? Alrighty then, Thomas |