Commit Graph

156 Commits

Author SHA1 Message Date
nick black
198d3b5f19 windows/freebsd: add logos 2021-11-25 15:18:04 -05:00
nick black
f992a55b2d [paint] stop processing line of plane on linefeed #2196 2021-11-25 15:18:04 -05:00
nick black
4087d59a05 [ncneofetch] return error on failure to emit newline 2021-11-25 15:18:04 -05:00
nick black
253ab19cf3 [ncneofetch] fix up infoplane placement for bottom of screen #2196 2021-11-25 15:18:04 -05:00
nick black
f88f1b8697 [pool_blit_direct] pass newlines through #2196 2021-11-25 15:18:04 -05:00
nick black
b611b35978 [ncneofetch] declare Aqua DM on macOS 2021-11-20 19:02:42 -06:00
nick black
1a61214a44 [ncneofetch] don't emit newline characters from ncart #2356 2021-11-19 11:48:48 -05:00
nick black
0d94049954
[ncneofetch] fix off-by-one on ncart #2357 2021-11-19 06:31:29 -05:00
nick black
0877973b10
[ncneofetch] tighten up infoplane 2021-11-16 23:32:00 -05:00
nick black
81a31c2a4b
[ncneofetch] remove screen dimensions, provide arch fallback #2341 #2336 2021-11-16 23:29:03 -05:00
nick black
ef339413b9
[fbcon] only move to INVALIDATED upon scroll, not QUIESCENT #2316 2021-11-14 09:15:24 -05:00
nick black
623d2bf8eb
[ncneofetch] arch moved its logo 2021-11-14 08:48:47 -05:00
nick black
491a7f74dc [ncneofetch] ponly want langinfo.h on non-windows 2021-11-14 02:49:16 -05:00
nick black
8491b6f64b
fetch: include langinfo.h #2344 2021-11-12 10:34:45 -05:00
nick black
423ff7898e [ncneofetch] use nl_langinfo for fallback (windows has no LANG) 2021-11-12 02:28:58 -05:00
nick black
ef2c18810e
[kitty] spool out into a buffer rather than zctx #2314 2021-11-12 01:44:14 -05:00
nick black
7c9e459ff2
[ncneofetch] break down Windows product versions 2021-11-11 23:20:55 -05:00
nick black
0f1768187b
[ncneofetch] break down Windows product versions 2021-11-11 23:11:41 -05:00
nick black
7f7edcce87 [windows] properly call GetSystemInfo() 2021-11-11 20:37:17 -05:00
nick black
224743c22a
[ncneofetch] need strings.h 2021-11-11 10:21:27 -05:00
nick black
afc63dccba
[ncneofetch] get core count on ARM #2336 2021-11-11 10:19:00 -05:00
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
2021-11-09 00:53:30 -05:00
nick black
12e01fdf5c [metric] prefix all defs with NC 2021-11-08 21:05:15 -05:00
nick black
c20e859a6d [python] API conversions 2021-11-08 21:05:15 -05:00
nick black
0231768406 prefix qprefix(), bprefix(), iprefix() with nc- 2021-11-08 21:05:15 -05:00
nick black
83ff2cfe5a unsigned geometries 2021-11-08 21:05:15 -05:00
nick black
85b6d55577
[utils] implement notcurses_osversion #2293 2021-10-21 19:02:09 -04:00
nick black
36646f1b9b pixel PoC / ncneofetch -> ncvisual_blit() #1462 2021-10-16 03:39:25 -04:00
nick black
0fef97c1fb ncneofetch: no scaling when using NCBLIT_PIXEL 2021-09-20 06:22:27 -05:00
nick black
343a74ac82
[ncneofetch] don't move logo to left #2138 2021-09-19 23:45:15 -04:00
nick black
b2b9655d6f don't try to run xrandr on XNU/Windows 2021-09-16 03:27:17 -05:00
nick black
3d02a75323
NCOPTION_DRAIN_INPUT in notcurses-info and ncneofetch 2021-09-16 01:11:59 -04:00
nick black
e70302416e [ncneofetch] try using sysctlbyname() on bsd for totalram 2021-09-10 04:13:10 -03:00
nick black
128c35dc69 [ncneofetch] get total RAM on apple 2021-09-10 02:02:52 -05:00
nick black
51de081616 [ncneofetch] don't go just printing NULLs 2021-09-10 01:52:37 -05:00
nick black
e7fe2d2ffd
[ncneofetch] kill 'KERNEL_XNU unhandled' warning 2021-09-10 02:35:44 -04:00
nick black
5734444d49 ncneofetch: use kern.osproductversion sysctl for macOS version #2158 2021-09-10 01:32:55 -05:00
nick black
25afdd8ab6 [kitty] handle level 1 of keyboard protocol #2131 2021-09-04 17:39:04 -04:00
nick black
ea75d9355c
[render] adjust bitmaps for scrolling
If a sprixel is in SPRIXEL_MOVED, check to see whether
it's the same x position as it was before, and whether
it's moved up a number of rows equal to the number of
scrolls. If that is the case, take the sprixel to
SPRIXEL_QUIESCENT rather than actually redrawing. This
both saves us a blit, and properly aligns bitmaps when
sixels scroll. Closes #2110.
2021-08-30 22:00:04 -04:00
nick black
ae1121402d
ncneofetch: accept -v 2021-08-30 19:54:52 -04:00
nick black
333c614120
ncneofetch: drop ending newline 2021-08-28 22:35:47 -04:00
nick black
ba030a3293 Windows: kill some warnings 2021-08-26 05:36:43 -04:00
nick black
5c3e3017ae ncneofetch: print windows logo, detect windows 2021-08-24 03:27:37 -04:00
nick black
2bd3fe5f92
bold up ncneofetch infoplane 2021-08-13 14:16:16 -04:00
nick black
43f2504259
ncneofetch: always center paletteplane 2021-08-12 23:51:11 -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
47fa86f90d ncneofetch: move to rendered mode for visual #2030 2021-08-12 18:37:53 -04:00
nick black
fd8e954a56 ncneofetch: drop direct.h header #2030 2021-08-12 18:37:53 -04:00
nick black
636101578c ncneofetch: bring neologo_present() into csi mode 2021-08-12 18:37:53 -04:00
nick black
367d7b79da ncneofetch: begin switch to cli mode #2030 2021-08-12 18:37:53 -04:00