map

minimalistic audio player
git clone https://porkepik.fr/map
Log | Files | Refs | README | LICENSE

commit 00be142a916b219fd43e1bc23e4b845a20b75299
parent f16b9cda2ea492b14d0c3da1650c9e38625db476
Author: Thomas Philippe <dev@porkepik.fr>
Date:   Tue, 27 Aug 2019 02:47:46 +0200

fix track info layout

Diffstat:
Mmap.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/map.c b/map.c @@ -131,8 +131,8 @@ display_track_info(const char *curdir, struct track track) set_cursor(rows - 2, 1); write_term(" Playing: %s\x1b[K", track.name); - set_cursor(rows - 1, 33); - write_term("Format: %s ", track.format); + set_cursor(rows - 1, 32); + write_term("Format: %s", track.format); free(real_path); } @@ -142,7 +142,7 @@ display_timer(int timer_sec, int track_sec) { set_cursor(rows - 1, 13); write_term("\x1b[1K %d:%02d", timer_sec / 60, timer_sec % 60); - write_term(" / %d:%02d ", track_sec / 60, track_sec % 60); + write_term(" / %d:%02d", track_sec / 60, track_sec % 60); } static void @@ -155,7 +155,7 @@ display_pause(void) static void display_volume(int volume) { - set_cursor(rows - 1, 50); + set_cursor(rows - 1, 48); write_term("Volume: %-3d", volume); }