From 3aab9a4d043c7c6ba027eae1c267a8b4a2671e7b Mon Sep 17 00:00:00 2001 From: wh201906 Date: Wed, 27 Dec 2023 22:12:45 +0800 Subject: [PATCH] Update CLI prompt after switching connection type --- CHANGELOG.md | 1 + client/src/proxmark3.c | 2 ++ client/src/proxmark3.h | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3877e21f7..ab62c38b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Fixed CLI prompt - Update connection type prompt after running `hw connect` (@wh201906) - Changed `uart_receive()` - Check if TCP connection is lost (@wh201906) - Change `data detectclock` - now tries all clocks if called w/o any params (@iceman1001) - Changed `lf search -1u` - improved the autocorrelation detection for unknown signals (@iceman1001) diff --git a/client/src/proxmark3.c b/client/src/proxmark3.c index 0df264d5f..c308360c2 100644 --- a/client/src/proxmark3.c +++ b/client/src/proxmark3.c @@ -281,6 +281,8 @@ main_loop(char *script_cmds_file, char *script_cmd, bool stayInCommandLoop) { prompt_net = PROXPROMPT_NET_UDPV6; break; case PM3_NONE: + prompt_net = PROXPROMPT_NET_NONE; + break; default: break; } diff --git a/client/src/proxmark3.h b/client/src/proxmark3.h index f58c7950e..bc6dcb3e7 100644 --- a/client/src/proxmark3.h +++ b/client/src/proxmark3.h @@ -39,6 +39,7 @@ #define PROXPROMPT_NET_UDPV4 "|" _RL_BOLD_GREEN_("udp") #define PROXPROMPT_NET_TCPV6 "|" _RL_BOLD_GREEN_("tcp v6") #define PROXPROMPT_NET_UDPV6 "|" _RL_BOLD_GREEN_("udp v6") +#define PROXPROMPT_NET_NONE "" #define PROXHISTORY "history.txt"