sob

Simple output bar
git clone https://git.sinitax.com/codemadness/sob
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 527078b1efa4cc09042c4521e07ff7dc8c5d6c8e
parent 1f4f2ea75cfe5cbbb84daa016d14dca907584e62
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 31 Oct 2014 13:35:26 +0000

draw slightly more efficient, hide cursor first

Diffstat:
Msob.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sob.c b/sob.c @@ -259,8 +259,8 @@ line_draw(void) { size_t i; - fprintf(outfp, "\x1b[H"); /* move cursor to (0, 0) */ fprintf(outfp, "\x1b[?25l"); /* hide cursor */ + fprintf(outfp, "\x1b[H"); /* move cursor to (0, 0) */ line_prompt(); fwrite(line.line, 1, line.bytesiz, outfp);