File tree 4 files changed +7
-22
lines changed
4 files changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -157,32 +157,17 @@ $url = 'http://no2.php.net/distributions/php-7.2.5.tar.bz2';
157
157
$down = Download::file($url, '');
158
158
159
159
// $down->setShowType('bar');
160
+ // $down->setDebug(true);
160
161
$down->start();
161
162
```
162
163
163
- ** Progress bar output: **
164
+ ** Progress bar**
164
165
165
- ``` text
166
- Connected...
167
- Mime-type: text/html; charset=utf-8
168
- Being redirected to: http://no2.php.net/distributions/php-7.2.5.tar.bz2
169
- Connected...
170
- FileSize: 14280 kb
171
- Mime-type: application/octet-stream
172
- [========================================> ] 40% (3076/7590 kb)
173
- ```
174
-
175
- ** Progress text output:**
166
+ ![ down-file-bar] ( ./example/down-file-bar.jpg )
176
167
177
- ``` text
178
- Download: http://no2.php.net/distributions/php-7.2.5.tar.bz2
179
- Save As: /path/to/php-7.2.5.tar.bz2
168
+ ** Progress text**
180
169
181
- Connected ...
182
- Got the file size: 14280 kb
183
- Found the mime-type: application/octet-stream
184
- Made some progress, downloaded 641 kb so far
185
- ```
170
+ ![ down-file-txt-bar] ( ./example/down-file-txt-bar.jpg )
186
171
187
172
## Projects
188
173
Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ public static function isSupportColor(): bool
149
149
}
150
150
151
151
$ stream = STDOUT ;
152
- if (\ DIRECTORY_SEPARATOR === '\\' ) {
153
- return (\ function_exists ('sapi_windows_vt100_support ' )
152
+ if (DIRECTORY_SEPARATOR === '\\' ) {
153
+ return (function_exists ('sapi_windows_vt100_support ' )
154
154
&& @sapi_windows_vt100_support ($ stream ))
155
155
|| false !== getenv ('ANSICON ' )
156
156
|| 'ON ' === getenv ('ConEmuANSI ' )
You can’t perform that action at this time.
0 commit comments