summaryrefslogtreecommitdiff
path: root/gateway.c
diff options
context:
space:
mode:
authorHibby <d@vehibberd.com>2020-03-24 20:55:41 +0000
committerHibby <d@vehibberd.com>2020-03-24 20:55:41 +0000
commitef4822cca2ffcc86c9d5da3a11033e33480df50e (patch)
treea7da63d6dc009d5dcfac6356697c68f29c477afe /gateway.c
parentd2b74b1d3f315da06d99a39eb282176c5b0ae8b3 (diff)
New upstream version 2.11
Diffstat (limited to 'gateway.c')
-rw-r--r--gateway.c15
1 files changed, 10 insertions, 5 deletions
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 <RETURN> 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("");
}