Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Conflicts:
	reader/src/main/java/org/jline/reader/impl/DefaultParser.java
	reader/src/test/java/org/jline/reader/completer/StringsCompleterTest.java
  • Loading branch information
mattirn committed Nov 26, 2018
2 parents 12ad62c + 7783c03 commit f2e7070
Show file tree
Hide file tree
Showing 216 changed files with 323 additions and 287 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Copyright (c) 2002-2018, the original author or authors.
All rights reserved.

http://www.opensource.org/licenses/bsd-license.php
https://opensource.org/licenses/BSD-3-Clause

Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
This software is distributable under the BSD license. See the terms of the
BSD license in the documentation provided with this software.
http://www.opensource.org/licenses/bsd-license.php
https://opensource.org/licenses/BSD-3-Clause
-->
# JLine [![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.jline/jline/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.jline/jline) [![Build Status: Linux](https://travis-ci.org/jline/jline3.svg?branch=master)](https://travis-ci.org/jline/jline3) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/github/jline/jline3?svg=true)](https://ci.appveyor.com/project/gnodet/jline3) [![DepShield Badge](https://depshield.sonatype.org/badges/jline/jline3/depshield.svg)](https://depshield.github.io)
# JLine [![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.jline/jline/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.jline/jline) [![Build Status: Linux](https://travis-ci.org/jline/jline3.svg?branch=master)](https://travis-ci.org/jline/jline3) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/github/jline/jline3?svg=true)](https://ci.appveyor.com/project/gnodet/jline3) [![DepShield Badge](https://depshield.sonatype.org/badges/jline/jline3/depshield.svg)](https://depshield.github.io)


JLine is a Java library for handling console input. It is similar in functionality to [BSD editline](http://www.thrysoee.dk/editline/) and [GNU readline](http://www.gnu.org/s/readline/) but with additional features that bring it in par with [ZSH line editor](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html). People familiar with the readline/editline capabilities for modern shells (such as bash and tcsh) will find most of the command editing features of JLine to be familiar.
Expand All @@ -17,7 +17,7 @@ JLine 3.x is an evolution of [JLine 2.x](https://github.com/jline/jline2).

# License

JLine is distributed under the [BSD License](http://www.opensource.org/licenses/bsd-license.php), meaning that you are completely free to redistribute, modify, or sell it with almost no restrictions.
JLine is distributed under the [BSD License](https://opensource.org/licenses/BSD-3-Clause), meaning that you are completely free to redistribute, modify, or sell it with almost no restrictions.

# Documentation

Expand Down Expand Up @@ -131,7 +131,7 @@ The finer grained bundles are located at:

Maven has a concept of `SNAPSHOT`. During development, the jline version will always ends with `-SNAPSHOT`, which means that the version is in development and not a release.

Note that all those artifacts are also installed in the local maven repostitory, so you will usually find them in the following folder: `~/.m2/repository/org/jline/`.
Note that all those artifacts are also installed in the local maven repository, so you will usually find them in the following folder: `~/.m2/repository/org/jline/`.

## Running the demo

Expand Down
2 changes: 1 addition & 1 deletion builtins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This software is distributable under the BSD license. See the terms of the
BSD license in the documentation provided with this software.
http://www.opensource.org/licenses/bsd-license.php
https://opensource.org/licenses/BSD-3-Clause
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Completers.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/InputRC.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Less.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
4 changes: 2 additions & 2 deletions builtins/src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down Expand Up @@ -1473,7 +1473,6 @@ private LinkedHashMap<String, String> standardShortcuts() {
s.put("^G", "Get Help");
s.put("^O", "WriteOut");
s.put("^R", "Read File");
s.put("^O", "WriteOut");
s.put("^Y", "Prev Page");
s.put("^K", "Cut Text");
s.put("^C", "Cur Pos");
Expand Down Expand Up @@ -1552,6 +1551,7 @@ void help(String help) {
void search() throws IOException {
KeyMap<Operation> searchKeyMap = new KeyMap<>();
searchKeyMap.setUnicode(Operation.INSERT);
searchKeyMap.setNomatch(Operation.INSERT);
for (char i = 'A'; i <= 'Z'; i++) {
searchKeyMap.bind(Operation.DO_LOWER_CASE, alt(i));
}
Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/NfaMatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/

/*
Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Source.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/TTop.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Tmux.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/test/java/org/jline/builtins/InputRCTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/test/java/org/jline/builtins/NanoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/test/java/org/jline/builtins/OptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/test/java/org/jline/builtins/TmuxTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.builtins;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.example;

Expand Down
2 changes: 1 addition & 1 deletion builtins/src/test/java/org/jline/example/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.example;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.example;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/

package org.jline.example;
Expand Down
2 changes: 1 addition & 1 deletion demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This software is distributable under the BSD license. See the terms of the
BSD license in the documentation provided with this software.
http://www.opensource.org/licenses/bsd-license.php
https://opensource.org/licenses/BSD-3-Clause
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Expand Down
2 changes: 1 addition & 1 deletion demo/src/main/java/org/jline/demo/FunctionConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.demo;

Expand Down
2 changes: 1 addition & 1 deletion demo/src/main/java/org/jline/demo/Gogo.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.demo;

Expand Down
2 changes: 1 addition & 1 deletion header.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Copyright (c) 2002-2017, the original author or authors.
This software is distributable under the BSD license. See the terms of the
BSD license in the documentation provided with this software.

http://www.opensource.org/licenses/bsd-license.php
https://opensource.org/licenses/BSD-3-Clause
2 changes: 1 addition & 1 deletion jline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This software is distributable under the BSD license. See the terms of the
BSD license in the documentation provided with this software.
http://www.opensource.org/licenses/bsd-license.php
https://opensource.org/licenses/BSD-3-Clause
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This software is distributable under the BSD license. See the terms of the
BSD license in the documentation provided with this software.
http://www.opensource.org/licenses/bsd-license.php
https://opensource.org/licenses/BSD-3-Clause
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Expand All @@ -29,7 +29,7 @@
<licenses>
<license>
<name>The BSD License</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<url>https://opensource.org/licenses/BSD-3-Clause</url>
<distribution>repo</distribution>
</license>
</licenses>
Expand Down
2 changes: 1 addition & 1 deletion reader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This software is distributable under the BSD license. See the terms of the
BSD license in the documentation provided with this software.
http://www.opensource.org/licenses/bsd-license.php
https://opensource.org/licenses/BSD-3-Clause
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Expand Down
2 changes: 1 addition & 1 deletion reader/src/main/java/org/jline/keymap/BindingReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.keymap;

Expand Down
2 changes: 1 addition & 1 deletion reader/src/main/java/org/jline/keymap/KeyMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.keymap;

Expand Down
2 changes: 1 addition & 1 deletion reader/src/main/java/org/jline/reader/Binding.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.reader;

Expand Down
2 changes: 1 addition & 1 deletion reader/src/main/java/org/jline/reader/Buffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.reader;

Expand Down
2 changes: 1 addition & 1 deletion reader/src/main/java/org/jline/reader/Candidate.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.reader;

Expand Down
2 changes: 1 addition & 1 deletion reader/src/main/java/org/jline/reader/Completer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
* https://opensource.org/licenses/BSD-3-Clause
*/
package org.jline.reader;

Expand Down
Loading

0 comments on commit f2e7070

Please sign in to comment.