mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
[sprixel] don't yet enable sixel on alacritty
This commit is contained in:
parent
0febe3428f
commit
cc3cddf40b
@ -336,7 +336,7 @@ query_sixel(tinfo* ti, int fd){
|
|||||||
// we're looking for a 4 following a semicolon, or alacritty's insistence
|
// we're looking for a 4 following a semicolon, or alacritty's insistence
|
||||||
// on CSI 6c followed by XTSMGRAPHICS, which probably breaks us on a real
|
// on CSI 6c followed by XTSMGRAPHICS, which probably breaks us on a real
|
||||||
// VT102, but how many of them could there be? le sigh FIXME
|
// VT102, but how many of them could there be? le sigh FIXME
|
||||||
while(read(fd, &in, 1) == 1){
|
while(state != DONE && read(fd, &in, 1) == 1){
|
||||||
switch(state){
|
switch(state){
|
||||||
case WANT_CSI:
|
case WANT_CSI:
|
||||||
if(in == NCKEY_ESC){
|
if(in == NCKEY_ESC){
|
||||||
@ -367,19 +367,19 @@ query_sixel(tinfo* ti, int fd){
|
|||||||
break;
|
break;
|
||||||
case WANT_C_ALACRITTY_HACK:
|
case WANT_C_ALACRITTY_HACK:
|
||||||
if(in == 'c'){
|
if(in == 'c'){
|
||||||
|
/* FIXME alacritty has not yet merged their sixel support
|
||||||
setup_sixel(ti);
|
setup_sixel(ti);
|
||||||
state = DONE;
|
state = DONE; */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DONE:
|
case DONE:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(state == DONE){
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0; // FIXME return error?
|
query_sixel_details(ti, fd);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fd must be a real terminal. uses the query lock of |ti| to only act once.
|
// fd must be a real terminal. uses the query lock of |ti| to only act once.
|
||||||
@ -400,7 +400,6 @@ int query_term(tinfo* ti, int fd){
|
|||||||
ret = query_sixel(ti, fd);
|
ret = query_sixel(ti, fd);
|
||||||
ti->pixel_query_done = true;
|
ti->pixel_query_done = true;
|
||||||
if(ti->sixel_supported){
|
if(ti->sixel_supported){
|
||||||
query_sixel_details(ti, fd);
|
|
||||||
ti->pixel_init(fd);
|
ti->pixel_init(fd);
|
||||||
}
|
}
|
||||||
if(flags & O_NONBLOCK){
|
if(flags & O_NONBLOCK){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user