Commit Graph

44 Commits

Author SHA1 Message Date
nick black
1c4bde91fb
clean out windows waitpid() until we have HANDLEs #2062 2021-08-15 22:42:26 -04:00
nick black
0b61b3cd47
sheesh 2021-08-14 03:01:56 -04:00
nick black
afffeeaebf
need WinCon.h for GetConsoleScreenBufferInfo() 2021-08-13 20:52:09 -04:00
nick black
a6575ebfd7 only define strndup as noexcept on linux 2021-08-13 18:06:55 -03:00
nick black
f5dc483410
macOS doesn't like noexcept on strndup sigh 2021-08-13 15:26:06 -04:00
nick black
cbf2c51ce4
mark strndup as noexcept 2021-08-13 15:18:18 -04:00
nick black
7c9163d5a1
GetExitCodeProcess: kill compiler error 2021-08-13 15:11:38 -04:00
nick black
54c8189ed2
fix msys2 build for real 2021-08-13 15:08:10 -04:00
nick black
6d4e58202f
fix windows build, ugh 2021-08-12 19:24:01 -04:00
nick black
4d6526a61d ncneofetch rewritten in CLI mode
ncneofetch was previously direct mode followed by rendered mode with
margins, a Frankenstein application if one ever existed. Rewrite it
using CLI mode, extending the latter as necessary to accomplish this
task. We now have one fewer dependency on direct mode, we have better
proven out CLI mode, and we get a ~30% reduction in ncneofetch runtime.
Good stuff! Closes #2030.

Add ncplane_scrollup() and ncplane_scrollup_child()
Cleans up ncport.h
Eliminates some inconsequential memory leaks in ncneofetch
Add SPRIXEL_UNSEEN to avoid invalid moves on
 not-yet-displayed sprixels
2021-08-12 18:37:53 -04:00
nick black
f64258f468 windows terminal: add ESCAPE_OP 2021-08-05 06:39:09 -04:00
nick black
bf2754cedb get windows working once more 2021-08-05 06:39:09 -04:00
nick black
8f30a91d84 drop windows.h from compat.h 2021-08-05 06:39:09 -04:00
nick black
8074368ac3 purge ncurses aliases #2014 2021-08-05 06:39:09 -04:00
nick black
7a341283d3 shim ncurses A_* constants on windows 2021-08-05 06:39:09 -04:00
nick black
ecf24256a1 include winsock2.h before windows.h 2021-08-05 06:39:09 -04:00
nick black
9779dd9fef windows: don't try and use getpwuid() 2021-08-05 06:39:09 -04:00
nick black
01a2dd048e more windows headers 2021-08-05 06:39:09 -04:00
nick black
9d89df85fa compat.h: necessary headers 2021-08-05 06:39:09 -04:00
nick black
78382087f0 mock pid_t for windows 2021-08-05 06:39:09 -04:00
nick black
4c7dc8b327 fake up waitpid() for windows 2021-08-05 06:39:09 -04:00
nick black
4507f0f8e3 expose more of fd.c to windows 2021-08-05 06:39:09 -04:00
nick black
1b1411cae6 restrict sigaction()s to windows 2021-08-05 06:39:09 -04:00
nick black
6154fbcb56 windows: shim sigset_t 2021-08-05 06:39:09 -04:00
nick black
19797b3859 everybody's movin', everybody's groovin', baby #1977 2021-08-05 06:39:09 -04:00
nick black
1113f7dd35
windows: patch out more constants 2021-07-23 00:38:41 -04:00
nick black
03fbf57f24
fix up windows strndup compilation 2021-07-22 21:09:42 -04:00
nick black
b867935708
termdesc: wrap linux-only parts up for linux 2021-07-22 20:46:25 -04:00
nick black
3172f4712a
s/SA_SIGNINFO/SA_SIGINFO/g =[ 2021-07-22 20:36:12 -04:00
nick black
3d3561fe0e
windows: elide still more signal jank 2021-07-22 20:27:16 -04:00
nick black
fd13b70d27
windows: no sys/ioctl.h, move to compat.h 2021-07-22 18:41:06 -04:00
nick black
8332ff060c
windows: no langinfo.h 2021-07-22 18:13:22 -04:00
nick black
c733293421
[rage at sky] 2021-07-22 16:58:25 -04:00
nick black
8df13818de
windows: stub out siginfo_t 2021-07-22 16:52:05 -04:00
nick black
15c3d88ddb
windows: more signal/termios mitigation #463 2021-07-22 16:42:21 -04:00
nick black
d90736f84f
define O_CLOEXEC as O_NOINHERIT on windows 2021-07-22 16:28:08 -04:00
nick black
d3d0838c07
windows hates all of fd.c 2021-07-22 16:12:34 -04:00
nick black
ff2ef8571d
windows: no sys/wait.h, weird printf specifiers 2021-07-22 15:36:59 -04:00
nick black
dae8e340d2
still more windows garbage 2021-07-22 15:24:13 -04:00
nick black
5015e39f16 only need TIMER_ABSTIME on apple 2021-07-12 21:27:02 -04:00
nick black
33752742d1 byteswap on OS X #195 2021-07-12 21:27:02 -04:00
nick black
fb85bb9a53
magical incantation to not stomp DragonFly's clock_nanosleep #1121 2021-01-19 10:55:13 -05:00
nick black
d4aef247ea
Fixes for DragonFly BSD from Weitian LI #1121 2021-01-11 12:10:04 -05:00
nick black
8283adc28f
Introduce src/compat/ for all bins
I've created the new files src/compat/compat.{hc}. These
are available to all binaries by adding src to the include
directories, and src/compat/compat.c to the sources. Several
functions are implemented here which one or more target
operating systems are missing, right now all related to time.
This includes clock_nanosleep(), which is missing on OS X and
DragonFly BSD. Eliminate the other three definitions of
timespec_to_ns() and friends. Standardize on NANOSECS_IN_SEC
rather than the more opaque GIG. Progress on #1121.
2021-01-09 23:25:25 -05:00