Commit Graph

142 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 6edf3d945e
Improve row_buffer_ellipsis()
Fixing a minor appearance regression from one of the last commits.
2016-10-07 00:51:49 +02:00
Přemysl Eric Janouch 4a1646c7e9
Beep on unhandled events
We have app_quit(), let's use the return booleans for something better.
2016-10-07 00:36:43 +02:00
Přemysl Eric Janouch f9744711b5
Simplify row_buffer_ellipsis() invocation 2016-10-07 00:19:22 +02:00
Přemysl Eric Janouch 74e6dd22ff
Factor out stupid column alignment loops 2016-10-06 07:21:36 +02:00
Přemysl Eric Janouch 54936c4bcb
Further optimize terminal output
By calling addstr() once instead of several addch() calls.

As a side effect, it's becoming easier to ditch ncurses altogether.
2016-10-06 07:03:51 +02:00
Přemysl Eric Janouch ca38c1d91a
Add CMakeLists.txt, link with cURL
My global .gitignore seems to be more trouble than it's worth.
2016-10-06 03:29:32 +02:00
Přemysl Eric Janouch c6e337e5c5
Add some actions for songs 2016-10-06 03:29:32 +02:00
Přemysl Eric Janouch 53ac2cf2c0
Clean up tab code, prepare for custom handlers 2016-10-06 03:29:32 +02:00
Přemysl Eric Janouch 2c7e8e3311
Add a non-functional Streams tab
Bump liberty.
2016-10-06 03:29:32 +02:00
Přemysl Eric Janouch dff58b1c16
Fill the Info tab with actual information 2016-10-05 02:54:43 +02:00
Přemysl Eric Janouch d723f9523f
Fix regression in Home/End handling 2016-10-05 02:53:09 +02:00
Přemysl Eric Janouch 16a19282cb
Some further shuffling and renaming 2016-10-05 01:55:06 +02:00
Přemysl Eric Janouch a59f0b237e
Rearrange code
I need to update tabs from MPD message handlers.
2016-10-05 01:13:48 +02:00
Přemysl Eric Janouch 319d0faffa
Don't advance the timer when not playing
Stupid regression.
2016-10-05 00:13:15 +02:00
Přemysl Eric Janouch 515d11114b
Postpone redraws
This solves a performance problem in debug mode.

But overall the has been simplified, with some renames taking place.
2016-10-04 23:44:43 +02:00
Přemysl Eric Janouch 07e3aafd84
Simplify some terminal output 2016-10-04 22:40:58 +02:00
Přemysl Eric Janouch fec9f83cbc
Optimize row_buffer
It was one of two obvious hotspots.
2016-10-04 21:32:13 +02:00
Přemysl Eric Janouch 859c9d2737
Enhance time tracking
Now with eliminated timer drift.
2016-10-04 18:33:14 +02:00
Přemysl Eric Janouch 87f5eddea0
Bump termo, use termo_strpkey_utf8() 2016-10-04 13:27:48 +02:00
Přemysl Eric Janouch 4a5be612c5
Stubplement an Info tab, make Help special 2016-10-04 07:13:24 +02:00
Přemysl Eric Janouch 8dff378617
Fix crash when not in debug mode 2016-10-04 06:47:30 +02:00
Přemysl Eric Janouch ac2c7d5108
Make the help tab useful 2016-10-04 06:43:24 +02:00
Přemysl Eric Janouch 2b77d65d4b
Add alternative bindings for home/end 2016-10-04 06:17:50 +02:00
Přemysl Eric Janouch 93e76a2221
Fix display of >=60 minute songs 2016-10-04 06:17:27 +02:00
Přemysl Eric Janouch 1e39ae52c5
Make the debug tab prettier
And the MPD code a little bit more generic.
2016-10-03 19:43:51 +02:00
Přemysl Eric Janouch 91b6a799c8
Handle mouse clicks on the scrollbar 2016-10-03 08:26:17 +02:00
Přemysl Eric Janouch 49c6a31742
Add a scrollbar 2016-10-03 08:14:43 +02:00
Přemysl Eric Janouch f0c7092521
Rectify listview behaviour 2016-10-03 04:00:56 +02:00
Přemysl Eric Janouch 563c278771
Fix header render
This may need a rewrite.
2016-10-03 03:59:37 +02:00
Přemysl Eric Janouch ef184d3466
Update README 2016-10-03 01:36:42 +02:00
Přemysl Eric Janouch 800728da2b
Add a log tab in debug mode 2016-10-02 06:34:00 +02:00
Přemysl Eric Janouch 505a2559b8
Try to use MPD's "elapsed" rather than "time" 2016-10-02 05:47:50 +02:00
Přemysl Eric Janouch a60bbb9e4f
Add some MPD keyboard controls 2016-10-02 05:47:33 +02:00
Přemysl Eric Janouch 5f348ccb33
Ignore mouse clicks in deaf parts of the header 2016-10-02 05:12:13 +02:00
Přemysl Eric Janouch 400edb58cb
Simplify input handling 2016-10-02 05:00:59 +02:00
Přemysl Eric Janouch de7ab93aec
React to mouse clicks on player controls 2016-10-02 04:10:23 +02:00
Přemysl Eric Janouch 7e35164e77
Finer progress bar thanks to Unicode 2016-10-02 03:17:07 +02:00
Přemysl Eric Janouch e4f3f8ebf0
Finish display of the top part 2016-10-02 01:31:19 +02:00
Přemysl Eric Janouch 6bfa754f4d
Count elapsed seconds 2016-10-02 00:08:52 +02:00
Přemysl Eric Janouch 767e87bd3f
Better header layout 2016-10-01 21:20:07 +02:00
Přemysl Eric Janouch a72c5c2fc5
Update README 2016-10-01 21:16:16 +02:00
Přemysl Eric Janouch ec339eb0ff
Initial commit
This is mostly sdtui code ported over from GLib to liberty,
with some MPD code from desktop-tools.

It tracks the current song and that's it.
2016-10-01 04:41:54 +02:00