catpoint

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

commit 521aeb3a745c85def34f6e525c52327267aec23f
parent 0156d8ef295e34fe28c135218df865f2b4041635
Author: Lazaros Koromilas <lostd@2f30.org>
Date:   Sat,  9 Feb 2019 20:13:27 +0200

Revert "Fix a warning about \e"

This reverts commit cead5f6ab368daaa48f4dcc2d49b62a1db797e3b.

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("\033[?25l"); /* hide cursor */ + printf("\e[?25l"); /* hide cursor */ /* start */ i = 0; @@ -92,7 +92,7 @@ again: munmap(s[i].buf, s[i].siz); free(s); - printf("\033[?25h"); /* unhide cursor */ + printf("\e[?25h"); /* unhide cursor */ tcsetattr(STDIN_FILENO, TCSANOW, &oldterm); /* restore terminal */ return (0);