summaryrefslogtreecommitdiffstats
path: root/src/pane.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-12-29 01:46:08 +0100
committerLouis Burda <quent.burda@gmail.com>2021-12-29 01:46:08 +0100
commit7902429e5d69bb6aa57c6f1411b163d3e037e0e1 (patch)
tree4e09953714eacf615da8cacb65bdc34d26ed7262 /src/pane.c
parentfb0a1cabe8d61d3305d9d14acc4754a1b6151b8c (diff)
downloadtmus-7902429e5d69bb6aa57c6f1411b163d3e037e0e1.tar.gz
tmus-7902429e5d69bb6aa57c6f1411b163d3e037e0e1.zip
More refactoring, moved track manipulation into player
Planning on creating a modular player_backend component
Diffstat (limited to 'src/pane.c')
-rw-r--r--src/pane.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pane.c b/src/pane.c
index c5aea81..c7df7e3 100644
--- a/src/pane.c
+++ b/src/pane.c
@@ -29,6 +29,16 @@ pane_resize(struct pane *pane, int sx, int sy, int ex, int ey)
}
void
+pane_clearln(struct pane *pane, int y)
+{
+ int i;
+
+ wmove(pane->win, y, 0);
+ for (i = 0; i < pane->w; i++)
+ waddch(pane->win, ' ');
+}
+
+void
pane_free(struct pane *pane)
{
delwin(pane->win);