From b26cc32639cedee94c10998bbcf76871615514da Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Thu, 3 Apr 2008 20:49:10 +0000 Subject: [PATCH] [ 1911291 ] customize jtag prompt git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1153 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 3 +++ jtag/src/jtag.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 6cb0a6a4..5572c680 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,5 +1,8 @@ 2008-04-03 Kolja Waschk + * src/jtag.c: Optionally use JTAG_PROMPT environment setting for + prompt instead of "jtag>" (by Mike Frysinger) + * include/jtag.h, src/cmd/jtag_data_dir.c, src/cmd/include.c, src/cmd/Makefile.am, src/bsdl/Makefile.am, src/bsdl/bsdl_flex.l, src/lib/make-relative-prefix.c, src/lib/safe-ctype.h, diff --git a/jtag/src/jtag.c b/jtag/src/jtag.c index 147f0001..182901d8 100644 --- a/jtag/src/jtag.c +++ b/jtag/src/jtag.c @@ -449,7 +449,7 @@ main( int argc, char *const argv[] ) #endif /* main loop */ - jtag_readline_loop( chain, "jtag> " ); + jtag_readline_loop( chain, getenv("JTAG_PROMPT") ? : "jtag> " ); #ifdef HAVE_READLINE_HISTORY /* Save history */