summaryrefslogtreecommitdiff
path: root/lib/ssh/src/ssh_cli.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh/src/ssh_cli.erl')
-rw-r--r--lib/ssh/src/ssh_cli.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_cli.erl b/lib/ssh/src/ssh_cli.erl
index 13a44beea3..43237b6141 100644
--- a/lib/ssh/src/ssh_cli.erl
+++ b/lib/ssh/src/ssh_cli.erl
@@ -281,6 +281,10 @@ handle_msg({Group, get_unicode_state}, State) ->
Group ! {self(), get_unicode_state, false},
{ok, State};
+handle_msg({Group, get_terminal_state}, State) ->
+ Group ! {self(), get_terminal_state, true},
+ {ok, State};
+
handle_msg({Group, tty_geometry}, #state{group = Group,
pty = Pty
} = State) ->
@@ -447,7 +451,7 @@ io_request(tty_geometry, Buf, Tty, Group) ->
io_request({put_chars_sync, Class, Cs, Reply}, Buf, Tty, Group) ->
%% We handle these asynchronous for now, if we need output guarantees
%% we have to handle these synchronously
- Group ! {reply, Reply},
+ Group ! {reply, Reply, ok},
io_request({put_chars, Class, Cs}, Buf, Tty, Group);
io_request(_R, Buf, _Tty, _Group) ->