2020-09-22 03:00:24 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2012-12-15 06:24:13 +08:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* BlueZ - Bluetooth protocol stack for Linux
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Intel Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define COLOR_OFF "\x1B[0m"
|
2013-03-22 06:04:51 +08:00
|
|
|
#define COLOR_RED "\x1B[0;91m"
|
|
|
|
#define COLOR_GREEN "\x1B[0;92m"
|
|
|
|
#define COLOR_YELLOW "\x1B[0;93m"
|
2013-03-22 06:04:52 +08:00
|
|
|
#define COLOR_BLUE "\x1B[0;94m"
|
2013-03-22 06:04:55 +08:00
|
|
|
#define COLOR_BOLDGRAY "\x1B[1;30m"
|
|
|
|
#define COLOR_BOLDWHITE "\x1B[1;37m"
|
2012-12-15 06:24:13 +08:00
|
|
|
|
2012-12-18 11:17:45 +08:00
|
|
|
void rl_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
|
2015-02-04 20:57:16 +08:00
|
|
|
void rl_hexdump(const unsigned char *buf, size_t len);
|
2017-06-27 20:37:29 +08:00
|
|
|
|
|
|
|
typedef void (*rl_prompt_input_func) (const char *input, void *user_data);
|
|
|
|
void rl_prompt_input(const char *label, const char *msg,
|
|
|
|
rl_prompt_input_func func, void *user_data);
|
|
|
|
int rl_release_prompt(const char *input);
|