Skip to content

Commit

Permalink
[v1.0.2] Merge branch 'release/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoros committed Nov 13, 2021
2 parents fc238b0 + 28b8e27 commit fc6c504
Show file tree
Hide file tree
Showing 51 changed files with 336 additions and 190 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
If you like this project, help me by giving me a star =))<3
</p>

## What is in V1.0.0
## What is in V1.0.2
- Print and println with foreground and background color.
- Support 8-bit 0-255 XTerm colors.
- Get colors by name and theire XTerm code.
- TextEntity class for assign different styles to a single string.
- Pass your TextEntity list with no order and full coverage (v1.0.2)
- clear the terminal.
- delete lines.

Expand Down
5 changes: 5 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## next release

## 1.0.2 (2021-11-13)
### New Features
- Pass your TextEntity list with no order and full coverage.
- Fix delete lines bug.

## 1.0.0 (2021-11-08)
### New Features
- Implement clear feature to clean whole terminal.
Expand Down
7 changes: 3 additions & 4 deletions doc/Utils/00textEntity.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ public class Main {

public static void main(String[] args) {
JTerminal.println(">JTerminal:~ 1.0.0", List.of(//
new TextEntity(0, 1, Color.DARK_SEA_GREEN_7), //
new TextEntity(1, 10, Color.ORANGE), //
new TextEntity(10, 12, Color.DARK_SEA_GREEN_7), //
new TextEntity(12, 18, Color.WHITE)));
new TextEntity(0, 1, Color.DARK_SEA_GREEN_7), //
new TextEntity(10, 12, Color.DARK_SEA_GREEN_7)));
}

}
```

**Please consider that ranges must not overlap and for now give your list of entities in order of ranges and you must cover all of your string with TextEnity/TextEnities(0 -> text.length()). this shortcomes (ranges order and full coverage) will be solve in next versions.**
You can create the list of TextEntities with no range order And it's not necessary to cover all of your text with entities, The uncovered part of text will be print with default foreground and background colors.
8 changes: 4 additions & 4 deletions javadoc/allclasses-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>All Classes (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>All Classes (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="All Classes (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="All Classes (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
6 changes: 3 additions & 3 deletions javadoc/allclasses.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>All Classes (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>All Classes (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions javadoc/allpackages-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>All Packages (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>All Packages (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="All Packages (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="All Packages (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions javadoc/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>Constant Field Values (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>Constant Field Values (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Constant Field Values (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="Constant Field Values (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions javadoc/deprecated-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>Deprecated List (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>Deprecated List (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Deprecated List (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="Deprecated List (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions javadoc/help-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>API Help (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>API Help (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="API Help (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="API Help (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
10 changes: 6 additions & 4 deletions javadoc/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>Index (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>Index (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Index (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="Index (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down Expand Up @@ -1349,6 +1349,8 @@ <h2 class="title">T</h2>
</dd>
<dt><span class="memberNameLink"><a href="io/github/shuoros/jterminal/util/TextEntity.html#%3Cinit%3E()">TextEntity()</a></span> - Constructor for class io.github.shuoros.jterminal.util.<a href="io/github/shuoros/jterminal/util/TextEntity.html" title="class in io.github.shuoros.jterminal.util">TextEntity</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="io/github/shuoros/jterminal/util/TextEntity.html#%3Cinit%3E(int,int)">TextEntity(int, int)</a></span> - Constructor for class io.github.shuoros.jterminal.util.<a href="io/github/shuoros/jterminal/util/TextEntity.html" title="class in io.github.shuoros.jterminal.util">TextEntity</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="io/github/shuoros/jterminal/util/TextEntity.html#%3Cinit%3E(int,int,io.github.shuoros.jterminal.ansi.Color)">TextEntity(int, int, Color)</a></span> - Constructor for class io.github.shuoros.jterminal.util.<a href="io/github/shuoros/jterminal/util/TextEntity.html" title="class in io.github.shuoros.jterminal.util">TextEntity</a></dt>
<dd>&nbsp;</dd>
<dt><span class="memberNameLink"><a href="io/github/shuoros/jterminal/util/TextEntity.html#%3Cinit%3E(int,int,io.github.shuoros.jterminal.ansi.Color,io.github.shuoros.jterminal.ansi.Color)">TextEntity(int, int, Color, Color)</a></span> - Constructor for class io.github.shuoros.jterminal.util.<a href="io/github/shuoros/jterminal/util/TextEntity.html" title="class in io.github.shuoros.jterminal.util">TextEntity</a></dt>
Expand Down
10 changes: 5 additions & 5 deletions javadoc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>Overview (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>Overview (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Overview (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="Overview (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down Expand Up @@ -93,7 +93,7 @@
</nav>
</header>
<div class="header">
<h1 class="title">JTerminal 0.0.1-SNAPSHOT API</h1>
<h1 class="title">JTerminal 0.0.2 API</h1>
</div>
<main role="main">
<div class="contentContainer">
Expand Down
16 changes: 8 additions & 8 deletions javadoc/io/github/shuoros/jterminal/JTerminal.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>JTerminal (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>JTerminal (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="JTerminal (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="JTerminal (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down Expand Up @@ -139,7 +139,7 @@ <h2 title="Class JTerminal" class="title">Class JTerminal</h2>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.1.0</dd>
<dt><span class="simpleTagLabel">Version:</span></dt>
<dd>1.0.0</dd>
<dd>1.0.2</dd>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Soroush Shemshadi</dd>
<dt><span class="seeLabel">See Also:</span></dt>
Expand Down Expand Up @@ -209,7 +209,7 @@ <h3>Method Summary</h3>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#delete(int)">delete</a></span>&#8203;(int&nbsp;line)</code></th>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#delete(int)">delete</a></span>&#8203;(int&nbsp;lines)</code></th>
<td class="colLast">
<div class="block">Delete last given <code>line</code>s befour cursor.</div>
</td>
Expand Down Expand Up @@ -613,11 +613,11 @@ <h4>delete</h4>
<ul class="blockListLast">
<li class="blockList">
<h4>delete</h4>
<pre class="methodSignature">public static&nbsp;void&nbsp;delete&#8203;(int&nbsp;line)</pre>
<pre class="methodSignature">public static&nbsp;void&nbsp;delete&#8203;(int&nbsp;lines)</pre>
<div class="block">Delete last given <code>line</code>s befour cursor.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>line</code> - : Lines number you want to delete.</dd>
<dd><code>lines</code> - : Lines number you want to delete.</dd>
</dl>
</li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions javadoc/io/github/shuoros/jterminal/Main.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>Main (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>Main (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Main (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="Main (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions javadoc/io/github/shuoros/jterminal/ansi/Attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>Attribute (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>Attribute (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Attribute (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="Attribute (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions javadoc/io/github/shuoros/jterminal/ansi/Color.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>Color (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>Color (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Color (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="Color (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.8) on Mon Nov 08 13:16:48 IRST 2021 -->
<title>Uses of Class io.github.shuoros.jterminal.ansi.Attribute (JTerminal 0.0.1-SNAPSHOT API)</title>
<!-- Generated by javadoc (11.0.8) on Sat Nov 13 14:27:48 IRST 2021 -->
<title>Uses of Class io.github.shuoros.jterminal.ansi.Attribute (JTerminal 0.0.2 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-11-08">
<meta name="dc.created" content="2021-11-13">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
Expand All @@ -21,7 +21,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class io.github.shuoros.jterminal.ansi.Attribute (JTerminal 0.0.1-SNAPSHOT API)";
parent.document.title="Uses of Class io.github.shuoros.jterminal.ansi.Attribute (JTerminal 0.0.2 API)";
}
}
catch(err) {
Expand Down
Loading

0 comments on commit fc6c504

Please sign in to comment.