draw slightly more efficient, hide cursor first - sob - simple output bar
(HTM) git clone git://git.codemadness.org/sob
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 527078b1efa4cc09042c4521e07ff7dc8c5d6c8e
(DIR) parent 1f4f2ea75cfe5cbbb84daa016d14dca907584e62
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
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(-)
---
(DIR) 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);