mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
rebase
This commit is contained in:
parent
c2cb9508da
commit
69024e6b3a
1
.github/workflows/windows_test.yml
vendored
1
.github/workflows/windows_test.yml
vendored
@ -57,6 +57,7 @@ jobs:
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DUSE_DOCTEST=off \
|
||||
-DUSE_PANDOC=off \
|
||||
-DUSE_READLINE=off \
|
||||
-DUSE_QRCODEGEN=on
|
||||
|
||||
- name: make
|
||||
|
@ -1126,6 +1126,9 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
|
||||
// don't set loglevel until we've acquired the signal handler, lest we
|
||||
// change the loglevel out from under a running instance
|
||||
loglevel = opts->loglevel;
|
||||
#ifndef __MINGW64__
|
||||
// windows doesn't really have a concept of terminfo. you might ssh into other
|
||||
// machines, but they'll use the terminfo installed thereon (putty, etc.).
|
||||
int termerr;
|
||||
if(setupterm(opts->termtype, ret->ttyfd, &termerr) != OK){
|
||||
logpanic("Terminfo error %d (see terminfo(3ncurses))\n", termerr);
|
||||
@ -1136,6 +1139,7 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
|
||||
free(ret);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
ret->rstate.logendy = -1;
|
||||
ret->rstate.logendx = -1;
|
||||
ret->rstate.x = ret->rstate.y = -1;
|
||||
|
@ -43,5 +43,6 @@ int prepare_windows_terminal(tinfo* ti, size_t* tablelen, size_t* tableused){
|
||||
ti->caps.colors = 256;
|
||||
ti->caps.quadrants = true;
|
||||
ti->caps.braille = true;
|
||||
ti->termname = "Windows Terminal";
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user