Commit graph

58 commits

Author SHA1 Message Date
shy
a1ffb07125 More flexible time parsing. 2021-04-18 07:13:37 +02:00
shy
e9e1806aa2 Show usage hint for scroll bar. 2021-04-18 06:21:56 +02:00
Shy
35a8739f27 Rustfmt. 2021-04-17 18:20:39 +02:00
shy
b10886508c Implemented roster scrolling. 2021-04-17 13:03:12 +02:00
shy
a79cd5d566 Refactored stdin parsing. 2021-04-16 16:40:12 +02:00
shy
d236c791a1 Limit input buffer length. 2021-04-16 16:01:43 +02:00
shy
59612a516d Minor refactoring. 2021-04-16 12:47:16 +02:00
shy
f1c6eedb21 Return child in result. 2021-04-16 12:46:02 +02:00
shy
d3f609976a Adjust clock color when shifting time. 2021-04-16 11:06:09 +02:00
shy
2e33f91b33 Shift through day boundaries. 2021-04-16 07:58:50 +02:00
shy
e33cc4eb93 Use crate unicode-width to determin width if chars. 2021-04-16 06:45:45 +02:00
shy
2a336236e1 Implemented clock shifting. 2021-04-15 20:06:23 +02:00
shy
84a2a11d79 Dots may differ. 2021-04-15 08:41:00 +02:00
shy
3039af5aee Read alarm times from stdin. 2021-04-14 18:09:45 +02:00
shy
d0aa9f7a4f Some refactoring. 2021-04-14 10:39:33 +02:00
shy
b746400e0a Introduced "fancy" alarm display. 2021-04-13 11:37:01 +02:00
shy
ce7f5a43ea Slight refactoring. 2021-04-13 11:36:41 +02:00
shy
68dab474ef Print errors to stderr. 2021-04-13 11:36:07 +02:00
shy
bef717e663 Redraw after clock.toggle(). 2021-04-12 21:45:45 +02:00
shy
1b76c98ea6 Removed unneeded writes. 2021-04-12 20:43:41 +02:00
shy
b8b5f36ace Propagate IO errors. 2021-04-12 20:15:40 +02:00
shy
8112ecadb2 Refactored buffer module. 2021-04-12 20:01:14 +02:00
shy
55e9003f8c Switched to high level signal_hook API. 2021-04-12 19:52:10 +02:00
shy
fd325a88ca Added --fancy option. 2021-04-12 17:06:43 +02:00
shy
f3b48aa7a8 Propagate digit size through clock. 2021-04-12 10:21:30 +02:00
shy
a95c00aa57 Append ellipse to truncated labels. 2021-04-12 08:59:47 +02:00
shy
3021fdb848 Fix bug on ^W. 2021-04-12 08:52:19 +02:00
shy
5eef3dd811 Refactored clock code. 2021-04-12 08:26:26 +02:00
shy
557358a4c0 Slightly refactored clock drawing code. 2021-04-11 19:04:09 +02:00
shy
85f7b7af03 Modify clock style when paused. 2021-04-11 18:09:26 +02:00
shy
21222baa71 Implemented ^W. 2021-04-11 16:38:19 +02:00
shy
4a32bbb9af Make layout.error unnecessary. 2021-04-11 14:06:00 +02:00
shy
ade2c9f4da Move input buffer into it's own module. 2021-04-11 12:44:25 +02:00
shy
d95f2faaef Extensive refactoring. 2021-04-10 20:45:26 +02:00
shy
f5490eb96b Make main loop delay conditional. 2021-04-10 12:52:37 +02:00
shy
0b40242baa Propagate I/O-errors to main. 2021-04-10 08:20:05 +02:00
shy
1e749c7cbd Extensive refactoring. 2021-04-10 07:57:41 +02:00
shy
d264d8540d Limit label length. 2021-04-09 19:15:31 +02:00
shy
a42e1130a1 Some minor improvements. 2021-04-09 18:33:42 +02:00
shy
63706d90e8 Make label available to --command. 2021-04-09 17:01:42 +02:00
shy
299ef7fbe6 Added alarm labels. 2021-04-09 16:43:46 +02:00
shy
320453474c Added test for layout calculation. 2021-04-09 07:48:27 +02:00
shy
642ebcf077 Don't panic at tiny screen sizes. 2021-04-08 12:32:37 +02:00
shy
5e01fbe066 Tend to spawned processes. 2021-04-08 11:17:06 +02:00
shy
91d3e81eca Fix delayed update of roster_width. 2021-04-08 09:46:36 +02:00
shy
1e3e3d9fea Revised parsing of command line arguments. 2021-04-08 07:59:11 +02:00
shy
066b88eeee Implemented "--quit". 2021-04-07 10:08:57 +02:00
shy
d894d6d475 Make use of Cargo environment variables. 2021-04-07 07:48:53 +02:00
shy
3f1ac39527 Add alarm times on the command line. 2021-04-06 20:09:01 +02:00
shy
3ad264aa7b Refactored invocation of layout.update(). 2021-04-06 16:36:01 +02:00