From: j8takagi Date: Fri, 15 Feb 2019 12:53:12 +0000 (+0900) Subject: comet2のプロンプトを(comet2 monitor)に変更 X-Git-Tag: v0.5p5~4 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4f28a62ae8cefe85ccc43989dba326a318c6376;p=YACASL2.git comet2のプロンプトを(comet2 monitor)に変更 --- diff --git a/src/monitor.c b/src/monitor.c index f0af0a1..89ad918 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -5,6 +5,11 @@ */ static BPSLIST *bps[BPSTABSIZE]; +/** + * @brief comet2monitorのプロンプト + */ +static char *monitor_prompt = "(comet2 monitor)"; + unsigned adrhash(WORD adr) { HKEY *key[1]; @@ -347,7 +352,7 @@ void monitor() MONCMDTYPE cmdtype = MONREPEAT; do { - fprintf(stdout, "- "); + fprintf(stdout, "%s ", monitor_prompt); buf = malloc_chk(MONINSIZE + 1, "monitor.buf"); fgets(buf, MONINSIZE, stdin); fprintf(stdout, "%s", buf);