Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit dd3aecebe5956583c2476a5b1b7b5fafd890be03 Author: Raniconduh <clagv.randomgames@gmail.com> Date: Fri Oct 29 15:10:48 2021 +0000 fix garbage on screen after xdg-open added link flags and cflags for ncurses diff --git a/Makefile b/Makefile index cd41d0a..4df8b27 100644 --- a/Makefile +++ b/Makefile @@ -28 +28 @@ SOURCES ?= src/*.c  INCLUDEDIR ?= include  DEST ?= cscroll   -CFLAGS ?= -Wall -Wextra -pedantic -LIBS ?= -lncurses +CFLAGS ?= -Wall -Wextra -pedantic $(shell pkg-config --cflags ncurses) +LIBS ?= $(shell pkg-config --libs ncurses) -ltinfo    RM ?= rm -f   diff --git a/src/commands.c b/src/commands.c index 1746ba5..658a5a9 100644 --- a/src/commands.c +++ b/src/commands.c @@ -13 +14 @@ +#include <ncurses.h>  #include <stdlib.h>  #include <unistd.h>  #include <string.h> @@ -188 +1910 @@ void ext_open(char * file) {   exit(0);   }   wait(NULL); -   free(f); + + erase(); + refresh();  }