catpoint

simple slides viewer
git clone git://git.2f30.org/catpoint
Log | Files | Refs | README | LICENSE

commit cead5f6ab368daaa48f4dcc2d49b62a1db797e3b
parent dbf7fba4b6dcb8baed5c439715d089c8c993ef71
Author: FRIGN <dev@frign.de>
Date:   Fri, 11 Jul 2014 21:13:34 +0200

Fix a warning about \e

Use \033 instead.

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

diff --git a/catpoint.c b/catpoint.c @@ -49,7 +49,7 @@ main(int argc, char *argv[]) newterm = oldterm; newterm.c_lflag &= ~(ECHO | ICANON); tcsetattr(STDIN_FILENO, TCSANOW, &newterm); - printf("\e[?25l"); /* hide cursor */ + printf("\033[?25l"); /* hide cursor */ /* start */ i = 0; @@ -92,7 +92,7 @@ again: munmap(s[i].buf, s[i].siz); free(s); - printf("\e[?25h"); /* unhide cursor */ + printf("\033[?25h"); /* unhide cursor */ tcsetattr(STDIN_FILENO, TCSANOW, &oldterm); /* restore terminal */ return (0);