Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
apk-tools
Commits
595c6659
Commit
595c6659
authored
Apr 22, 2011
by
Timo Teräs
Browse files
apk: default screen width 70 if ioctl says 0 as width
parent
cec1fa2b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/apk.c
View file @
595c6659
...
...
@@ -249,7 +249,7 @@ static void setup_terminal(void)
setvbuf
(
stderr
,
NULL
,
_IOLBF
,
BUFSIZ
);
if
(
ioctl
(
STDERR_FILENO
,
TIOCGWINSZ
,
&
w
)
==
0
)
apk_screen_width
=
w
.
ws_col
;
else
if
(
apk_screen_width
==
0
)
apk_screen_width
=
70
;
if
(
isatty
(
STDOUT_FILENO
)
&&
isatty
(
STDERR_FILENO
)
&&
isatty
(
STDIN_FILENO
))
apk_flags
|=
APK_PROGRESS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment