mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Do not allow cursor colours to be set beginning with ? as that will
report the colour, from Hayaki Saito.
This commit is contained in:
parent
d31315884c
commit
3a09e01a8e
@ -44,7 +44,6 @@ const struct cmd_entry cmd_choose_client_entry = {
|
|||||||
|
|
||||||
struct cmd_choose_client_data {
|
struct cmd_choose_client_data {
|
||||||
struct client *client;
|
struct client *client;
|
||||||
char *template;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum cmd_retval
|
enum cmd_retval
|
||||||
|
5
input.c
5
input.c
@ -1565,10 +1565,11 @@ input_exit_osc(struct input_ctx *ictx)
|
|||||||
server_status_window(ictx->wp->window);
|
server_status_window(ictx->wp->window);
|
||||||
break;
|
break;
|
||||||
case 12:
|
case 12:
|
||||||
screen_set_cursor_colour(ictx->ctx.s, p);
|
if (*p != '?') /* ? is colour request */
|
||||||
|
screen_set_cursor_colour(ictx->ctx.s, p);
|
||||||
break;
|
break;
|
||||||
case 112:
|
case 112:
|
||||||
if (*p == '\0') /* No arguments allowed. */
|
if (*p == '\0') /* no arguments allowed */
|
||||||
screen_set_cursor_colour(ictx->ctx.s, "");
|
screen_set_cursor_colour(ictx->ctx.s, "");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user