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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user