From d8535507033635ad1a30ff4df8f94f7854ccab8e Mon Sep 17 00:00:00 2001 From: sfusato Date: Sun, 23 Dec 2018 22:01:12 +0200 Subject: [PATCH 1/2] added IEx warning when using --remsh with 'dumb' terminal --- lib/iex/lib/iex/cli.ex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/iex/lib/iex/cli.ex b/lib/iex/lib/iex/cli.ex index 704d15bc98e..b1520f99ec6 100644 --- a/lib/iex/lib/iex/cli.ex +++ b/lib/iex/lib/iex/cli.ex @@ -53,6 +53,13 @@ defmodule IEx.CLI do if tty_works?() do :user_drv.start([:"tty_sl -c -e", tty_args()]) else + if get_remsh(:init.get_plain_arguments()) do + IO.puts( + :stderr, + "warning: Connecting to a remote node via --remsh is not possible using the 'dumb' terminal" + ) + end + :application.set_env(:stdlib, :shell_prompt_func, {__MODULE__, :prompt}) :user.start() local_start() From bd564ff68184ed9ced5382f6e9717e6d8249b0ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 23 Dec 2018 22:59:38 +0100 Subject: [PATCH 2/2] Update cli.ex --- lib/iex/lib/iex/cli.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iex/lib/iex/cli.ex b/lib/iex/lib/iex/cli.ex index b1520f99ec6..a10ad53c2b3 100644 --- a/lib/iex/lib/iex/cli.ex +++ b/lib/iex/lib/iex/cli.ex @@ -56,7 +56,7 @@ defmodule IEx.CLI do if get_remsh(:init.get_plain_arguments()) do IO.puts( :stderr, - "warning: Connecting to a remote node via --remsh is not possible using the 'dumb' terminal" + "warning: the --remsh option will be ignored because IEx is running on limited shell" ) end