Commit Graph

156 Commits

Author SHA1 Message Date
nick black
3352bd2789
ncneofetch: we'll want to get the real macOS version 2021-08-12 02:43:51 -04:00
nick black
f5d16d1d8a new functions notcurses_{account,host}name() 2021-08-05 06:39:09 -04:00
nick black
a0007a9a3c add u7/cnorm/civis to windows 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
c091f95b6d no getuid on windows 2021-08-05 06:39:09 -04:00
nick black
6c552455b3 getlocalhostname() for windows 2021-08-05 06:39:09 -04:00
nick black
9066876ee0 windows: no utsname.h 2021-08-05 06:39:09 -04:00
nick black
c5398e09e1 pass TAM down through iterm2 graphics stack #1950 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
8947a5f5d7
not many neofetch changes recently 2021-07-14 22:57:48 -04:00
nick black
2c838e3aa7 info: when printing neoart, use default foreground 2021-07-13 01:57:54 -05:00
nick black
3458c440d9 ncneofetch gets a logo on darwin #1925 2021-07-12 22:04:38 -04:00
nick black
50a7996b4f
notcurses_detected_terminal: use termdesc_longterm() 2021-07-04 07:01:50 -04:00
nick black
5451ecd890
return version in ncdirect_detected_terminal() 2021-07-04 06:37:34 -04:00
Nick Black
ec5ba6da80 ncneofetch: popen(3) wants pclose(3), not fclose(3) 2021-06-23 15:01:14 -04:00
nick black
0d7a5a5ef8 remove the majority of notcurses_check_pixel_support() calls #1469 2021-06-13 18:21:14 -04:00
nick black
d695a8206f
add ncdirect_detected_terminal() and notcurses_detected_terminal() #1759 2021-06-12 13:10:16 -04:00
nick black
d20a4d8104
ncdirect: restore colors properly following sgr #1703 2021-05-31 20:07:10 -04:00
Daniel Eklöf
632cbcc881 fetch: add artix to distro info 2021-05-11 11:56:22 -04:00
nick black
3eb004b61d s/channels/ncchannels/g #1570 2021-04-29 01:32:08 -04:00
nick black
96ac640733
cell->nccell 2021-04-14 09:31:50 -04:00
Nick Black
e591ec2e98
cell -> nccell throughout much of remaining API (#1535)
cell -> nccell throughout much of the API #1532
2021-04-14 06:42:14 -04:00
nick black
ff76dba6ed
cell_strdup -> nccell_strdup 2021-04-10 09:21:52 -04:00
nick black
33d408b4a3
[sixel] call sprite_sixel_init at proper time #1436 2021-03-22 07:30:17 -04:00
nick black
11108e4d95 [kitty] kitty_cell_wipe() now works perfectly 2021-03-20 10:59:33 -04:00
nick black
228b9edf09
ncneofetch: adapt to screen width for neofetch-style logos 2021-03-07 21:25:57 -05:00
nick black
9b2ce38385
ncneofetch: print units on RAM output 2021-03-07 14:11:59 -05:00
nick black
d1fc0c3adc
ncneofetch: no newline in RAM line #1386 2021-03-07 14:10:50 -05:00
nick black
7b28c68cd5 ncneofetch: prettier RGB signifier 2021-03-02 08:12:37 -05:00
nick black
43937cfb5b ncneofetch: use NCBLIT_PIXEL #1380 2021-03-02 08:12:37 -05:00
nick black
44826194e7 ncneofetch: eliminate PATH_MAX usage for Hurd #1375 2021-02-27 19:03:42 -05:00
nick black
54c5675318
fetch_bsd_cpuinfo: no love from hurd 2021-02-18 08:13:27 -05:00
nick black
d09152ca00
no sysctl.h on hurd 2021-02-08 12:07:32 -05:00
nick black
0a6056fde4
reproduce MIT license in ncart.c #1323 2021-02-03 00:43:15 -05:00
nick black
fe50c8ba29
ncneofetch: only free cpu_model if we know we'll replace it 2021-01-21 23:51:33 -05:00
nick black
659df1725b
ncneofetch: fall back to ncart if we can't display image #1304 2021-01-21 23:03:04 -05:00
nick black
8c508bbb5a
ncneofetch: use freebsd sysctl for cpu info #1284 2021-01-13 05:28:35 -05:00
nick black
a48c149b77
ncneofetch: fall back harder to neofetch logo 2021-01-13 05:11:38 -05:00
nick black
9077bd2ee2
ncneofetch: use big daemon logo on FreeBSD 2021-01-13 05:07:18 -05:00
nick black
b38b2c9fdb
ncneofetch: print explanation for neologo #1260 2021-01-12 04:12:32 -05:00
nick black
fb2afee75e
ncneofetch: account for multicol glyphs in neologos #1260 2021-01-12 03:42:09 -05:00
nick black
6077cbde5c
tighten up ncneofetch a bit
Use 74 columns for infoplane, handling longer model names.
Match /etc/os-release fields whether delimited by tabs or
spaces. Properly extract only the names from /etc/os-release.
2021-01-12 01:03:24 -05:00
nick black
c4f61c528d
ncneofetch: center neologo #1260 2021-01-12 00:33:03 -05:00
nick black
aab28aadb4
ncneofetch: hook up ncart logos #1260 2021-01-11 23:46:56 -05:00
nick black
fe800436ca
ncneofetch: work on non-x86
/proc/cpuinfo doesn't always declare a Model Name, but
it seems to have a vendor_id everywhere I've been able
to check (s390x etc.). fall back to vendor_id in the
absence of a model name. count cores based off instances
of core id while we're at it (likewise fixes s390x).
2021-01-11 23:16:57 -05:00
nick black
103639d901
ncneofetch: recognize DragonFly BSD #1121 2021-01-11 22:03:19 -05:00
nick black
01d9b63c5b
add warningless ncart.c generate #1260 2021-01-10 16:47:39 -05:00
nick black
250d50134e
neofetch-ripper: build usable C code 2021-01-10 16:39:11 -05:00
nick black
ab846f9ac8
ncneofetch improvements
* Use NCBLIT_DEFAULT rather than explicit 2x2, so that we use
  NCBLIT_3x2 on terminals which support it.
* Use NCSCALE_SCALE_HIRES rather than NCSCALE_SCALE.
* Support LOGO in /etc/os-release, with or without quotes.

Closes #1246.
2021-01-03 13:52:00 -05:00
nick black
9021526f45
ncneofetch: always call notcurses_stop #1246 2021-01-02 14:23:33 -05:00
nick black
69e329d328
BigMult unit tests: fix for non-'.' decseps 2020-12-28 14:23:32 -05:00
nick black
76d8e2dfce
ncdirect_{fg, bg}_default() -> ncdirect_set_{fg, bg}_default() #1261 2020-12-28 13:38:05 -05:00
nick black
0e8faed3f5
ncneofetch: check LOGO field in /etc/os-release #1246 2020-12-28 03:54:38 -05:00
nick black
fd2acde1b1 rename cell->nccell, keep alias #1200 2020-12-13 00:49:37 -05:00
nick black
eef6df8c0a death to horiz #1115 2020-11-17 23:42:36 -05:00
nick black
683217ef07 normalize style setters #1034 2020-09-29 13:09:44 -04:00
nick black
36aed3c521 add ncplane_create() + ncplane_options #1020 2020-09-20 05:52:27 -04:00
nick black
a4367fcfb5 rip out ncplane_ creation functions #985 2020-09-18 17:46:57 -04:00
nick black
b7a57eaab7 convert all channel rgb calls #985 2020-09-18 01:39:21 -04:00
nick black
8f089bc017 ncneofetch: don't leak stderr from popen 2020-09-13 13:22:58 -04:00
nick black
2f28420034 rename ncplane_putsimple() -> ncplane_putchar() #912 2020-08-31 21:14:29 -04:00
nick black
4c7a1d0427 ncdirect_init: add flags parameter #976 2020-08-30 13:38:33 -04:00
nick black
7d7f2f76f0
ncneofetch: remove coordinate inversion #964 #784 2020-08-29 21:41:49 -04:00
nick black
4dd1d6a4c8 Annihilate nc_err_e and all infrastructure #948 2020-08-24 17:20:29 -04:00
nick black
73e71622f7
ncneofetch: free up some allocations 2020-08-08 08:05:19 -04:00
nick black
20864949fa
ncneofetch: check for swapped cursor coordinates #765 2020-07-11 01:38:23 -04:00
nick black
750f88b70a split direct into its own header 2020-07-10 18:41:25 -04:00
nick black
b829398538 ncdirect_render_image: accept ncalign_e parameter #759 2020-07-03 21:24:00 -04:00
Nick Black
415d4b813f
Tight work on unit testing, controlling tty vs output fd (#758)
* Some things go to the FILE* we're provided. Some can only go to a controlling terminal. Check to see if the FILE we're given is a TTY. If not, open up /dev/tty #752.
* term_emit(): fflush() can return EAGAIN. Loop on it to eliminate a rare error on shutdown that particularly affected unit tests (where we start and shut down Notcurses many times in a row).
* sgr poc: check return value of setlocale()
* drone: run all unit tests
* CMake: add some tests using PoCs
* ncneofetch: print even small palettes
2020-07-02 18:03:52 -04:00
nick black
6b5fd0d009
ncdirect_render_image(): handle newlines properly
in ncdirect_render_image(), we want to emit newlines if and
only if we did not hit the right border. we want to emit
cuds (cursor downs) if and only if we've hit the bottom
border. this resolves all mysteries of blank lines, eliminating
a FIXME. it also fixes ncneofetch's image display on very
wide terminals. closes #756. also removes the display semaphore
in ncneofetch, using a more natural pthread_join().
2020-07-02 00:10:59 -04:00
nick black
31c584e2e6 ncneofetch: work no matter y offset, done! #750 2020-07-01 20:30:06 -04:00
nick black
8fedec050c ncneofetch: draw infoplane with notcurses + margin_t #750 2020-07-01 20:30:06 -04:00
nick black
cda4253a0a ncneofetch: sem_post() on error path 2020-07-01 20:30:06 -04:00
nick black
a8db078689 ncneofetch: default background on palette 2020-07-01 20:30:06 -04:00
nick black
4e04c3ae8f ncneofetch: fill out first line of infoplane 2020-07-01 20:30:06 -04:00
nick black
45fbbdb4ef ncneofetch: align output #750 2020-07-01 20:30:06 -04:00
nick black
33cb21d917 ncdirect_printf_aligned() added #750 2020-07-01 20:30:06 -04:00
nick black
4889e9b391 ncneofetch: scale 2020-07-01 20:30:06 -04:00
nick black
60619fc4b9 ncneofetch: move back to NCSCALE_SCALE #750 2020-07-01 20:30:06 -04:00
nick black
7eb70dad71 ncneofetch: display() in direct mode #750 2020-07-01 20:30:06 -04:00
nick black
7a022a4c76 ncneofetch: show palette via direct mode #750 2020-07-01 20:30:06 -04:00
Nick Black
d5dca33e00 ncneofetch: don't print (null) for distro_pretty 2020-06-28 06:43:29 -04:00
nick black
1d71aa4830
ncneofetch: display palette just above image 2020-06-23 07:36:40 -04:00
nick black
c7c0909c17
ncneofetch: don't read from NULL cpuinfo FILE 2020-06-21 02:53:40 -04:00
nick black
a48ccfacf3
ncneofetch: include LANG/UID 2020-06-19 16:09:32 -04:00
nick black
79d3ae67e4
add notcurses_cantruecolor() 2020-06-18 11:04:29 -04:00
nick black
5a466ade18
ncneofetch: get cpu info #550 2020-06-18 10:29:00 -04:00
nick black
89b2106075
ncneofetch: don't call out to lsb_release, cuts 95% of running time lol #550 2020-06-18 10:20:32 -04:00
nick black
189841d992
ncneofetch: thread the logo load+draw #550 2020-06-18 10:02:02 -04:00
nick black
9f69e4d998
ncneofetch: show x resolution when possible #550 2020-06-18 09:45:28 -04:00
nick black
292f0d9294
ncneofetch: get desktop manager + shell #550 2020-06-18 05:40:32 -04:00
nick black
37ba3a0bd4
ncneofetch: metricize ram #550 2020-06-18 05:14:13 -04:00
Nick Black
16c086b41a CMake: don't define killer options on FreeBSD 2020-06-18 02:57:57 -04:00
nick black
355021de56
ncneofetch: print ram/processes #550 2020-06-18 01:34:07 -04:00
nick black
b8c5f51040 ncneofetch: fedora support #550 2020-06-18 00:48:46 -04:00
nick black
611b96ba46
ncneofetch: draw palette #550 2020-06-18 00:35:33 -04:00
nick black
ecfd1bd422
ncneofetch: print kernel/distro version #550 2020-06-17 23:51:07 -04:00
nick black
4db4a85704
ncneofetch: stylize infoplane #550 2020-06-17 21:55:25 -04:00
nick black
a29d10855e
ncneofetch: vertically center logo 2020-06-17 21:32:08 -04:00
nick black
85cef91ad9
ncneofetch: user/hostname on unix, put 'em in title #550 2020-06-17 20:45:58 -04:00