draw slightly more efficient, hide cursor first - sob - simple output bar | |
git clone git://git.codemadness.org/sob | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 527078b1efa4cc09042c4521e07ff7dc8c5d6c8e | |
parent 1f4f2ea75cfe5cbbb84daa016d14dca907584e62 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Fri, 31 Oct 2014 13:35:26 +0000 | |
draw slightly more efficient, hide cursor first | |
Diffstat: | |
M sob.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); |