From a9bd52226fbcac98bddec9cffcef1ded8b75b5df Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Wed, 25 Sep 2024 22:47:20 +0300 Subject: added terminal support???? --- main_23.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main_23.c') diff --git a/main_23.c b/main_23.c index f6936da..8460415 100644 --- a/main_23.c +++ b/main_23.c @@ -16,6 +16,9 @@ typedef double (*func_t)(double); void pipe_gnuplot(struct dval *table, long len) { FILE* gp = popen("gnuplot", "w"); if (!gp) return; +#ifdef TERMINAL_PLOT + fputs("set terminal block\n", gp); +#endif // TERMINAL_PLOT fputs("plot '-' with lines\n", gp); print_table(gp, table, len); fputs("e\n", gp); -- cgit v1.2.3-70-g09d2