Commit Graph

1777 Commits (bc0016b827b71053eeef71fa0475cb79b120e050)

Author SHA1 Message Date
nick black c21f0fb812 ncselector_dim_yx: eliminate boundary checks 4 years ago
nick black c0ffe0ae91 reeldemo: kill compiler warning with grim cast 4 years ago
nick black 703fbc853e
zoo: differentiate title from borders 4 years ago
nick black 59fe0cb829
zoo demo: color up selectors 4 years ago
nick black e17f7198e7
printf(%lc) is wint_t not wchar_t 4 years ago
nick black 58f7dab1c0 doc it up (a plan for ncreels, that is) 4 years ago
nick black a080ac83b8 ncreel: remove wresize wrapper, introduce direction_e 4 years ago
nick black 3ba98c8b22 move ncselector defintiion into selector.c 4 years ago
nick black c618096083
ncselector_redraw(): don't call notcurses_render() #627 4 years ago
nick black ead60d06cc
unexport cell_egc_idx() 4 years ago
nick black ca2a6501e6
rasterize: remove noforeground check, no longer useful 4 years ago
nick black 78fdad0f43
demo: simplify HUD code, print top to bottom 4 years ago
nick black bc9ecd86a8
kill -Wempty-body warning 4 years ago
Cheong Sik Feng ccbb3fda22 use ncplane_resize_simple() instead of ncplane_resize() 4 years ago
Cheong Sik Feng 91613528f2 resize plane in additem and delitem when necessary
Signed-off-by: Cheong Sik Feng <sikfeng@gmail.com>
4 years ago
nick black b0c1a0ae18
zoo: fix reference to loaded file, use find_data() 4 years ago
nick black 5c5077840e
intro/hud: place things a bit tighter to avoid HUD stomping intro line 4 years ago
nick black ce8b34da86 Glyph transparency in selector backgrounds #847 4 years ago
nick black 7e43077128
ncselector_additem: extend longops/longdesc if necessary #846 4 years ago
nick black 835a62361d
cell_nobackground_p(): load time, 5% perf win =] =] =] #838 4 years ago
nick black 2dcab374c4 mojibake: fix some row overruns #842 4 years ago
nick black ca6ecf2f35 ncplane_resize(): fix irregular keep areas #842 4 years ago
nick black fe904cc8da resize PoC: restore bottom stanza 4 years ago
nick black 886255e941 mojibake: clean up topmost line of display #842 4 years ago
nick black c1c1238e7e resize PoC: add some functionality #842 4 years ago
nick black 63556d295f
demo: color HUD light rather than dark 4 years ago
nick black ac59918682
zoo: mention plots! #835 4 years ago
nick black 9a758b82e2 zoo: speed up the "typing" 4 years ago
nick black b7b6572bc7 zoo: render informative text on ncreader #835 4 years ago
nick black 5a9e2645a5 zoo: blend reader background 4 years ago
nick black 78a7b4d255 constify ncreader_options->egc 4 years ago
nick black c8f623a426 zoo: add necessary locking #835 4 years ago
nick black bea35fb91f zoo: delay based off mult, add reader thread #835 4 years ago
nick black 86e6b2d89b
cell_load_direct(): simplify conditionals 4 years ago
nick black 620ae34c02
Merge branch 'master' of github.com:dankamongmen/notcurses into master 4 years ago
nick black 1a82273231
selector: handle nonzero defidx with zero maxdisplay #834 4 years ago
nick black 0b55b360ff
mojibake: leave some wiggle room for invalid wcwidth() 4 years ago
nick black aec5f79369
demo: move HUD down, right above FPS plot 4 years ago
nick black dde540b1da
zoo demo: render prior to inter-widget pause 4 years ago
nick black 2b4b516260
selector PoC: use CHANNELS_RGB_INITIALIZER() 4 years ago
nick black d23bf9a393
zoo demo: use CHANNELS_RGB_INITIALIZER() for selector 4 years ago
nick black 47800e57f1
zoo demo: multiselector use CHANNELS_RGB_INIT 4 years ago
nick black 6d6c375265 notcurses-demo: accept --help longform argument 4 years ago
nick black 8f9646c194 zoo: delay + handle input for multiselector #628 4 years ago
nick black c036f14b07 zoo: pause following selector, handling input #628 4 years ago
nick black e0cf13999d zoo: text for multiselect #628 4 years ago
nick black 74d80d76b1 zoo demo: handle inputs 4 years ago
nick black a5f2160558 zoo demo: background 4 years ago
nick black c7cd82af55 update zoo demo for no itemcount 4 years ago
nick black e24d0f9b0a zoo: add items to selector 4 years ago
nick black 7174a84e94 zoo: add multiselector 4 years ago
nick black 988bb1f2a6 zoo: create selector 4 years ago
nick black f62277a69b add zoo demo #628 4 years ago
nick black ab2710cf7a
selector poc: improve background contrast 4 years ago
nick black bac02bccd0
selector/multiselect: kill itemcount options field #831 4 years ago
nick black 38a7306ba8
mojibake: work around wcwidth inaccuracies 4 years ago
nick black e00fd3231a
reset_term_attributes: restore disable mouse 4 years ago
nick black dab269f506
tetris: ensure continued color changes #825 4 years ago
nick black 46b1e6b2fa
reset_term_attributes(): flush after oc 4 years ago
nick black 480ea76989
reel: kill unnecessary diagnostics 4 years ago
nick black bf9c3dc8c7
reset term attributes prior to, not following, rmcup #824 4 years ago
nick black 17e8f62eb9
cell_no{fore/back}ground() was never intended for export 4 years ago
nick black c333c4def5
notcurses-ncreel: suppert +/- for adding/subbing lines 4 years ago
nick black 6354b26d78
notcurses-ncreel: handle +/- for tablets 4 years ago
nick black 17291b8743 implement ncmenu_mouse_selected() #819 4 years ago
nick black 6ea968c522 declare ncmenu_mouse_selected() #819 4 years ago
nick black 8ae8fd2cb0
menu: escape rolls up menu #819 4 years ago
nick black 357cba3843 ncplane_puttext: all unit tests work #815 4 years ago
nick black 243cbd6a92 fix LayoutFillsPlaneNoSpaces problems #815 4 years ago
nick black 1664e64617 add LayoutCrossBoundaryWide unit test #815 4 years ago
nick black 4adde41b05 Get LayoutFillsPlaneNoSpaces test working #815 4 years ago
nick black f0962fc6b5 utf8_etc_len: flatten wcwidth negative returns 4 years ago
nick black 858d1662eb clean_reel: clean up unused variables 4 years ago
nick black 015dc544a6 scan-build fix: return ret from notcurses_render_to_file() 4 years ago
nick black a70cbb894c get complete widechar ncplane_puttext() working #815 4 years ago
nick black 380ebc7e6e add wide ncplane_puttext unit tests #815 4 years ago
nick black d2b7c2b76c
notcurses_init: no screen clear for NO_ALTERNATE_SCREEN, though #817 4 years ago
nick black 6d2ba86acc
Clear screen if we want smcup but it's not available #817 4 years ago
nick black 0bd73e2f1f
CMake: drop dirgb from test suite due to excess output 4 years ago
nick black 8e34f7525b
rgb/rgbgb pocs: use alternate screen 4 years ago
nick black a76ee9a5af
tetris: refresh on startup in place of erase() 4 years ago
nick black 0e7e8b02eb
notcurses-input: refresh on start to clear screen in absence of smcup 4 years ago
nick black 604747c8f2 notcurses_puttext: use libunistring for wordbreaking #772 4 years ago
nick black 0ba1512d68 notcurses_debug: print plane name #780 4 years ago
nick black f441a2829a
ghastly 4 years ago
nick black 255b404842
ncplane_puttext(): start long words early
If we're fed a word that in and of itself is wider than
the text layout area, and it is not the first word on the
row on which it starts, go ahead and start it there, as
opposed to breaking the line. #720

Also, remove sgr from test suite, as it's not a notcurses
application.
4 years ago
nick black 7a459abd56
tetris: clear screen in case background isn't available 4 years ago
nick black 26ae8cda5b
linux console: shim in eighths and quarter blocks #810 4 years ago
nick black 9c3428c6fa
reel: horrible bullshit downtightening ugh shameful #790 4 years ago
nick black 87ec38fce8
reel: remove obsolete FIXMEs 4 years ago
nick black 3166d0f233
map empty ballot to O in console, not - 4 years ago
nick black 001276e112
linux console: program ☐/☒ mappings for multiselect #809 4 years ago
nick black 3b405469a6
ncreel: fix painting of focused tablet at bottom #796 4 years ago
nick black 86edb9c9ad
ncreel: accept -m argument for reel margins #796 4 years ago
nick black 889f02bf6e
stage_cursor(): verify cuf1/cuf before using them #789 4 years ago
nick black 3aedec2501 expose cell_load_direct() #797 4 years ago
nick black 97571e86af ncplane_putegc_yx() copies directly as opposed to going through putc() #797 4 years ago
nick black 0767aaec01
work around opensuse compilation issue #806 4 years ago
nick black e768fb1509
rename stdscr->stdplane to work around ncurses.h #806 4 years ago
nick black 104bbfef50
add notcurses_lex_blitter() 4 years ago
nick black 5d6df94187
add notcurses_str_scalemode() 4 years ago
nick black 765ff89a3b
notcurses_str_blitter(): rewrite using objects 4 years ago
nick black 5422268d6f
python: install notcurses-pydemo from setup.py 4 years ago
nick black 37ceb753bf
notcurses-view: print blitter name #805 4 years ago
nick black 431d4a449d
use tty_emit() in place of term_emit() for tty-specific escapes #773 4 years ago
nick black d46ca758a0 highcontrast: stash fgstate for later reapplication #748 4 years ago
nick black 9bd0b42a0e normal: fix ncvisual_rotate() abort reported as FAILED #802 4 years ago
nick black f8c47b0681 normal: fix plane rotation quit reported as FAILED #802 4 years ago
nick black e0155c7d56 CELL_ALPHA_HIGHCONTRAST unit tests #748 4 years ago
Nick Black 82676cd395 linuxconjammer/linuxconsole PoCs: compile on freebsd 4 years ago
nick black 86a75531c6
Support newlines in ncplane_putnstr() when scrolling #793 4 years ago
nick black b5cfc3e1ca linux console: full quadblitter power #201 4 years ago
nick black 575c366960 linux console: we've got some hats now, motherfuckers #201 4 years ago
nick black 21d28e7234 linux console: shim in single quad block glyphs #201 4 years ago
nick black eaa1c28756 linux console: shim in half blocks #201 4 years ago
nick black a009eb946c linux console: prep table for shims #201 4 years ago
Nick Black 50ce76bad8
Add kernel unicode-to-font mappings dynamically for line-drawing characters (#794)
Part 1 of a two-part revolution in Linux console graphics. Map all the line-drawing Unicode characters to similar glyphs. This means all our nice corners freely translate into rigid corners etc in the console, rather than hateful default characters (usually black diamonds). The demo and all widgets now look correct when drawing lines and boxes. Next, we'll add the actual glyphs for the block-drawing characters, and we'll have the finest graphics ever seen on a text-mode Linux console. #201
4 years ago
nick black ff569d7114
terminfo: chop off $<N> syntax #769 4 years ago
nick black 1c95241948
fileroller/procroller: check widget destructor for error #793 4 years ago
nick black b0990c1389
dumbass 4 years ago
Nick Black dbc83c41b3
linuxconsole PoC (#791)
* use ioctl(KDGETMODE) to detect Linux console
* diagnostic on KDGETMODE
* add logdebug()
* unit test for notcurses_drop_planes(), add ncplane_putnstr_aligned()
* linuxconsole PoC
* linuxconsole: dump unicode->font table
* linuxconsole: explode glyphs
* linuxconsole: show 7 glyphs per 'line'
* linuxconjammer: shim console font with half blocks
* signals: handler for SIGTERM
* man pages: update notcurses_init() for options
* add NCOPTION_NO_FONT_CHANGES #201
4 years ago
nick black 992eaea8d0
tetris: swap colors on level change 4 years ago
nick black 894c6d15f6
tetris: start on level 1 4 years ago
nick black 20864949fa
ncneofetch: check for swapped cursor coordinates #765 4 years ago
nick black 5cf912feb6
ncplane_printf_stainable() and _vfprintf_stainable() #754 4 years ago
nick black 4a97c139e6
add ncplane_putstr_stainable() #754 4 years ago
nick black a6b002fa77 add ncdirect box-drawing functions #753 4 years ago
nick black 96c6dc8e16 add ncdirect_canopen_images() and ncdirect_canutf8() #753 4 years ago
nick black c783244185 ncdirect_hline_interp(), ncdirect_vline_interp(), dirlines PoC #753 4 years ago
nick black 750f88b70a split direct into its own header 4 years ago
nick black b617587ade
demo_nanosleep_abstime_ns: silence compiler warning 4 years ago
nick black 9ff805e754
demo_nanosleep_abstime_ns: fix test sense, swallow input #782 4 years ago
nick black 4b893164e1
ncplane_stain(): only stain valid EGCs #777 4 years ago
nick black 5512158fc5
postpaint(): no need to replace nul with space #777 4 years ago
nick black ea183c0d66
fdthread: stop being an asshole and NUL terminate the input #778 4 years ago
nick black 3ef1a3a07d
add notcurses_version_components() 4 years ago
Nick Black 162f9910c2
Tons of work on ncreel (#776)
Tons of work on ncreel (#627, #749, #694)
Improve reel demo: get input wired up once more, avoid the FPS demo at bottom, print pointer and line count in each tablet, use new ncreel API. Improve notcurses-ncreel explorer: kill memory leaks (#694), draw tablets better, use new ncreel API. Fix bug in ncreel core where cruft could be left on the screen, via a very gross brute force algorithm. I'll likely come back and make this a bit less ghastly in the future #749. Remove weird one-off input system from ncreel, residue from outcurses. Make some of the normalizing changes speced out in #627

* ncreel: give each tablet an index, and print it #749
* reel: eliminate FIXME + param to insert_tabler() #749
* ncreel: label tablets with their adress to correlate against debugging logs #749
* more terminal environment variable notes
* TERMS.md: add Sakura, st
* ncreel: move legend out of reel proper
* ncreel_options: dump min/max_supported_rows/cols #627
* ncreel: remove weird one-off input layer #627
* ncreel: add ncreel_offer_input()
* reel demo: call demo_getc()
* reel demo: rig up input to demo main
* ncreel: drop ncreel_del_focused(), properly bind tablets
* reel demo: don't free up necessary plane
* ncreel: don't pull absolute locations of tablets
* ncreel: place tablets correctly in boundrel
* reel demo: add back support for left/right
* reel demo: restore thread movement
* ncreel: remove a great deal of complexity
* reel demo: stay out of FPS graph's way
* ncreel: give each tablet an index, and print it #749
* reel: eliminate FIXME + param to insert_tabler() #749
* ncreel: label tablets with their adress to correlate against debugging logs #749
* ncreel: move legend out of reel proper
* ncreel_options: dump min/max_supported_rows/cols #627
* ncreel: remove weird one-off input layer #627
* ncreel: add ncreel_offer_input()
* reel demo: call demo_getc()
* reel demo: rig up input to demo main
* ncreel: drop ncreel_del_focused(), properly bind tablets
* reel demo: don't free up necessary plane
* ncreel: don't pull absolute locations of tablets
* ncreel: place tablets correctly in boundrel
* reel demo: add back support for left/right
* reel demo: restore thread movement
* ncreel: remove a great deal of complexity
* reel demo: stay out of FPS graph's way
* reel: tighten up reel following redraw
* reel: fix upper-left corner of topless perimeter
* ncreel: print linecount, return clipped value
* reel: draw focused tablet relative to reel
* reel: brute force decruftification, how embarrassing #749
4 years ago
nick black 479dd00739
ncreel: purge {tblr}off fields; these are ncplane properties #627 4 years ago
nick black 8a9a0c35e0
remove debugging cruft 4 years ago
nick black da765ebdaa
mojibake: don't stomp right side of boxes 4 years ago
nick black f2af24648d
mojibake: add all remaining emoji collations #770 4 years ago
nick black 2c37f2c4ba
mojibake: second third of the emoji collations #770 4 years ago
nick black fd83cc8639
mojibake: add all unicode 13 emoji via CLDR order #770 4 years ago
nick black b6330d142b
add notcurses_render_file() #491 4 years ago
nick black b26bd14d11
demo: make HUD text opaque #771 4 years ago
nick black 5a9e0c6f05
rendering: lack of term capability is not error #768
If we don't have setaf/setab, then we're not going to set color.
OK, fine. Don't regard it as an error during
notcurses_rasterization(), just don't emit the escape. This is
necessary to run on terminals like vt100, which in turn is
necessary to run unit tests properly on Redhat's koji.
Also, use notcurses_canfade() to avoid just breaking during
fades in intro and trans demos.
4 years ago
nick black 2d87aff90e
subprocfd: fix memory leak on error path 4 years ago
nick black 7744c6aae5
highcon: keep text in original position #762 4 years ago
nick black efcf0583c9
ncmetric: fix µ for ASCII mode #764 4 years ago
Nick Black e201c9994d lookup_blitset: properly pass utf8 test #763 4 years ago