1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 18:29:19 +02:00

show terminal-errors in red color

This commit is contained in:
B. Petersen 2018-05-23 16:36:26 +02:00
parent 8df8cc8729
commit e9edd94d07

View file

@ -35,6 +35,10 @@ all further options can be set using the set-command (type ? for help). */
#include "stress.h"
#define ANSI_RED "\e[31m"
#define ANSI_NORMAL "\e[0m"
static char* read_cmd(void)
{
printf("> ");
@ -74,7 +78,7 @@ static uintptr_t receive_event(mrmailbox_t* mailbox, int event, uintptr_t data1,
break;
case MR_EVENT_ERROR:
printf("[ERROR #%i] %s\n", (int)data1, (char*)data2);
printf(ANSI_RED "[ERROR #%i] %s" ANSI_NORMAL "\n", (int)data1, (char*)data2);
break;
case MR_EVENT_HTTP_GET: