From 27ce6520b91cb43772eb50bed02ea770bec7714e Mon Sep 17 00:00:00 2001 From: tony mancill Date: Sun, 10 Jan 2021 13:12:57 -0800 Subject: New upstream version 2.12 --- gateway.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'gateway.c') diff --git a/gateway.c b/gateway.c index e480b8f..7b2dd3b 100644 --- a/gateway.c +++ b/gateway.c @@ -266,7 +266,12 @@ static ax25io *connect_to(char **addr, int family, int escape, int compr) if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo, "\e[01;33m"); } + if (check_perms(PERM_ANSI, 0L) == -1) { axio_printf(NodeIo,"link setup (%s)...", User.dl_port); + } + if (check_perms(PERM_ANSI, 0L) != -1) { + axio_printf(NodeIo,"link setup (%s)...\e[0;m", User.dl_port); + } } /* else node_msg("Trying %s on %s... Type to abort", User.dl_name, User.dl_port); */ break; @@ -795,7 +800,7 @@ int do_connect(int argc, char **argv) if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo,"\e[01;31m"); } - axio_printf(NodeIo,"Returning you to the shell..."); + axio_printf(NodeIo, "Returning you to the shell..."); } else if ((User.ul_type == AF_AX25) && (!stay)) { axio_flush(NodeIo); @@ -1146,17 +1151,17 @@ int do_ping(int argc, char **argv) if (User.ul_type == AF_NETROM){ axio_printf(NodeIo,"%s} ", NodeId); } - if (User.ul_type == AF_INET) { +// if (User.ul_type == AF_INET) { if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo, "\e[05;31m"); - } +// } } axio_printf(NodeIo,"Ping aborted."); - if (User.ul_type == AF_INET) { +// if (User.ul_type == AF_INET) { if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo, "\e[0;m"); } - } +// } if (User.ul_type == AF_NETROM) { node_msg(""); } -- cgit v1.2.3