From 2b6dcfd2ff9dfbf6cc1fc40b3c100991275af09d Mon Sep 17 00:00:00 2001 From: Martin Paljak Date: Thu, 28 Jan 2016 13:19:11 +0200 Subject: [PATCH] Print the right thing --- src/apdu4j/remote/CmdlineRemoteTerminal.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apdu4j/remote/CmdlineRemoteTerminal.java b/src/apdu4j/remote/CmdlineRemoteTerminal.java index ae422a2..65e6732 100644 --- a/src/apdu4j/remote/CmdlineRemoteTerminal.java +++ b/src/apdu4j/remote/CmdlineRemoteTerminal.java @@ -127,15 +127,16 @@ private void input(Map 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);