mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
add 'ghostty ' to matched XTVERSIONS #2833
This commit is contained in:
parent
50f18543e4
commit
ee310959d3
@ -1556,6 +1556,7 @@ xtversion_cb(inputctx* ictx){
|
|||||||
{ .prefix = "contour ", .suffix = 0, .term = TERMINAL_CONTOUR, },
|
{ .prefix = "contour ", .suffix = 0, .term = TERMINAL_CONTOUR, },
|
||||||
{ .prefix = "kitty(", .suffix = ')', .term = TERMINAL_KITTY, },
|
{ .prefix = "kitty(", .suffix = ')', .term = TERMINAL_KITTY, },
|
||||||
{ .prefix = "foot(", .suffix = ')', .term = TERMINAL_FOOT, },
|
{ .prefix = "foot(", .suffix = ')', .term = TERMINAL_FOOT, },
|
||||||
|
{ .prefix = "ghostty ", .suffix = 0, .term = TERMINAL_GHOSTTY, },
|
||||||
{ .prefix = "mlterm(", .suffix = ')', .term = TERMINAL_MLTERM, },
|
{ .prefix = "mlterm(", .suffix = ')', .term = TERMINAL_MLTERM, },
|
||||||
{ .prefix = "tmux ", .suffix = 0, .term = TERMINAL_TMUX, },
|
{ .prefix = "tmux ", .suffix = 0, .term = TERMINAL_TMUX, },
|
||||||
{ .prefix = "iTerm2 ", .suffix = 0, .term = TERMINAL_ITERM, },
|
{ .prefix = "iTerm2 ", .suffix = 0, .term = TERMINAL_ITERM, },
|
||||||
@ -1720,14 +1721,16 @@ tcap_cb(inputctx* ictx){
|
|||||||
ictx->initdata->qterm = TERMINAL_MLTERM;
|
ictx->initdata->qterm = TERMINAL_MLTERM;
|
||||||
}else if(strcmp(key, "xterm-kitty") == 0){
|
}else if(strcmp(key, "xterm-kitty") == 0){
|
||||||
ictx->initdata->qterm = TERMINAL_KITTY;
|
ictx->initdata->qterm = TERMINAL_KITTY;
|
||||||
|
}else if(strcmp(key, "xterm-ghostty") == 0){
|
||||||
|
ictx->initdata->qterm = TERMINAL_GHOSTTY;
|
||||||
}else if(strcmp(key, "xterm-256color") == 0){
|
}else if(strcmp(key, "xterm-256color") == 0){
|
||||||
ictx->initdata->qterm = TERMINAL_XTERM;
|
ictx->initdata->qterm = TERMINAL_XTERM;
|
||||||
}else{
|
}else{
|
||||||
logdebug("unknown terminal name %s", key);
|
logwarn("unknown terminal name %s", key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else if(strcmp(val, "RGB") == 0){
|
}else if(strcmp(val, "RGB") == 0){
|
||||||
loginfo("got rgb (%s)", s);
|
loginfo("got rgb (%s)", key);
|
||||||
ictx->initdata->rgb = true;
|
ictx->initdata->rgb = true;
|
||||||
}else if(strcmp(val, "hpa") == 0){
|
}else if(strcmp(val, "hpa") == 0){
|
||||||
loginfo("got hpa (%s)", key);
|
loginfo("got hpa (%s)", key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user