199ca880aSopenharmony_ci#pragma once
299ca880aSopenharmony_ci
399ca880aSopenharmony_ci/***
499ca880aSopenharmony_ci  This file is part of systemd.
599ca880aSopenharmony_ci
699ca880aSopenharmony_ci  Copyright 2010 Lennart Poettering
799ca880aSopenharmony_ci
899ca880aSopenharmony_ci  systemd is free software; you can redistribute it and/or modify it
999ca880aSopenharmony_ci  under the terms of the GNU Lesser General Public License as published by
1099ca880aSopenharmony_ci  the Free Software Foundation; either version 2.1 of the License, or
1199ca880aSopenharmony_ci  (at your option) any later version.
1299ca880aSopenharmony_ci
1399ca880aSopenharmony_ci  systemd is distributed in the hope that it will be useful, but
1499ca880aSopenharmony_ci  WITHOUT ANY WARRANTY; without even the implied warranty of
1599ca880aSopenharmony_ci  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1699ca880aSopenharmony_ci  Lesser General Public License for more details.
1799ca880aSopenharmony_ci
1899ca880aSopenharmony_ci  You should have received a copy of the GNU Lesser General Public License
1999ca880aSopenharmony_ci  along with systemd; If not, see <http://www.gnu.org/licenses/>.
2099ca880aSopenharmony_ci***/
2199ca880aSopenharmony_ci
2299ca880aSopenharmony_ci#include <stdbool.h>
2399ca880aSopenharmony_ci#include <stdarg.h>
2499ca880aSopenharmony_ci#include <stdio.h>
2599ca880aSopenharmony_ci
2699ca880aSopenharmony_ci#include "macro.h"
2799ca880aSopenharmony_ci#include "time-util.h"
2899ca880aSopenharmony_ci
2999ca880aSopenharmony_ci#define ANSI_HIGHLIGHT_ON "\x1B[1;39m"
3099ca880aSopenharmony_ci#define ANSI_RED_ON "\x1B[31m"
3199ca880aSopenharmony_ci#define ANSI_HIGHLIGHT_RED_ON "\x1B[1;31m"
3299ca880aSopenharmony_ci#define ANSI_GREEN_ON "\x1B[32m"
3399ca880aSopenharmony_ci#define ANSI_HIGHLIGHT_GREEN_ON "\x1B[1;32m"
3499ca880aSopenharmony_ci#define ANSI_HIGHLIGHT_YELLOW_ON "\x1B[1;33m"
3599ca880aSopenharmony_ci#define ANSI_HIGHLIGHT_BLUE_ON "\x1B[1;34m"
3699ca880aSopenharmony_ci#define ANSI_HIGHLIGHT_OFF "\x1B[0m"
3799ca880aSopenharmony_ci#define ANSI_ERASE_TO_END_OF_LINE "\x1B[K"
3899ca880aSopenharmony_ci
3999ca880aSopenharmony_ciint open_terminal(const char *name, int mode);
40