commit 610f72bcc7cc3acfc4280883683c8fdce36ea559 Author: Anas Elgarhy Date: Thu Mar 24 18:13:42 2022 +0200 init diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..8d9a428 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..30bab2a --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..21885aa --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..a207512 --- /dev/null +++ b/pom.xml @@ -0,0 +1,16 @@ + + + 4.0.0 + + com.anas.jcolorfulconsole + JColorfulConsole + 1.0-SNAPSHOT + + + 18 + 18 + + + \ No newline at end of file diff --git a/src/main/java/com/anas/jcolorfulconsole/ASCIIColor.java b/src/main/java/com/anas/jcolorfulconsole/ASCIIColor.java new file mode 100644 index 0000000..fbe3ff5 --- /dev/null +++ b/src/main/java/com/anas/jcolorfulconsole/ASCIIColor.java @@ -0,0 +1,4 @@ +package com.anas.jcolorfulconsole; + +public class ASCIIColor { +} diff --git a/src/main/java/com/anas/jcolorfulconsole/ConsoleManger.java b/src/main/java/com/anas/jcolorfulconsole/ConsoleManger.java new file mode 100644 index 0000000..03f79ca --- /dev/null +++ b/src/main/java/com/anas/jcolorfulconsole/ConsoleManger.java @@ -0,0 +1,39 @@ +package com.anas.jcolorfulconsole; + +public interface ConsoleManger { + void setColor(ASCIIColor color); + void setBackgroundColor(ASCIIColor color); + + void print(String text); + void print(String text, ASCIIColor color); + void println(String text); + void println(String text, ASCIIColor color); + void println(); + + void print(char c); + void print(char c, ASCIIColor color); + void println(char c); + void println(char c, ASCIIColor color); + + void print(int i); + void print(int i, ASCIIColor color); + void println(int i); + void println(int i, ASCIIColor color); + + void print(double d); + void print(double d, ASCIIColor color); + void println(double d); + void println(double d, ASCIIColor color); + + void print(boolean b); + void print(boolean b, ASCIIColor color); + void println(boolean b); + void println(boolean b, ASCIIColor color); + + void print(Object o); + void print(Object o, ASCIIColor color); + void println(Object o); + void println(Object o, ASCIIColor color); + + void printf(String format, Object... args); +}