nick black
7140d1349c
demo: fix demo_getc() to use MAXSLEEP (12.5ms)
2020-12-06 12:28:22 -05:00
nick black
4cf4a4ce0b
egcpool: fix cell_egc_idx() math #1179
2020-12-06 11:55:45 -05:00
nick black
f8a6d21362
pull sleep out of unit test, doh
2020-12-06 09:18:32 -05:00
nick black
838280ce6b
ncls: don't use AT_NO_AUTOMOUNT on freebsd
2020-12-06 09:17:13 -05:00
nick black
564fcafee3
fileroller/procroller: use alternate screen
2020-12-06 09:03:13 -05:00
nick black
03c95b2b14
demo: minimal-width debug plane
2020-12-06 07:51:08 -05:00
nick black
e6209ff5fc
with apologies to salman rushdie
2020-12-06 07:09:06 -05:00
nick black
aeae053214
strange things going on with kitty + zalgo...
2020-12-06 07:02:22 -05:00
nick black
16320792c2
demo: turn on NCPLOT_OPTION_PRINTSAMPLE #1183
2020-12-06 06:40:39 -05:00
nick black
4b2fe60032
plots: use slotcount - 1 for samples #1183
2020-12-06 06:40:29 -05:00
nick black
14fa544433
add NCPLOT_OPTION_PRINTSAMPLE #1183
2020-12-06 06:33:54 -05:00
nick black
5257232f2f
plot: use T-type intervalbase #1184
2020-12-06 06:07:18 -05:00
joseLuís
98d86ec286
rust: remove cc build dep. & stdout.c file; #355
2020-12-06 11:58:46 +01:00
joseLuís
a0e1577b56
rust: fix comments
2020-12-06 11:40:07 +01:00
joseLuís
96eaa29484
rust: add lib doc comments with examples
2020-12-06 11:00:41 +01:00
joseLuís
c46c06a2e9
rust: move NcScale & NcVisual to visual module
2020-12-06 10:59:19 +01:00
nick black
e46d9e2a2b
fpsgraph_stop: don't render
2020-12-06 03:10:11 -05:00
nick black
9b7238fdc9
demo: preserve plot/hud/etc. on shutdown
...
If we're using -k to inhibit use of the alternate screen
for notcurses-demo, we want to see what was on the screen
when we quit. If we're actually quitting, don't destroy
these components manually, so they remain visible.
2020-12-06 03:06:02 -05:00
nick black
a7f59e4fab
plots: use pool_blit_direct() #1182
...
Use pool_blit_direct() instead of ncplane_putwc_yx() in
redraw_plot(). This eliminates use of rtl_egc() and wcwidth()
on the EGCs used in plots, sidestepping Debian's -1 wcwidth
for sextants (in the same fashion blitting does) and slightly
speeding up plot drawing. At a plot rate of 10Hz, notcurses-demo
is now faster than it used to be at 1Hz, so that's nice.
2020-12-06 02:53:13 -05:00
nick black
93f7f681a4
add unit tests for all plottypes #1081
2020-12-06 02:51:08 -05:00
nick black
fcfcf75868
Merge branch 'master' of github.com:dankamongmen/notcurses
2020-12-06 01:25:46 -05:00
José Luis Cruz
a69aa1d157
split out the UI ASCII art doc comments; fix #1180
2020-12-06 01:25:39 -05:00
nick black
176867db8b
add unit test for braille plot #1081
2020-12-05 23:50:59 -05:00
nick black
7df34f7571
Merge branch 'master' of github.com:dankamongmen/notcurses
2020-12-05 22:43:20 -05:00
nick black
73d9668d13
de-picklize eagles with help from k. sarkozy
2020-12-05 22:42:00 -05:00
joseLuís
01f7434a9a
rust: rename bindgen module to ffi
2020-12-05 18:55:10 +01:00
nick black
8091e5c7e0
demo: plot by decisecond instead of second #1081
2020-12-05 03:37:22 -05:00
nick black
2cb8295146
demo: use braille for plot, looks great
2020-12-05 02:48:38 -05:00
nick black
58b47bf953
unit test for cell_load_egc32() #1176
2020-12-05 02:36:55 -05:00
nick black
ea771217fb
cell_load_char() unit tests #1176
2020-12-05 02:18:05 -05:00
nick black
66b911de38
move wcwidth()==-1 emoji to end of mojibake
2020-12-05 01:42:38 -05:00
nick black
ea18be772a
don't call egc_rtl() on negative bytes
2020-12-05 00:39:37 -05:00
nick black
0cba073cc9
simplify pool_blit_direct()
2020-12-05 00:39:37 -05:00
nick black
11bbf3c4ff
correct endianness for cell_simple_p()
2020-12-05 00:39:37 -05:00
nick black
8db3f77f5c
Wide test: kill duplicate CHECK
2020-12-05 00:39:37 -05:00
nick black
afbccc5bde
big-endian fix for iscntrl()
2020-12-05 00:39:37 -05:00
nick black
429bfac785
apply htole() to blanks in paint()
2020-12-05 00:39:37 -05:00
nick black
1c188508d4
add a 1x1 run to widestomp PoC
2020-12-05 00:39:37 -05:00
nick black
0999e0ad3b
add gcluster endianness comments
2020-12-05 00:39:37 -05:00
joseLuís
d19c753227
rust: use cstring macro instead of CString function
2020-12-05 04:04:02 +01:00
joseLuís
57d2eddbf5
rust: more refactoring, channel methods, new macro.
...
- add NcChannel methods
- add the `NcChannelMethods` Trait to be able to use them,
since you can't implement methods over a primitive otherwise, unlike over a struct like NcPlane. And NcChannel is a type alias of `u32`.
- create more channel functions, to set the r,g,b separately.
- made some functions const
- add new rsleep![] macro, for rendering before sleeping.
- improve doc comments.
- fix previous commits.
2020-12-05 03:54:52 +01:00
joseLuís
5def609c73
rust: add stats methods
2020-12-05 03:48:55 +01:00
joseLuís
e822e85a14
rust: Drop trait doesn't work with &muts; del impls
2020-12-05 01:58:24 +01:00
joseLuís
2483771af1
rust: Don't derive the Copy trait
...
- implement the Drop trait for the all the obvious types.
- resolve lifetime issues revealed from not being Copy.
- return
2020-12-05 01:32:51 +01:00
nick black
3893f085e3
Merge branch 'master' of github.com:dankamongmen/notcurses
2020-12-04 18:10:23 -05:00
nick black
35bd9aaae0
whiteout demo: change timing to allow for analysis
2020-12-04 18:09:52 -05:00
joseLuís
6ad18bfa7b
rust: refactoring and corrections.
...
- reorder cell, ncchannel & ncplane reimplemented functions.
- minor fixes and corrections.
- improve doc comments.
2020-12-04 13:31:30 +01:00
nick black
0645fb3931
run cell_load_char()/egc32() through cell_load() #1176
2020-12-04 03:06:51 -05:00
joseLuís
01e4f7de5a
rust: big refactor
...
- move tests to their own submodules
- move functions reimplementations to reimplemented submodule.
- remove types submodules and move them to their parent.
- add more NcPlane & Notcurses methods
- rename NcChar back to NcEgc, and NcCharBackstop tp NcEgcBackstop
- add ncpile_top & ncpile_bottom functions.
- fix Notcurses stdplane(_mut) methods
- make cell_load_char not return anything since it was always 1.
2020-12-04 02:26:11 +01:00
nick black
e5306f6197
widestomp PoC: eliminate color weirdness #1175
2020-12-03 13:09:19 -05:00