Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Aug 5, 2021
1 parent 2177f09 commit 497736c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/windows_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DUSE_DOCTEST=off \
-DUSE_PANDOC=off \
-DUSE_READLINE=off \
-DUSE_QRCODEGEN=on
- name: make
Expand Down
4 changes: 4 additions & 0 deletions src/lib/notcurses.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,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);
Expand All @@ -1137,6 +1140,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;
Expand Down
1 change: 1 addition & 0 deletions src/lib/windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 497736c

Please sign in to comment.