Skip to content

Commit

Permalink
Ctrl-D adds a new line
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdenise committed May 16, 2018
1 parent ea6d67e commit 7d873c3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.aesh.readline.ReadlineFlag;
import org.aesh.readline.action.Action;
import org.aesh.readline.terminal.Key;
import org.aesh.utils.Config;

/**
* @author <a href="mailto:[email protected]">Ståle W. Pedersen</a>
Expand Down Expand Up @@ -44,6 +45,7 @@ public void accept(InputProcessor inputProcessor) {
EOFCounter++;
else {
//we got a eof, close the connection and call finish
inputProcessor.connection().write(Config.getLineSeparator());
inputProcessor.connection().close();
}
}
Expand Down

0 comments on commit 7d873c3

Please sign in to comment.