Skip to content

Commit

Permalink
Print the right thing
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpaljak committed Jan 28, 2016
1 parent 08cc41a commit 2b6dcfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/apdu4j/remote/CmdlineRemoteTerminal.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,16 @@ private void input(Map<String, Object> msg) throws IOException {
Map< String, Object> m = JSONProtocol.ok(msg);

Console c = System.console();
String input = c.readLine(msg + "> ");
String input = c.readLine(msg.get("text") + " > ");
if (input == null)
input = "";
input = input.trim();
System.out.println("> \""+ input + " \"");
System.out.println("> \""+ input + "\"");
boolean yes = get_yes_or_no_console("Confirm");
if (!yes) {
m.put("button", "red");
} else {
m.put("value", input);
m.put("button", "green");
}
pipe.send(m);
Expand Down

0 comments on commit 2b6dcfd

Please sign in to comment.