- 浏览: 1501815 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (419)
- XMPP (19)
- Android (180)
- Java (59)
- Network (4)
- HTML5 (13)
- Eclipse (9)
- SCM (23)
- C/C++ (4)
- UML (4)
- Libjingle (15)
- Tools&Softwares (29)
- Linphone (5)
- Linux&UNIX (6)
- Windows (18)
- Google (10)
- MISC (3)
- SIP (6)
- SQLite (5)
- Security (4)
- Opensource (29)
- Online (2)
- 文章 (3)
- MemoryLeak (10)
- Decompile (5)
- Ruby (1)
- Image (1)
- Bat (4)
- TTS&ASR (28)
- Multimedia (1)
- iOS (20)
- Asciiflow - ASCII Flow Diagram Tool.htm (1)
- Networking (1)
- DLNA&UPnP (2)
- Chrome (2)
- CI (1)
- SmartHome (0)
- CloudComputing (1)
- NodeJS (3)
- MachineLearning (2)
最新评论
-
bzhao:
点赞123!
Windows的adb shell中使用vi不乱码方法及AdbPutty -
wahahachuang8:
我觉得这种东西自己开发太麻烦了,就别自己捣鼓了,找个第三方,方 ...
HTML5 WebSocket 技术介绍 -
obehavior:
view.setOnTouchListenerview是什么
[转]android 一直在最前面的浮动窗口效果 -
wutenghua:
[转]android 一直在最前面的浮动窗口效果 -
zee3.lin:
Sorry~~
When I build "call ...
Step by Step about How to Build libjingle 0.4
Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://www.rgagnon.com/javadetails/java-0047.html
import org.fusesource.jansi.AnsiConsole; public class Test { public static final String ANSI_CLS = "\u001b[2J"; public static final String ANSI_HOME = "\u001b[H"; public static final String ANSI_BOLD = "\u001b[1m"; public static final String ANSI_AT55 = "\u001b[10;10H"; public static final String ANSI_REVERSEON = "\u001b[7m"; public static final String ANSI_NORMAL = "\u001b[0m"; public static final String ANSI_WHITEONBLUE = "\u001b[37;44m"; public static void main(String args[]){ AnsiConsole.systemInstall(); AnsiConsole.out.println(ANSI_CLS); AnsiConsole.out.println (ANSI_AT55 + ANSI_REVERSEON + "Hello world" + ANSI_NORMAL); AnsiConsole.out.println (ANSI_HOME + ANSI_WHITEONBLUE + "Hello world" + ANSI_NORMAL); AnsiConsole.out.print (ANSI_BOLD + "Press a key..." + ANSI_NORMAL); try {System.in.read();}catch(Exception e){} AnsiConsole.out.println(ANSI_CLS); AnsiConsole.systemInstall(); } }
import static org.fusesource.jansi.Ansi.*; import static org.fusesource.jansi.Ansi.Color.*; ... System.out.println( ansi().eraseScreen().fg(RED).a("Hello").fg.(GREEN).a(" World").reset() )
public final class ANSI { public static final String SANE = "\u001B[0m"; public static final String BLACK = "\u001B[0;30m"; public static final String RED = "\u001B[0;31m"; public static final String GREEN = "\u001B[0;32m"; public static final String YELLOW = "\u001B[0;33m"; public static final String BLUE = "\u001B[0;34m"; public static final String MAGENTA = "\u001B[0;35m"; public static final String CYAN = "\u001B[0;36m"; public static final String WHITE = "\u001B[0;37m"; public static final String DARK_BLACK = "\u001B[1;30m"; public static final String DARK_RED = "\u001B[1;31m"; public static final String DARK_GREEN = "\u001B[1;32m"; public static final String DARK_YELLOW = "\u001B[1;33m"; public static final String DARK_BLUE = "\u001B[1;34m"; public static final String DARK_MAGENTA = "\u001B[1;35m"; public static final String DARK_CYAN = "\u001B[1;36m"; public static final String DARK_WHITE = "\u001B[1;37m"; public static final String BACKGROUND_BLACK = "\u001B[40m"; public static final String BACKGROUND_RED = "\u001B[41m"; public static final String BACKGROUND_GREEN = "\u001B[42m"; public static final String BACKGROUND_YELLOW = "\u001B[43m"; public static final String BACKGROUND_BLUE = "\u001B[44m"; public static final String BACKGROUND_MAGENTA = "\u001B[45m"; public static final String BACKGROUND_CYAN = "\u001B[46m"; public static final String BACKGROUND_WHITE = "\u001B[47m"; }
发表评论
-
JAAS authentication in Tomcat example
2018-11-19 20:32 593... -
druid 数据库密码加密
2015-03-12 17:43 1388cmd命令:1、切换的druid-0.2.9.jar包所在目 ... -
Sphinx - a tool that makes it easy to create intelligent and beautiful documenta
2012-07-04 13:44 1001http://sphinx.pocoo.org/ -
GNUStep
2012-06-04 16:45 1240http://www.gnustep.org/ T ... -
检测Java对象所占内存大小
2012-05-29 16:57 1288http://blog.csdn.net/zzt_johnso ... -
在 JNI 编程中避免内存泄漏
2012-04-16 15:55 1165http://www.ibm.com/developerwor ... -
Java Native Interface Specification
2012-04-16 15:04 1610http://docs.oracle.com/javase/1 ... -
基本JNI调用技术(c/c++与java互调)
2012-04-16 15:03 1306http://blog.csdn.net/zjsjava/ar ... -
ProGuard
2012-04-10 21:34 930http://proguard.sourceforge.net ... -
The Go Programming Language
2012-04-10 09:43 1392http://golang.org/ packag ... -
eyes-free - Speech Enabled Eyes-Free Android Applications
2012-04-06 14:01 1121http://code.google.com/p/eyes-f ... -
LaTeX – A document preparation system
2012-03-28 13:34 1188http://www.latex-project.org/ ... -
[Java]将一个字符串按照指定字符数进行分割
2012-03-27 13:20 3478public static String[] spli ... -
java中的字符串分割函数
2012-03-27 10:26 14118Java中的我们可以利用split把字符串按照指定的分割符进行 ... -
Java 可中断线程
2012-03-26 13:27 4190http://blog.csdn.net/sapphiron/ ... -
如何中断线程in Java
2012-03-26 13:08 1160http://android.blog.51cto.com/2 ... -
Android多线程设计模式之-wait()和notify()机制
2012-03-26 12:50 1922通常,多线程之间需要 ... -
Android Push Notification
2012-03-22 16:09 1267http://sourceforge.net/projects ... -
[AndroidTips]Android how to check screen off 判断屏幕是开还是关
2012-03-21 15:58 1571pm = (PowerManager) context.get ... -
java中关键字volatile的作用
2012-03-21 11:30 1198http://sakyone.iteye.com/blog/6 ...
相关推荐
标题提及的是“jansi的jar包和源码包”,这表明我们讨论的是一个名为“jansi”的开源项目,它提供了一个jar文件(编译后的Java类库)以及对应的源码包。源码包对于开发者来说特别有价值,因为它允许他们查看和理解...
hbase Could not initialize class org.fusesource.jansi.internal.Kernel32; 可能是因为windows下缺jansi-1.4.jar ;解决方案:下载jansi-1.4.jar包放到hbase-2.2.1\lib下,重新启动即可
"JANSI eclipse 多控制台 多颜色"是一个针对Eclipse集成开发环境(IDE)的增强工具,它通过提供多控制台支持和丰富的颜色定制,极大地提升了代码调试和运行时的用户体验。以下是对这个主题的详细解释: 首先,JANSI...
解决hbase shell启动报错java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.internal.Kernel32
Jansi:让控制台输出彩色字符的方法jar,Jansi虽然是一个很小的Java包,却有着丰富的接口,让你配置各种输出效果,用法非常的简单。
ansi.fg(Ansi.Color.RED).a("This text is red ").reset(); // 输出绿色背景的黄色文字 ansi.bg(Ansi.Color.GREEN).fg(Ansi.Color.YELLOW).a("With green background and yellow text!").reset(); // 输出到...
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
Jansi 是一个用于生成和解释 ANSI 转义序列的 Java 库。 org.fusesource.jansi/jansi/1.18/jansi-1.18.jar
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
Jansi 是一个用于生成和解释 ANSI 转义序列的 Java 库。 org.fusesource.jansi/jansi/2.3.1/jansi-2.3.1.jar
Jansi Native 实现了 Jansi 项目使用的 JNI 库。 org.fusesource.jansi/jansi-native/1.1/jansi-native-1.1.jar
Jansi 是一个用于生成和解释 ANSI 转义序列的 Java 库。 org.fusesource.jansi/jansi/1.14/jansi-1.14.jar
Jansi 是一个用于生成和解释 ANSI 转义序列的 Java 库。 org.fusesource.jansi/jansi/2.0/jansi-2.0.jar
Jansi 是一个用于生成和解释 ANSI 转义序列的 Java 库。 org.fusesource.jansi/jansi/1.10/jansi-1.10.jar
Jansi 是一个用于生成和解释 ANSI 转义序列的 Java 库。 org.fusesource.jansi/jansi/1.15/jansi-1.15.jar
Jansi 是一个用于生成和解释 ANSI 转义序列的 Java 库。 org.fusesource.jansi/jansi/1.3/jansi-1.3.jar
Jansi 是一个用于生成和解释 ANSI 转义序列的 Java 库。 org.fusesource.jansi/jansi/1.17.1/jansi-1.17.1.jar
Jansi Native 实现了 Jansi 项目使用的 JNI 库。 org.fusesource.jansi/jansi-native/1.4/jansi-native-1.4.jar