Lines Matching defs:command
815 static int on_csi(const char *leader, const long args[], int argcount, const char *intermed, char command, void *user)
865 switch(intermed_byte << 16 | leader_byte << 8 | command) {
1322 static int on_osc(const char *command, size_t cmdlen, void *user)
1329 if(strneq(command, "0;", 2)) {
1330 settermprop_string(state, VTERM_PROP_ICONNAME, command + 2, cmdlen - 2);
1331 settermprop_string(state, VTERM_PROP_TITLE, command + 2, cmdlen - 2);
1334 else if(strneq(command, "1;", 2)) {
1335 settermprop_string(state, VTERM_PROP_ICONNAME, command + 2, cmdlen - 2);
1338 else if(strneq(command, "2;", 2)) {
1339 settermprop_string(state, VTERM_PROP_TITLE, command + 2, cmdlen - 2);
1346 static void request_status_string(VTermState *state, const char *command, size_t cmdlen)
1349 switch(command[0]) {
1374 if(strneq(command, " q", 2)) {
1386 else if(strneq(command, "\"q", 2)) {
1392 vterm_push_output_sprintf_dcs(state->vt, "0$r%.s", (int)cmdlen, command);
1395 static int on_dcs(const char *command, size_t cmdlen, void *user)
1399 if(cmdlen >= 2 && strneq(command, "$q", 2)) {
1400 request_status_string(state, command+2, cmdlen-2);