Add context to prompt

This commit is contained in:
Philippe Teuwen
2020-04-22 12:22:24 +02:00
parent 1f5544330c
commit 7760dd77e5
2 changed files with 37 additions and 17 deletions

View File

@@ -14,15 +14,19 @@
#include "common.h"
#define PROXPROMPT_CON "[" _BOLD_GREEN_("con") "] pm3 --> "
#define PROXPROMPT_MAX_SIZE 255
#define PROXPROMPT_USB "[" _BOLD_GREEN_("usb") "] pm3 --> "
#define PROXPROMPT_COMPOSE "[" "%s" "] pm3 %s--> "
#define PROXPROMPT_FPC "[" _BOLD_GREEN_("fpc") "] pm3 --> "
#define PROXPROMPT_CTX_SCRIPTFILE "(" _YELLOW_("script") ")"
#define PROXPROMPT_CTX_SCRIPTCMD "(" _YELLOW_("command") ")"
#define PROXPROMPT_CTX_STDIN "(" _YELLOW_("stdin") ")"
#define PROXPROMPT_CTX_INTERACTIVE ""
#define PROXPROMPT_OFFLINE "[" _BOLD_RED_("offline") "] pm3 --> "
#define PROXPROMPT_DEV_USB _BOLD_GREEN_("usb")
#define PROXPROMPT_DEV_FPC _BOLD_GREEN_("fpc")
#define PROXPROMPT_DEV_OFFLINE _BOLD_RED_("offline")
#define PROXPROMPT_MAX_SIZE sizeof(PROXPROMPT_OFFLINE)
#define PROXHISTORY "history.txt"
#define PROXLOG "log_%Y%m%d.txt"