Skip to content

Commit

Permalink
[UPDATE] v1.0.2 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoros committed Nov 13, 2021
1 parent 9101ce1 commit 28b8e27
Showing 1 changed file with 3 additions and 4 deletions.
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.

0 comments on commit 28b8e27

Please sign in to comment.