Some terminals, e.g. mlterm and terminology, have support for ReGIS in-terminal vector graphics, and gnuplot has support for it. However, it's a bit tricky way to enable it - there is explanation, how to do it: http://gnuplot.10905.n7.nabble.com/Enable-regis-terminal-when-compile-gnuplot-td17712.html Quoting the reply: -------------------------------------------- This is mentioned in the INSTALL instructions, although it would be easy to miss. Basically you edit the file .../src/term.h and uncomment the line containing #include "regis.trm" /* REGIS graphics language */ /* # include "regis.trm" */
Seems simple enough (and I am going to attach a patch). However, term/regis.trm says "Note: legacy terminal", and in src/term.h support is only enabled under a VMS conditional. So I wonder if we should add support for a feature that upstream considers to be legacy.
Created attachment 514072 [details, diff] files/gnuplot-5.2.2-regis.patch Patch for package. This adds a --with-regis configure option.
Created attachment 514074 [details, diff] Patch for gnuplot-5.2.2.ebuild Patch for ebuild. Please test.
It works). Tried these examples: http://gnuplot.sourceforge.net/demo/
It works)
I have submitted a feature request upstream: https://sourceforge.net/p/gnuplot/feature-requests/472/ If upstream accepts it, we can patch gnuplot-5.2.2 to include the feature.
(upstream here) I've added this to git tip (not yet to branch-5-2-stable) But I seriously suggest that you would be better off using gnuplot's sixel or dom terminals. Gnuplot's regis code is 20 years old and does not support all the nice features and plot modes added since then. The sixel and dom terminals are fully up to date. Any terminal emulator that supports ReGIS almost certainly supports sixel as well. The dom terminal requires in-terminal svg support, which is a bit more obscure. See the documentation for pointers on compatible terminal emulators.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d16bf2294acc3e5d523da4a4c0544ae7a02d4558 commit d16bf2294acc3e5d523da4a4c0544ae7a02d4558 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2018-01-12 08:35:46 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2018-01-12 08:36:57 +0000 sci-visualization/gnuplot: New regis USE flag to enable ReGIS terminal. Closes: https://bugs.gentoo.org/643888 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../gnuplot/files/gnuplot-5.2.2-regis.patch | 43 ++++++++++++++++++++++ sci-visualization/gnuplot/gnuplot-5.2.2.ebuild | 6 ++- sci-visualization/gnuplot/metadata.xml | 1 + 3 files changed, 48 insertions(+), 2 deletions(-)
Added to gnuplot-5.2.2, without revision bump.