Commit Graph

3629 Commits

Author SHA1 Message Date
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
nick black
c8378e62ff
README: update video link 2020-12-03 01:58:15 -05:00
nick black
b9ae0eee8c
readme: note that some terminals draw block chars directly 2020-12-03 01:57:23 -05:00
nick black
f3688f44fb
CMake: add demo target 2020-12-03 01:47:40 -05:00
nick black
f6a5aebf71
link to ncurses/libunistring in readme 2020-12-03 01:39:09 -05:00
Nick Black
6d1a4fce6b issue templates 2020-12-03 01:22:42 -05:00
nick black
b38d742358
wcwidth PoC: only print (!) for errors 2020-12-03 01:12:13 -05:00
nick black
6fb5c1e512 Fill out some API holes, improve some comments
- Disambiguate the docs for ncplane_erase()
- Add ncpile_top(), ncpile_bottom()
- Refuse attempts to modify the standard plane's resizecb
- Copy alignment and resizecb in ncplane_dup()
- Add cell_load_egc32()
2020-12-03 01:02:16 -05:00
joseLuís
38bdc627a4 rust: more refactoring
- new macros module, with sleep![] and cstring![] macros.
- rename NCell constructors.
- more plane methods.
- improve doc comments.
2020-12-03 04:30:13 +01:00
joseLuís
4ea2ccc51d rust: more refactor and fixes
- create some more notcurses tests.
- rename `constructors` submodules to `wrapped`.
- fix ncplane_str so to accept &str.
- implement some rusty methods for NcPlane, as a POC.
- improve multiple doc comments.
2020-12-03 02:22:21 +01:00
nick black
5b8c71b9b0
flesh out notcurses_reel.3 #1171 2020-12-02 20:15:53 -05:00
nick black
7b7ed8441d
weakly repair accursed reel unit tests #1082 2020-12-02 19:10:30 -05:00
nick black
fd9e0e6510
Merge branch 'master' of github.com:dankamongmen/notcurses 2020-12-02 19:00:53 -05:00
nick black
744ba8a75c
reels: properly size cbp when drawing bottom border #1082 2020-12-02 19:00:49 -05:00
nick black
e30c43906f
remove OnlyOneNotCurses unit test 2020-12-02 14:11:16 -05:00
nick black
79b9a8120e
notcurses-tester: check validity of datadir on start #1168 2020-12-02 14:11:15 -05:00
nick black
2c85142b2a
notcurses_init: don't treat setup_signals as fatal error #1168 2020-12-02 14:11:15 -05:00
nick black
186b3a2a5e kill ifdefs via explitict initialization 2020-12-02 12:57:17 -05:00
igo95862
87d1ba17e6 Made CELL_TRIVIAL_INITIALIZER compatable between C and C++ 2020-12-02 12:17:30 -05:00
igo95862
5e60e84fdf Under ISO C the empty initializer is {0} not { } 2020-12-02 12:17:30 -05:00
igo95862
5f45d9178b Added information about C standard to the CONTRIBUTING
Probably useful for people who want to contribute C code.
2020-12-02 12:17:30 -05:00
joseLuís
24640eb80e rust: big modules refactor
- remove the types module, and move the types definitions
  into submodules
- improve multiple comments
2020-12-02 14:01:09 +01:00
joseLuís
1206a281ec rust: keep refactoring and improving docs
- remove the use of inline code markings inside rustdoc [`links`],
  because they are too visually distracting.
- Use descriptive language in the doc comments, instead of imperative.
- Rename NcChannels to NcChannelPair, for improved clarity.
- Improve more comments, add inner links.
- Improve some tests.
- separate tests and constructors into submodules for cells and channels
2020-12-02 02:12:12 +01:00
joseLuís
279f36ec93 rust: more tests, refactors & improvements
- separate tests and constructors into submodules for cells and channels
- add missing functions channels_set_bg_palindex & channels_set_fg_palindex
- fix bug in channel_palindex_p function
- wrap NCSTYLE_* constants
- add more missing cell tests
- improve many doc comments
- fix some types
2020-12-01 19:26:51 +01:00
igo95862
535fffa9d5
python: Improved ISO C compliance 2020-12-01 18:01:36 +03:00
igo95862
788a327c98
python: Fixed the error check on input using wrong c type 2020-12-01 17:56:28 +03:00
igo95862
b2163e8f8c
python: Added Py_UNUSED macros for unused arguments 2020-12-01 17:49:34 +03:00
igo95862
ce3ddb8d4e
python: Fixed compile error because ncplane_options was changed 2020-12-01 17:40:35 +03:00
nick black
8083b46e3b
v2.0.9 2020-12-01 04:37:37 -05:00
nick black
698540286c ncmenu: move unrolled section on resize #1162 2020-12-01 04:34:22 -05:00
nick black
fc609f9d7d ncmenu: resize and redraw callback #1165 2020-12-01 04:34:22 -05:00
nick black
6124d0e0d9
add link to ncls from man1 index 2020-12-01 04:34:04 -05:00
nick black
76f2353cb4 lock all accesses to notcurses_resize() #1162 2020-12-01 04:17:39 -05:00
nick black
1b1cc291f6 Resolve segfaults/undefined behavior on resize
Consult the new section of HACKING.md for full details. By
performing the resize check in rasterization, we potentially
have too many (3) different geometries at work once we hit
rasterization. Furthermore, we have some pessimal behavior
regarding rendering into enlarged terminals, since we don't
know the new size at render time. Instead, move it to the top
of ncpile_render(), and guard it with a lock (this was in any
case necessary, since the screen geometry can be
shared/mutated concurrently with render operations).
Closes #1162.
2020-12-01 04:17:39 -05:00
nick black
93fef72da8 mention ncls in README.md 2020-12-01 04:17:39 -05:00