Commit Graph

79 Commits (master)

Author SHA1 Message Date
KristofferC a3c37932d6 check __MINGW32__ instead of __MINGW64__ 3 years ago
KristofferC 186fd9781a make Lmcons.h lowercase
this is the actual name of the file which matters on case-senstivie systems
3 years ago
nick black eb55caf880 [windows] data path dir need always be heap allocated 3 years ago
nick black 5860d41da5
[compat] only declare strndup on windows c #2428 3 years ago
nick black b57d6eb8d8 notcurses_data_path: allow overrides 3 years ago
nick black a4bc4e1897 [windows] fall back to NOTCURSES_SHARE 3 years ago
nick black 7925df32cc
[ncneofetch] use notcurses_data_path() #2402 3 years ago
nick black 238de45e96 [nctetris] find the background everywhere #2042 3 years ago
nick black d85a0b213a [windows] dump diagnostic 3 years ago
nick black 4b3b904040 [windows] use DataDir for registry key, not InstallDir 3 years ago
nick black abb99d4a67
[notcurses-demo] don't hardcode NOTCURSES_SHARE, use notcurses_data_dir() 3 years ago
nick black 0c89881266 [xray] calculate 20s deadline #2385 3 years ago
nick black 70bfd825d7 [windows] get InstallDir from registry, working 3 years ago
nick black 455ec4eb66
combine path_seperator() functions 3 years ago
nick black 22b0934c4f [windows] correct semantics for strndup, fixes [zoo] #2365 3 years ago
nick black da4efcf905
notcurses_input.3: document NCKEY_SIGNAL 3 years ago
nick black 9b4fb10d6a
[windows] use regular u7 for cursor location reports #2284 3 years ago
nick black fe924be5ef
ABI3 changes (#2333)
Long-planned changes for API/ABI3 #1777

* remove old-style notcurses_ rendering functions
* Make notcurses_render() a static inline wrapper around
 ncpile_render(). Remove the deprecated
 notcurses_render_to_file() and ncpile_render_to_file().
* ncstrwidth() becomes static inline wrapper #1777
* remove deprecated ncvisual_subtitle()
* kill ncvisual_inflate(), long deprecated #1777
* remove deprecated palette256 wrappers #1777
* kill ncplane_new() #1777
* remove deprecated renderfp field from notcurses_options #1777
* reorder ncstats fields to match documentation #1777
* kill deprecated style functions #1777
* ncplane_move{top, bottom} become static inline #1777
** ncplane_pixelgeom -> ncplane_pixel_geom() #1777
* ncstyle functions ought return uint16_t #1777 #2200
* ncvisualplane_create: provide new pile functionality #1462
* [heuristics] GNU screen 4x never has rgb
* [BitmapSmoothMove] only WARN in test until sixel supports this #2258
* contour: enable sextants
* interp PoC: clean up ncvisual #2266
* ncselector_options: constify string arguments
* Constify strings in selector/mselector_items
 Use internal types to track items within the
 selector/mselector widgets, rather than pressing the
 user-provided item structs into double-duty. With this
 change, we can constify the strings within those
 user-provided items. Do so, also removing the internal-side
 elements. Update documentation. Closes #2267.
* constify ncmenu_item/_section strings
* constify strings in nctabbed_options
* notcurses-demo FPS graph: back to straight seconds
* remove unused wchar_from_utf8()
* nstrwidth_valid(): properly initialize bytes/width
* [ncneofetch] use GetSystemInfo on Windows
3 years ago
nick black b81ab750cc [macos] no pthread_condattr_setclock() #2302 3 years ago
nick black fec64cfc33 [core] use pthread_condattr_setclock rather than pthread_cond_clockwait() #2302 3 years ago
nick black 26d6c27329
[windows] explicit pthread.h include #2303 3 years ago
nick black 20fa1db5dd define clockwait save in presence of _USE_GNU #2291 3 years ago
nick black 9b30487e4a [windows] define pthread_cond_clockwait() #2292 3 years ago
nick black 1456422d89 use explicit CRLF where necessary on windows #2237 3 years ago
nick black 47bffea4ab extract out tiocgwinsz() #2141 3 years ago
nick black 3c7d23b151 [compat] add set_fd_cloexec() 3 years ago
nick black 6849ed9da7
[input] windows fixes 3 years ago
nick black 8c0d32d986
fix windows build 3 years ago
nick black 6d72fedca9
demo: kill warning on Windows #2062 3 years ago
nick black 1879ecbaff
Windows: declare faccessat() 3 years ago
nick black 93073e595a
move includes from ncport.h to internal compat.h 3 years ago
nick black 55b6800f22 Windows: input layer work #2096
Send standard terminal interrogation queries on Windows.
They've always worked; we simply needed the correct
console settings. Enable screen geometry lookup via
GetConsoleScreenBufferInfo(). This does not resolve
problems affecting e.g. MSYS2, where we're on Windows,
but need to use termios. We'll need a solution for that.
3 years ago
nick black b46f4aed8d Windows: empty define for sigemptyset to eliminate warning #2062 3 years ago
nick black 3f00d07579 set up Windows Terminal very early #2062 3 years ago
nick black 6296a2480f
don't export strndup for C++ code #2073 3 years ago
nick black 1c4bde91fb
clean out windows waitpid() until we have HANDLEs #2062 3 years ago
nick black 0b61b3cd47
sheesh 3 years ago
nick black afffeeaebf
need WinCon.h for GetConsoleScreenBufferInfo() 3 years ago
nick black a6575ebfd7 only define strndup as noexcept on linux 3 years ago
nick black f5dc483410
macOS doesn't like noexcept on strndup sigh 3 years ago
nick black cbf2c51ce4
mark strndup as noexcept 3 years ago
nick black 7c9163d5a1
GetExitCodeProcess: kill compiler error 3 years ago
nick black 54c8189ed2
fix msys2 build for real 3 years ago
nick black 6d4e58202f
fix windows build, ugh 3 years ago
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
3 years ago
nick black f64258f468 windows terminal: add ESCAPE_OP 3 years ago
nick black bf2754cedb get windows working once more 3 years ago
nick black 8f30a91d84 drop windows.h from compat.h 3 years ago
nick black 8074368ac3 purge ncurses aliases #2014 3 years ago
nick black 7a341283d3 shim ncurses A_* constants on windows 3 years ago