Commit Graph

157 Commits

Author SHA1 Message Date
nick black
9402d7e927 HUD: click on X to close HUD 2019-12-27 02:48:13 -05:00
nick black
ee99eb53c3 HUD: throw a close-X on the hud 2019-12-27 02:48:13 -05:00
nick black
b13da606f6 whiten and shrink HUD 2019-12-27 02:48:13 -05:00
nick black
7f82ac6f16 ULTRAMEGAOK: mouse-moveable HUD #162 2019-12-27 02:48:13 -05:00
nick black
4d877603c3
maxcolor: fix direction switch 2019-12-25 06:55:15 -05:00
Nick Black
63ada9289c
Implement CELL_ALPHA_BLEND, improve transparency semantics #191 (#219)
* channels_blend() introduced
* implement CELL_ALPHA_BLEND #191
* maxcolor demo: slidingpanel
* much improved transparency semantics #191
* maxcolor: show all transparencies #191
2019-12-25 06:36:35 -05:00
nick black
4b6063e1ce sliders: fix timing 2019-12-25 02:24:10 -05:00
nick black
99fb662f59
eagle: speed up eagles on small screens 2019-12-25 00:35:10 -05:00
nick black
7424b3b78c
grid: fix boundary conditions on large displays 2019-12-24 23:55:48 -05:00
nick black
4ba9845143 grid: better background on last scene 2019-12-24 23:50:21 -05:00
nick black
1554685165
boxdemo: default background cell explicitly #211 2019-12-24 05:44:13 -05:00
nick black
e8064f717b
xray: kill subplane when done 2019-12-24 02:13:55 -05:00
nick black
43e0cb3d30
xray: prep for CELL_ALPHA_BLEND #191 2019-12-24 02:04:05 -05:00
nick black
ca5e14cdad
xraydemo: isolate avi/text 2019-12-24 01:17:49 -05:00
nick black
53efe2bd1f
demo-view: don't exit on spurious wakeup 2019-12-24 01:17:26 -05:00
nick black
2601fe9191
demo-input: pass 'q' through in addition to interrupt 2019-12-24 01:17:02 -05:00
nick black
a14ec34d78
intro: blink warning if screen is small 2019-12-24 01:16:45 -05:00
nick black
4e0ebde876
intro: advertise 'q' demo: print full matrix 2019-12-24 00:47:31 -05:00
nick black
9e9e5ef648
demoinput: process 'q' at all times 2019-12-24 00:47:20 -05:00
nick black
1017bf42e0
panelreeldemo: stop advertising 'q' 2019-12-24 00:46:55 -05:00
nick black
17a55261dc
witherworms: allow them more space 2019-12-24 00:46:36 -05:00
nick black
86efad6f67
griddemo: clip rgb values, kill white line on side 2019-12-24 00:46:12 -05:00
nick black
efcfa372ae
ULTRAMEGAOK: toplevel event handler #207
enable mouse events in the demo. spawn a thread from main() which
brokers all input events. it will consume mouse events, and
publish keyboard events to a queue. rewrite all demo notcurses_getc()
calls to demo_getc() equivalents.
2019-12-24 00:10:20 -05:00
nick black
452e1d302e
output API enhancements #210 #209
Allow -1 in move specification to remain where we are on that
axis (#210), necessary for context-sensitive aligned output.
Add _aligned forms to printf and vprintf. Invert various output
functions so that simpler form is static inline wrapper around
more complicated form, rather than complicated form being a
static inline composition, facilitating atomic move+output. All
output forms now have a simple form (no alignment, placement at
cursor), an _aligned() form, and a _yx() form.
2019-12-23 23:12:29 -05:00
nick black
f742676aee Mouse support using button event tracking #165
Request and parse up mouse messages. We handle up to 11 mouse
buttons, 3 modifiers (currently thrown away), motion while
holding down a button, and loss/gain of focus. I've added twelve
new NCKEYs: one for each button, and one for release. In addition,
I've introduced the 'ncinput' struct, which encodes the nckey plus
extra data. The only extra data thus far is coordinates for mouse
events. It is not necessary to provide a ncinput to all input
functions; NULL can be provided if the caller doesn't care about
details. All demos are updated. notcurses-input has been updated
to decode full information of returned ncinputs.

The primary resource for this work was Dickey at al's "XTerm Control
Sequences", https://invisible-island.net/xterm/ctlseqs/ctlseqs.html.
2019-12-23 19:08:12 -05:00
nick black
046d0314b9
add links to useful man pages 2019-12-22 22:45:20 -05:00
nick black
fe7b6bbf89
Samoa, tula'i ma sisi ia lau fu'a, lou pale lea! 2019-12-22 16:59:16 -05:00
nick black
f9e18fa1ee
witherworms breed, paint xray banner 2019-12-22 15:58:05 -05:00
nick black
6b6a00c013
luigi: jump off the right side of the screen 2019-12-22 12:41:44 -05:00
nick black
605293c103
deretardize the witherworms 2019-12-22 12:32:28 -05:00
nick black
708159c686
x-ray demo 2019-12-22 12:27:35 -05:00
Nick Black
4278a53523
Dankamongmen/no prisoners damage (#198)
* notcurses: set up lastframe #189
* render: o(1) take no prisoners damage detection
* EAAAAAAAAAAGLES
* slight background on intro
* 0.9.2
2019-12-22 09:29:56 -05:00
Nick Black
9b81de3789
O(1) passive damage detection #189 (#197)
* notcurses: set up lastframe #189
* render: o(1) take no prisoners damage detection #189
2019-12-22 08:08:53 -05:00
nick black
d50ee9ec50
ncplane_erase() at the beginning of viewdemo #194 2019-12-22 01:18:49 -05:00
nick black
c3fa7ea664
bleachworm replaces widechomper #177 2019-12-22 00:27:43 -05:00
Nick Black
3ad2124246
Partial visual renders #170 (#193)
* ncvisual_render() accept four bounding dims #175
* ncvisual_render(): partial renders #175
2019-12-21 16:02:27 -05:00
Nick Black
0e0925a84e
Planereel exploration app, panelreel logic fixes (#188)
* planereels tester #180
* suppress_banner in all tests
* tabletcb: start passing back tablet
* properly initialize fbbytes stat
* panelreel: logic fixes #178
* install all testing data
2019-12-20 20:38:13 -05:00
nick black
b0b1679de6
ncvisual_render(): use true transparency #186 2019-12-20 12:54:29 -05:00
nick black
0e6c921b28
we break 1k fps in kitty :) 2019-12-20 11:06:19 -05:00
nick black
898806fec1
demo: minimum field width on FPS 2019-12-20 11:03:41 -05:00
nick black
21a8e661be
convert all demos to find_data() 2019-12-20 07:36:38 -05:00
nick black
660949a461
griddemo: fix wonky right line 2019-12-20 07:35:29 -05:00
nick black
4950a5ac1a
print enmetricized byte totals 2019-12-20 03:42:00 -05:00
nick black
792b1f2cfb
notcurses-demo: accept -p to find data files #160 2019-12-20 01:32:14 -05:00
nick black
db89e71595
track each part of demo #164 2019-12-20 01:10:28 -05:00
nick black
15ac1d0411
outro: balance up messages for centering 2019-12-19 23:17:02 -05:00
nick black
11d6f60ed4
clean up eagle poop 2019-12-19 22:26:25 -05:00
nick black
6be6ae2393 eagles: zoom to lower left 2019-12-19 22:20:18 -05:00
nick black
1dde53d0e2 holy fucking shit it works 2019-12-19 22:20:18 -05:00
nick black
d6bcb3211f eagles level starts at lower-right 2019-12-19 22:20:18 -05:00