mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
extract contour version from XTVERSION #1798
This commit is contained in:
parent
454d548650
commit
d0889d3615
@ -738,6 +738,11 @@ stash_string(query_state* inits){
|
||||
}else if(strncmp(inits->runstring, "WezTerm ", strlen("WezTerm ")) == 0){
|
||||
inits->qterm = TERMINAL_WEZTERM;
|
||||
}else if(strncmp(inits->runstring, "contour ", strlen("contour ")) == 0){
|
||||
size_t bytes = strlen(inits->runstring) - 8 + 1;
|
||||
inits->version = malloc(bytes);
|
||||
if(inits->version){
|
||||
memcpy(inits->version, inits->runstring + 8, bytes);
|
||||
}
|
||||
inits->qterm = TERMINAL_CONTOUR;
|
||||
}
|
||||
break;
|
||||
|
@ -943,6 +943,7 @@ TEST_CASE("Visual") {
|
||||
}
|
||||
}
|
||||
|
||||
// do a pixel video, reusing the same plane over and over
|
||||
SUBCASE("LoadVideoPixelScaleOnePlane") {
|
||||
if(notcurses_check_pixel_support(nc_) > 0){
|
||||
if(notcurses_canopen_videos(nc_)){
|
||||
@ -971,6 +972,7 @@ TEST_CASE("Visual") {
|
||||
}
|
||||
}
|
||||
|
||||
// do a pixel video with a different plane for each frame
|
||||
SUBCASE("LoadVideoPixelScaleDifferentPlanes") {
|
||||
if(notcurses_check_pixel_support(nc_) > 0){
|
||||
if(notcurses_canopen_videos(nc_)){
|
||||
|
Loading…
Reference in New Issue
Block a user