GUAC-1195: Add "color-scheme" parameter to SSH and telnet.
This commit is contained in:
parent
fa443249c9
commit
677c3ce6e8
@ -56,6 +56,7 @@ const char* GUAC_CLIENT_ARGS[] = {
|
|||||||
#ifdef ENABLE_SSH_AGENT
|
#ifdef ENABLE_SSH_AGENT
|
||||||
"enable-agent",
|
"enable-agent",
|
||||||
#endif
|
#endif
|
||||||
|
"color-scheme",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -113,6 +114,14 @@ enum __SSH_ARGS_IDX {
|
|||||||
IDX_ENABLE_AGENT,
|
IDX_ENABLE_AGENT,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name of the color scheme to use. Currently valid color schemes are:
|
||||||
|
* "black-white", "white-black", "gray-black", and "green-black", each
|
||||||
|
* following the "foreground-background" pattern. By default, this will be
|
||||||
|
* "gray-black".
|
||||||
|
*/
|
||||||
|
IDX_COLOR_SCHEME,
|
||||||
|
|
||||||
SSH_ARGS_COUNT
|
SSH_ARGS_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -174,7 +183,7 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
|
|||||||
client_data->font_name, client_data->font_size,
|
client_data->font_name, client_data->font_size,
|
||||||
client->info.optimal_resolution,
|
client->info.optimal_resolution,
|
||||||
client->info.optimal_width, client->info.optimal_height,
|
client->info.optimal_width, client->info.optimal_height,
|
||||||
GUAC_TERMINAL_SCHEME_GRAY_BLACK);
|
argv[IDX_COLOR_SCHEME]);
|
||||||
|
|
||||||
/* Fail if terminal init failed */
|
/* Fail if terminal init failed */
|
||||||
if (client_data->term == NULL) {
|
if (client_data->term == NULL) {
|
||||||
|
@ -53,6 +53,7 @@ const char* GUAC_CLIENT_ARGS[] = {
|
|||||||
"password-regex",
|
"password-regex",
|
||||||
"font-name",
|
"font-name",
|
||||||
"font-size",
|
"font-size",
|
||||||
|
"color-scheme",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -100,6 +101,14 @@ enum __TELNET_ARGS_IDX {
|
|||||||
*/
|
*/
|
||||||
IDX_FONT_SIZE,
|
IDX_FONT_SIZE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name of the color scheme to use. Currently valid color schemes are:
|
||||||
|
* "black-white", "white-black", "gray-black", and "green-black", each
|
||||||
|
* following the "foreground-background" pattern. By default, this will be
|
||||||
|
* "gray-black".
|
||||||
|
*/
|
||||||
|
IDX_COLOR_SCHEME,
|
||||||
|
|
||||||
TELNET_ARGS_COUNT
|
TELNET_ARGS_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -201,7 +210,7 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
|
|||||||
client_data->font_name, client_data->font_size,
|
client_data->font_name, client_data->font_size,
|
||||||
client->info.optimal_resolution,
|
client->info.optimal_resolution,
|
||||||
client->info.optimal_width, client->info.optimal_height,
|
client->info.optimal_width, client->info.optimal_height,
|
||||||
GUAC_TERMINAL_SCHEME_GRAY_BLACK);
|
argv[IDX_COLOR_SCHEME]);
|
||||||
|
|
||||||
/* Fail if terminal init failed */
|
/* Fail if terminal init failed */
|
||||||
if (client_data->term == NULL) {
|
if (client_data->term == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user