1
0
mirror of http://mpg123.de/trunk/.git synced 2025-08-06 10:02:38 +03:00

mpg123: hack for OS/2 scrolling term

git-svn-id: svn://scm.orgis.org/mpg123/trunk@5094 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2022-05-19 15:13:21 +00:00
parent 34b179dbd2
commit 54cf0f9939

View File

@@ -70,8 +70,10 @@ int term_width(int fd)
#ifdef __OS2__
int s[2];
_scrsize (s);
// It seems like we cannot really use the last character of the
// term and have to stop one short to avoid advancing a line.
if (s[0] >= 0)
return s[0];
return s[0] - 1;
#else
struct winsize geometry;
geometry.ws_col = 0;