| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 97107fe commit 995b255
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,10 @@ | |||
| 14 | 14 | ||
| 15 | 15 | * src/eval.c (set_gpval_axis_sth_double): Remove unused parameter. | |
| 16 | 16 | ||
| 17 | + * configure.ac docs/Makefile.am term/caca.trm: | ||
| 18 | + Add caca terminal documentation to the user manual. Fix segfault on | ||
| 19 | + "set term caca driver raw". | ||
| 20 | + | ||
| 17 | 21 | 2017-07-04 Bastian Maerkisch <bmaerkisch@web.de> | |
| 18 | 22 | ||
| 19 | 23 | * src/win/wgnuplib.h src/win/wgraph.c src/win/wgdiplus.cpp | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | dnl Process this file with autoconf to produce a configure script. | |
| 2 | 2 | dnl configure.in for gnuplot on Unix. | |
| 3 | 3 | dnl | |
| 4 | - dnl $Id: configure.ac,v 1.34 2017-06-28 21:35:26 sfeam Exp $ | ||
| 4 | + dnl $Id: configure.ac,v 1.35 2017-07-05 19:17:59 sfeam Exp $ | ||
| 5 | 5 | dnl | |
| 6 | 6 | dnl this is actually major.minor ... | |
| 7 | 7 | dnl note that for a non-beta release, we need to disable DEVELOPMENT_RELEASE | |
@@ -748,10 +748,10 @@ fi | |||
| 748 | 748 | ||
| 749 | 749 | dnl Disable experimental support for nonlinear axes | |
| 750 | 750 | AC_ARG_WITH(nonlinear-axes,dnl | |
| 751 | - [ --without-nonlinear-axes disable EXPERIMENTAL support for nonlinear axes]) | ||
| 751 | + [ --without-nonlinear-axes disable support for nonlinear axes]) | ||
| 752 | 752 | if test "$with_nonlinear_axes" = no; then | |
| 753 | 753 | AC_DEFINE(DISABLE_NONLINEAR_AXES, 1, | |
| 754 | - [ Define if you want to disable EXPERIMENTAL support for nonlinear axes ]) | ||
| 754 | + [ Define if you want to disable support for nonlinear axes ]) | ||
| 755 | 755 | fi | |
| 756 | 756 | ||
| 757 | 757 | dnl Sort help/subtopic tables by row or column | |
@@ -1360,7 +1360,7 @@ fi | |||
| 1360 | 1360 | if test "$with_caca" = yes; then | |
| 1361 | 1361 | AC_MSG_RESULT([ caca terminal: yes (EXPERIMENTAL)]) | |
| 1362 | 1362 | else | |
| 1363 | - AC_MSG_RESULT([ caca terminal: no (requires libcaca >= 0.99.beta15)]) | ||
| 1363 | + AC_MSG_RESULT([ caca terminal: no (use --with-caca to enable)]) | ||
| 1364 | 1364 | fi | |
| 1365 | 1365 | ||
| 1366 | 1366 | if test "$gnuplot_framework_AquaTerm" = yes; then | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,7 +51,7 @@ noinst_PROGRAMS = checkdoc doc2ipf doc2tex doc2gih doc2rnh doc2hlp \ | |||
| 51 | 51 | AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/term | |
| 52 | 52 | ||
| 53 | 53 | T = $(top_srcdir)/term/ | |
| 54 | - CORETERM = $(T)ai.trm $(T)aquaterm.trm $(T)be.trm \ | ||
| 54 | + CORETERM = $(T)ai.trm $(T)aquaterm.trm $(T)be.trm $(T)caca.trm \ | ||
| 55 | 55 | $(T)cairo.trm $(T)canvas.trm $(T)cgm.trm $(T)context.trm \ | |
| 56 | 56 | $(T)corel.trm $(T)debug.trm $(T)djsvga.trm $(T)dumb.trm $(T)dxf.trm \ | |
| 57 | 57 | $(T)dxy.trm $(T)eepic.trm $(T)emf.trm $(T)emxvga.trm $(T)epson.trm \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | /* | |
| 2 | 2 | * GNUPLOT - caca.trm | |
| 3 | 3 | * | |
| 4 | - * $Id: caca.trm,v 1.11 2017-04-19 18:52:14 markisch Exp $ | ||
| 4 | + * $Id: caca.trm,v 1.12 2017-07-05 19:17:59 sfeam Exp $ | ||
| 5 | 5 | * | |
| 6 | 6 | * This file uses UTF8 encoding and a tab size of 4. | |
| 7 | 7 | * | |
@@ -197,8 +197,10 @@ static caca_canvas_t * CACA_suspend_cv = NULL; | |||
| 197 | 197 | static TBOOLEAN CACA_windowed = FALSE; /* graphics output in different window*/ | |
| 198 | 198 | static TBOOLEAN CACA_exportonly = FALSE; /* no output to screen but to file */ | |
| 199 | 199 | static TBOOLEAN CACA_processing_events = FALSE; /* flag processing of events in CACA_text() */ | |
| 200 | + #ifdef WIN32 | ||
| 200 | 201 | static unsigned CACA_codepage = 0; | |
| 201 | 202 | static unsigned TMP_codepage; | |
| 203 | + #endif | ||
| 202 | 204 | ||
| 203 | 205 | /* drawing */ | |
| 204 | 206 | static char CACA_pen; /* current character used to draw point symbols */ | |
@@ -810,8 +812,12 @@ CACA_init_aspect_ratio(void) | |||
| 810 | 812 | if (CACA_dp) { | |
| 811 | 813 | height = caca_get_display_height(CACA_dp) / (CACA_ymax + CACA_status_height + 1); | |
| 812 | 814 | width = caca_get_display_width(CACA_dp) / (CACA_xmax + 1); | |
| 815 | + /* The caca man page says "these functions never fail". */ | ||
| 816 | + /* But in practice they can return 0. */ | ||
| 813 | 817 | } | |
| 814 | - if (height > width) { | ||
| 818 | + if (height == 0 || width == 0) { | ||
| 819 | + term->h_tic = term->v_tic = 1; | ||
| 820 | + } else if (height > width) { | ||
| 815 | 821 | term->h_tic = (height + width / 2) / width; | |
| 816 | 822 | term->v_tic = 1; | |
| 817 | 823 | } else { | |
@@ -3354,23 +3360,23 @@ START_HELP(caca) | |||
| 3354 | 3360 | "?terminal caca", | |
| 3355 | 3361 | "?term caca", | |
| 3356 | 3362 | "?caca", | |
| 3357 | - " The `caca` terminal driver uses `libcaca` to plot using ascii characters.", | ||
| 3358 | - " In contrast to the `dumb` terminal it is a full-fledged terminal and", | ||
| 3359 | - " includes support for (RGB) colors, box fill, images, rotated text,", | ||
| 3360 | - " filled polygons, unicode character encoding and mouse interaction.", | ||
| 3363 | + " [EXPERIMENTAL] ", | ||
| 3364 | + " The `caca` terminal is a mostly-for-fun output mode that uses `libcaca` to", | ||
| 3365 | + " plot using ascii characters. In contrast to the `dumb` terminal it includes", | ||
| 3366 | + " support for color, box fill, images, rotated text, filled polygons,", | ||
| 3367 | + " and mouse interaction.", | ||
| 3361 | 3368 | "", | |
| 3362 | 3369 | " Syntax:", | |
| 3363 | 3370 | " set terminal caca {{driver | format} {default | <driver> | list}}", | |
| 3364 | 3371 | " {color | monochrome}", | |
| 3365 | - " {{no}inverted}", | ||
| 3366 | - " {enhanced | noenhanced}", | ||
| 3372 | + " {{no}inverted} {{no}enhanced}", | ||
| 3367 | 3373 | " {background <rgb color>}", | |
| 3368 | 3374 | " {title \"<plot window title>\"}", | |
| 3369 | 3375 | " {size <width>,<height>}", | |
| 3370 | 3376 | " {charset ascii|blocks|unicode}", | |
| 3371 | 3377 | "", | |
| 3372 | 3378 | " The `driver` option selects the `libcaca` display driver or export `format`.", | |
| 3373 | - " Use `default` to let `libcaca` choose the platform default display driver.", | ||
| 3379 | + " Use `default` is to let `libcaca` choose the platform default display driver.", | ||
| 3374 | 3380 | " The default driver can be changed by setting the environment variable", | |
| 3375 | 3381 | " CACA_DRIVER before starting `gnuplot`.", | |
| 3376 | 3382 | " Use `set term caca driver list` to print a list of supported output modes.", | |
@@ -3434,7 +3440,7 @@ START_HELP(caca) | |||
| 3434 | 3440 | "?term caca bugs", | |
| 3435 | 3441 | "?caca limitations", | |
| 3436 | 3442 | "?caca bugs", | |
| 3437 | - " The `caca` terminal has some known bugs and limitations:", | ||
| 3443 | + " The `caca` terminal has known bugs and limitations:", | ||
| 3438 | 3444 | "", | |
| 3439 | 3445 | " Closing the terminal window by clicking the \"X\" on the title line", | |
| 3440 | 3446 | " does not work correctly. Press \"q\" to close the window.", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments