[automaton] handle broken contour palette replies #2539

This commit is contained in:
nick black 2022-01-08 14:15:18 -05:00
parent 949925e1f7
commit db6b5af77a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1657,6 +1657,11 @@ build_cflow_automaton(inputctx* ictx){
logerror("failed adding palette_cb");
return -1;
}
// handle old-style contour responses, though we can't make use of them
if(inputctx_add_cflow(&ictx->amata, "]4;rgb:\\S", palette_cb)){
logerror("failed adding palette_cb");
return -1;
}
}
return 0;
}