Skip to content

Commit 052ecbc

Browse files
Merge pull request #7 from MaplePHP/develop
Add middot to ANSI
2 parents 098df82 + d8ee5f3 commit 052ecbc

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Ansi.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ public function line(int $lineLength, int $color = 90): string
8989
return $line;
9090
}
9191

92+
/**
93+
* Get middot ANSI character
94+
* @return string
95+
*/
96+
public function middot(): string
97+
{
98+
if ($this->isSupported()) {
99+
return "\u{2022}";
100+
}
101+
return ".";
102+
}
103+
92104
/**
93105
* Bold input
94106
*

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "maplephp/prompts",
33
"type": "library",
4-
"version": "v1.1.1",
4+
"version": "v1.1.2",
55
"description": "PHP Prompts is a pretty, interactive, lightweight, and user-friendly CLI (Command Line Interface) PHP library designed for seamless use across Linux, Unix, Darwin, and Windows.",
66
"keywords": [
77
"php",

0 commit comments

Comments
 (0)