Commit Graph

113 Commits

Author SHA1 Message Date
Sasha Koshka 45278fbb8b Fix bug where nil cells would sometimes render without styling 2022-11-29 02:53:36 -05:00
Sasha Koshka ef5a811140 Loading of multiple fonts for bold and italic 2022-11-29 02:36:24 -05:00
Sasha Koshka e753fc11ca Implemented awful fallback bold and italic 2022-11-29 02:12:30 -05:00
Sasha Koshka e4c7dcb2e1 Add config items for bold, italic, and bold italic fonts 2022-11-29 01:38:42 -05:00
Sasha Koshka f51f9ae5c5 Implemented highlight and underline styles 2022-11-29 01:28:54 -05:00
Sasha Koshka 0462afdf11 Updated the style example with more stuff 2022-11-29 00:50:23 -05:00
Sasha Koshka 2fa4cc8da4 Created a style test (that does nothing as of now) 2022-11-29 00:26:26 -05:00
Sasha Koshka 5ea5a302bf Haha oops 2022-11-27 00:16:10 -05:00
Sasha Koshka 1435c02354 Add more xdg stuff 2022-11-26 23:47:59 -05:00
Sasha Koshka 19895e6049 Added a configuration viewer example 2022-11-26 22:49:58 -05:00
Sasha Koshka 73ae475a7d Fixed some bugs related to saving conf files 2022-11-26 22:49:02 -05:00
Sasha Koshka 639e43cfa7 Config file fixes 2022-11-26 22:36:16 -05:00
Sasha Koshka 46b2ca3d43 Added a way to save configuration files 2022-11-26 22:10:22 -05:00
Sasha Koshka 3cfe8be7bb Publicize the raw io.Reader reading function 2022-11-26 21:37:26 -05:00
Sasha Koshka 863e415310 Made thos errors better 2022-11-26 21:32:05 -05:00
Sasha Koshka 05ddfef584 Added some documentation on how configuration files should be laid out 2022-11-26 21:04:00 -05:00
Sasha Koshka e60a990d10 Use XDG directories, and respect corresponding environment vars 2022-11-26 20:52:30 -05:00
Sasha Koshka a42dd60a16 Added a configuration system 2022-11-26 20:28:32 -05:00
Sasha Koshka a6e4ed9934 Rename unicode.go to encoding.go 2022-11-25 13:35:11 -05:00
Sasha Koshka 9d2872f256 Support mode shift modifier
The code has also been reorganized and cleaned up a bit, with more
comments added.
2022-11-25 13:33:28 -05:00
Sasha Koshka e588d7d791 Modifier states returned from x backend should be 100% correct now 2022-11-24 22:16:22 -05:00
Sasha Koshka 941a78eaf1 THE DRAGON HAS BEEN SLAIN
Numlock is fully supported, as well as shift lock. Of course, I
cannot properly test shift lock or caps lock because I have neither
of those things, but I assume they work as well as num lock does.
2022-11-24 22:02:32 -05:00
Sasha Koshka 33ed2af075 We now take into account keypad keys
However, num lock is not accounted for. This still needs to be
implemented.
2022-11-24 18:20:47 -05:00
Sasha Koshka 5a76bd0c22 Fix bug with keyboard input 2022-11-23 20:34:05 -05:00
Sasha Koshka ae514f5ae2 Add proper and reliable (i hope) support for modifier keys 2022-11-22 00:21:35 -05:00
Sasha Koshka 8c28c57925 Support for meta and hyper keys added
Support for the compose key has also been added but it's just the
button code for now, no support for actually composing stuff.
There are plans for that in a fixme.
2022-11-21 23:43:22 -05:00
Sasha Koshka 9a37fbf04a Updated examples and added more documentation 2022-11-19 18:00:47 -05:00
Sasha Koshka 9a8bb85afc Replaced orange with a dim/grey color 2022-11-18 19:46:50 -05:00
Sasha Koshka f55f98651f It needed more blackjack and hookers to work correctly 2022-11-17 23:16:47 -05:00
Sasha Koshka 3cb0ac64fc I made my own draw method with blackjack and hookers 2022-11-17 21:19:23 -05:00
Sasha Koshka 594d1d07be Merge pull request 'Compress mouse scroll and motion events' (#4) from compress-scroll into main
Reviewed-on: #4
2022-11-18 01:32:35 +00:00
Sasha Koshka 75200a7310 Mouse scroll events are properly compressed and summed up 2022-11-17 19:23:39 -05:00
Sasha Koshka c57c8acba7 Changed the API for scrolling 2022-11-17 19:11:49 -05:00
Sasha Koshka 43696543d8 Compress motion notify events 2022-11-17 19:01:16 -05:00
Sasha Koshka 19b744250f Merge pull request '(Mostly) under the hoood improvements' (#3) from fix-x-concurrency into main
Reviewed-on: #3
2022-11-17 18:33:36 +00:00
Sasha Koshka d6280a0d28 Added two new styles (although no style has been implemented) 2022-11-17 11:25:27 -05:00
Sasha Koshka 51fbd8acef Added more efficient damage buffer method 2022-11-17 00:26:28 -05:00
Sasha Koshka 754017a2db Added Buffer interface, and clear method 2022-11-16 21:20:48 -05:00
Sasha Koshka 0ee58d22f6 Made centering the buffer in the window optional
It causes jitter while resizing in floating wms
2022-11-16 11:31:35 -05:00
Sasha Koshka 81a0c60943 Added simpler method of detecting window bounds change on draw 2022-11-16 11:14:30 -05:00
Sasha Koshka cab280a371 Removed the need for a quit handler 2022-11-16 11:08:30 -05:00
Sasha Koshka e030f8632b Overhauled event system 2022-11-16 00:29:23 -05:00
Sasha Koshka 3a3fb66db8 Buffer is thread safe 2022-11-15 17:45:48 -05:00
Sasha Koshka 85994112cf Made buffer's dot private 2022-11-15 17:41:08 -05:00
Sasha Koshka 77cf88b856 There is only one type of buffer now 2022-11-15 17:36:41 -05:00
Sasha Koshka abc9945ea1 Configuration values are now loaded from files
Stone will load from /etc/stone/stone.conf and ~/.config/stone/stone.conf
2022-11-15 13:43:21 -05:00
Sasha Koshka 02d010818f Fix possible segfault in X backend 2022-11-15 11:40:10 -05:00
Sasha Koshka 1eceb53b94 Added fun color example 2022-11-15 11:29:45 -05:00
Sasha Koshka de3e4b528b Redid color system 2022-11-15 11:16:29 -05:00
Sasha Koshka 100e72fada Added license 2022-11-15 00:27:30 -05:00