Skip to content

Commit 53e4950

Browse files
committed
update readme. remove folder images
1 parent a1e7d40 commit 53e4950

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ $output->write('hello <info>world<info>');
370370

371371
已经内置了常用的风格:
372372

373-
![alt text](images/output-color-text.png "Title")
373+
![alt text](docs/screenshots/output-color-text.png "Title")
374374

375375
来自于类 `Inhere\Console\Utils\Show`
376376

@@ -425,7 +425,7 @@ echo "Progress:\n";
425425

426426
$i = 0;
427427
while ($i <= $total) {
428-
$bar->send($i);
428+
$bar->send(1);// 发送步进长度,通常是 1
429429
usleep(50000);
430430
$i++;
431431
}

README_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ a php console application library.
1212
- console color support, format message output
1313
- console interactive
1414

15-
[中文README](./README.md)
15+
> [中文README](./README.md)
1616
1717
## project
1818

@@ -174,7 +174,7 @@ $output->write('hello');
174174

175175
#### use color style
176176

177-
![alt text](images/output-color-text.png "Title")
177+
![alt text](docs/screenshots/output-color-text.png "Title")
178178

179179
#### special format output
180180

src/Utils/Show.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ public static function counterTxt($msg, $doneMsg = null)
918918
{
919919
$counter = 0;
920920
$finished = false;
921-
$tpl = (Helper::isSupportColor() ? "\x0D\x1B[2K" : "\x0D\r") . '%d %s';
921+
$tpl = (Helper::supportColor() ? "\x0D\x1B[2K" : "\x0D\r") . '%d %s';
922922
$msg = self::getStyle()->render($msg);
923923
$doneMsg = $doneMsg ? self::getStyle()->render($doneMsg) : null;
924924

@@ -962,7 +962,7 @@ public static function progressTxt($total, $msg, $doneMsg = null)
962962
{
963963
$current = 0;
964964
$finished = false;
965-
$tpl = (Helper::isSupportColor() ? "\x0D\x1B[2K" : "\x0D\r") . "%' 3d%% %s";
965+
$tpl = (Helper::supportColor() ? "\x0D\x1B[2K" : "\x0D\r") . "%' 3d%% %s";
966966
$msg = self::getStyle()->render($msg);
967967
$doneMsg = $doneMsg ? self::getStyle()->render($doneMsg) : null;
968968

0 commit comments

Comments
 (0)