Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 16 commits
  • 11 files changed
  • 0 commit comments
  • 3 contributors
15 changelog.md
View
@@ -1,5 +1,20 @@
# ![Jansi](http://jansi.fusesource.org/images/project-logo.png)
+## [Jansi 1.8][1_8], released 2012-02-15
+[1_7]: http://repo.fusesource.com/nexus/content/groups/public/org/fusesource/jansi/jansi/1.8
+
+* Updated bundled native libraries:
+ * Windows: Added support for isatty and link against the system msvcrt.dll (so no need for VC redistributables)
+* Add some helper methods to turn bold on and off
+* if the jansi.passthrough system property is set, then jansi will not interpret any of the ansi sequences.
+
+## [Jansi 1.7][1_7], released 2011-09-21
+[1_7]: http://repo.fusesource.com/nexus/content/groups/public/org/fusesource/jansi/jansi/1.7
+
+* Updated bundled native libraries:
+ * Windows: Adding support for PeekConsoleInputW, FlushConsoleInputBuffer so that CTRL-C can be handled by jline. Discarding mouse events on readConsoleInput.
+ * Linux: Built against glib 2.0 to be compatible with more versions of Linux.
+
## [Jansi 1.6][1_6], released 2011-06-19
[1_6]: http://repo.fusesource.com/nexus/content/groups/public/org/fusesource/jansi/jansi/1.6
6 jansi-website/ext/Website.scala
View
@@ -35,10 +35,12 @@ object Website {
val project_forums_url= "http://groups.google.com/group/jansi"
val project_wiki_url= "https://github.com/fusesource/jansi/wiki"
val project_logo= "/images/project-logo.png"
- val project_version= "1.6"
- val project_snapshot_version= "1.7-SNAPSHOT"
+ val project_version= "1.8"
+ val project_snapshot_version= "1.9-SNAPSHOT"
val project_versions = List(
project_version,
+ "1.8",
+ "1.6",
"1.5",
"1.4",
"1.3",
5 jansi-website/pom.xml
View
@@ -22,7 +22,7 @@
<parent>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-project</artifactId>
- <version>1.7-SNAPSHOT</version>
+ <version>1.9-SNAPSHOT</version>
</parent>
<artifactId>jansi-website</artifactId>
@@ -80,7 +80,7 @@
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
- <version>1.7-SNAPSHOT</version>
+ <version>1.9-SNAPSHOT</version>
<classifier>javadoc</classifier>
<scope>test</scope>
</dependency>
@@ -207,6 +207,7 @@
<artifactItem>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
+ <version>${project.version}</version>
<classifier>javadoc</classifier>
<outputDirectory>${basedir}/target/sitegen/documentation/api</outputDirectory>
</artifactItem>
35 jansi-website/src/blog/releases/release-1.7.page
View
@@ -0,0 +1,35 @@
+---
+# Copyright (C) 2009-2011 the original author or authors.
+# See the notice.md file distributed with this work for additional
+# information regarding copyright ownership.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+blog_post: true
+title: Jansi 1.7
+author: Hiram Chirino
+author_url: http://hiramchirino.com
+created_at: 2011-09-21 12:06:40 -0000
+---
+
+The [${project_name}](${website_base_url}) project is pleased to announce
+the availability of ${project_name} 1.7. Jansi is a small java library that allows
+you to use ANSI escape sequences to format your console output which works
+even on windows.
+
+Further information:
+
+* [Downloads](http://${website_base_url}/download.html)
+
+[Feedback](${website_base_url}/community/index.html) is always welcome!
+
42 jansi-website/src/blog/releases/release-1.8.page
View
@@ -0,0 +1,42 @@
+---
+# Copyright (C) 2009-2011 the original author or authors.
+# See the notice.md file distributed with this work for additional
+# information regarding copyright ownership.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+blog_post: true
+title: Jansi 1.8
+author: Hiram Chirino
+author_url: http://hiramchirino.com
+created_at: 2012-02-15 15:42:00 -0500
+---
+
+The [${project_name}](${website_base_url}) project is pleased to announce
+the availability of ${project_name} 1.8. Jansi is a small java library that allows
+you to use ANSI escape sequences to format your console output which works
+even on windows.
+
+Further information:
+
+* [Downloads](http://${website_base_url}/download.html)
+
+Changes:
+
+* Updated bundled native libraries:
+ * Windows: Added support for isatty and link against the system msvcrt.dll (so no need for VC redistributables)
+* Add some helper methods to turn bold on and off
+* if the jansi.passthrough system property is set, then jansi will not interpret any of the ansi sequences.
+
+[Feedback](${website_base_url}/community/index.html) is always welcome!
+
16 jansi/pom.xml
View
@@ -21,7 +21,7 @@
<parent>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-project</artifactId>
- <version>1.7-SNAPSHOT</version>
+ <version>1.9-SNAPSHOT</version>
</parent>
<artifactId>jansi</artifactId>
@@ -33,13 +33,13 @@
<dependency>
<groupId>org.fusesource.hawtjni</groupId>
<artifactId>hawtjni-runtime</artifactId>
- <version>1.2</version>
+ <version>1.5</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-native</artifactId>
- <version>1.2</version>
+ <version>1.3</version>
</dependency>
<!-- Bundle in the native libs for Windows, OS X, and
@@ -49,31 +49,31 @@
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-native</artifactId>
<classifier>windows32</classifier>
- <version>1.2</version>
+ <version>1.4</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-native</artifactId>
<classifier>windows64</classifier>
- <version>1.2</version>
+ <version>1.4</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-native</artifactId>
<classifier>osx</classifier>
- <version>1.2</version>
+ <version>1.4</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-native</artifactId>
<classifier>linux32</classifier>
- <version>1.0</version>
+ <version>1.3</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-native</artifactId>
<classifier>linux64</classifier>
- <version>1.0</version>
+ <version>1.3</version>
</dependency>
<dependency>
8 jansi/src/main/java/org/fusesource/jansi/Ansi.java
View
@@ -371,6 +371,14 @@ public Ansi reset() {
return a(Attribute.RESET);
}
+ public Ansi bold() {
+ return a(Attribute.INTENSITY_BOLD);
+ }
+
+ public Ansi boldOff() {
+ return a(Attribute.INTENSITY_BOLD_OFF);
+ }
+
public Ansi a(String value) {
flushAtttributes();
builder.append(value);
6 jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java
View
@@ -43,6 +43,12 @@
public static OutputStream wrapOutputStream(final OutputStream stream) {
+ // If the jansi.passthrough property is set, then don't interpret
+ // any of the ansi sequences.
+ if( Boolean.getBoolean("jansi.passthrough") ) {
+ return stream;
+ }
+
// If the jansi.strip property is set, then we just strip the
// the ansi escapes.
if( Boolean.getBoolean("jansi.strip") ) {
188 pom.xml
View
@@ -21,12 +21,12 @@
<parent>
<groupId>org.fusesource</groupId>
<artifactId>fusesource-pom</artifactId>
- <version>1.5</version>
+ <version>1.8</version>
</parent>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi-project</artifactId>
- <version>1.7-SNAPSHOT</version>
+ <version>1.9-SNAPSHOT</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
@@ -37,9 +37,8 @@
<forge-project-id-uc>JANSI</forge-project-id-uc>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <release-altGitURL>scm:git:ssh://git@github.com:fusesources/hawtjni.git</release-altGitURL>
- <scalate-version>1.5.0</scalate-version>
+ <scalate-version>1.5.1</scalate-version>
<scalamd-version>1.5</scalamd-version>
<slf4j-version>1.6.1</slf4j-version>
<jetty-plugin-version>7.0.1.v20091125</jetty-plugin-version>
@@ -83,7 +82,7 @@
<scm>
<connection>scm:git:git://github.com/fusesource/${forge-project-id}.git</connection>
<!-- Work around for issue: http://jira.codehaus.org/browse/SCM-444 -->
- <developerConnection>${release-altGitURL}</developerConnection>
+ <developerConnection>scm:git:ssh://git@github.com:fusesources/hawtjni.git</developerConnection>
<url>http://github.com/fusesource/{forge-project-id}.git</url>
</scm>
@@ -91,7 +90,7 @@
<site>
<id>website.fusesource.org</id>
<name>website</name>
- <url>dav:http://fusesource.com/forge/dav/${forge-project-id}/maven/${project.version}</url>
+ <url>dav:http://fusesource.com/forge/dav/${forge-project-id}/versions/${project.version}/maven</url>
</site>
</distributionManagement>
@@ -105,7 +104,132 @@
</developer>
</developers>
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.fusesource.mvnplugins</groupId>
+ <artifactId>fuse-jxr-skin</artifactId>
+ <version>1.9</version>
+ </extension>
+ </extensions>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ <executions>
+ <execution>
+ <id>attach-descriptor</id>
+ <goals>
+ <goal>attach-descriptor</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <reportPlugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
+ <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+ </configuration>
+ <!-- simpler configuration without reportSets available for usual cases -->
+ <reports>
+ <report>index</report>
+ <report>dependencies</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>mailing-list</report>
+ <report>modules</report>
+ <report>project-team</report>
+ <report>plugin-management</report>
+ <report>plugins</report>
+ <report>scm</report>
+ </reports>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <charset>UTF-8</charset>
+ <docencoding>UTF-8</docencoding>
+ <version>false</version>
+ <author>true</author>
+ <keywords>true</keywords>
+
+ <stylesheetfile>${project.build.directory}/javadoc-skin/stylesheet.css</stylesheetfile>
+ <!--
+ <resourcesArtifacts>
+ <resourcesArtifact>
+ <groupId>org.fusesource.mvnplugins</groupId>
+ <artifactId>fuse-javadoc-skin</artifactId>
+ <version>1.9</version>
+ </resourcesArtifact>
+ </resourcesArtifacts>
+ -->
+
+ <doctitle>${project.name} API Reference (${project.version})</doctitle>
+ <windowtitle>${project.name} API Reference (${project.version})</windowtitle>
+ <links>
+ <link>http://download.oracle.com/javase/6/docs/api</link>
+ </links>
+ <encoding>UTF-8</encoding>
+ <locale>en_US</locale>
+ <linksource>true</linksource>
+ <excludePackageNames>*.internal</excludePackageNames>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <stylesheet>fuse-jxr-skin-stylesheet.css</stylesheet>
+ <inputEncoding>UTF-8</inputEncoding>
+ <outputEncoding>UTF-8</outputEncoding>
+ <linkJavadoc>true</linkJavadoc>
+ <docTitle>${project.name} Source Xref (${project.version})</docTitle>
+ <windowTitle>${project.name} Source Xref (${project.version})</windowTitle>
+ </configuration>
+ </plugin>
+
+ </reportPlugins>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.3</version>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.fusesource.mvnplugins</groupId>
+ <artifactId>fuse-javadoc-skin</artifactId>
+ <version>1.9</version>
+ <type>jar</type>
+ <overWrite>false</overWrite>
+ <outputDirectory>${project.build.directory}/javadoc-skin</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
<profiles>
<!-- enables extra repositories which may have some
@@ -127,6 +251,58 @@
</repository>
</repositories>
</profile>
+
+ <profile>
+ <id>x</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+
+ <configuration>
+ <charset>UTF-8</charset>
+ <docencoding>UTF-8</docencoding>
+ <version>false</version>
+ <author>true</author>
+ <keywords>true</keywords>
+
+ <stylesheetfile>${project.build.directory}/javadoc-skin/stylesheet.css</stylesheetfile>
+ <!--
+ <resourcesArtifacts>
+ <resourcesArtifact>
+ <groupId>org.fusesource.mvnplugins</groupId>
+ <artifactId>fuse-javadoc-skin</artifactId>
+ <version>1.9</version>
+ </resourcesArtifact>
+ </resourcesArtifacts>
+ -->
+
+ <doctitle>${project.name} API Reference (${project.version})</doctitle>
+ <windowtitle>${project.name} API Reference (${project.version})</windowtitle>
+ <links>
+ <link>http://download.oracle.com/javase/6/docs/api</link>
+ </links>
+ <encoding>UTF-8</encoding>
+ <locale>en_US</locale>
+ <linksource>true</linksource>
+ <excludePackageNames>*.internal</excludePackageNames>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
</profiles>
BIN  src/site/resources/images/project-logo.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 src/site/site.xml
View
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project name="${project.name}">
+
+ <skin>
+ <groupId>com.googlecode.fluido-skin</groupId>
+ <artifactId>fluido-skin</artifactId>
+ <version>1.3</version>
+ </skin>
+
+ <bannerLeft>
+ <name>${project.name}</name>
+ <src>http://${forge-project-id}.fusesource.org/images/project-logo.png</src>
+ <href>${project.url}</href>
+ </bannerLeft>
+
+ <version position="left"/>
+ <body>
+ <menu ref="reports" inherit="bottom"/>
+ <menu ref="modules" inherit="bottom"/>
+ </body>
+
+</project>

No commit comments for this range

Something went wrong with that request. Please try again.