Date:2011-01-05 12:19:06 (13 years 2 months ago)
Author:David Kühling
Commit:21acf8eb423af24ca00835192239d50f2e4570a8
Message:gnuplot: fix ggi terminal video mode detection

Files: gnuplot-ggi/patches/020-ggi-setmode.patch (2 diffs)

Change Details

gnuplot-ggi/patches/020-ggi-setmode.patch
11Index: gnuplot-4.4.0/term/ggi.trm
22===================================================================
33--- gnuplot-4.4.0.orig/term/ggi.trm 2011-01-04 21:47:00.000000000 +0100
4+++ gnuplot-4.4.0/term/ggi.trm 2011-01-04 21:47:45.000000000 +0100
54@@ -374,6 +374,7 @@
65     /* user specified mode */
76     if (!ggiParseMode(GGI_mode_spec, &mode)) {
...... 
1010         if (!ggiSetMode(GGIvisual, &mode)) {
1111         success = 1;
1212         }
13@@ -381,8 +382,11 @@
14     }
15
16     if (!success) {
17- /* try the default mode */
18- if(ggiSetSimpleMode(GGIvisual,GGI_AUTO,GGI_AUTO,GGI_frames,GT_AUTO)) {
19+ /* try the default mode */
20+ ggiParseMode("", &mode);
21+ ggiCheckMode(GGIvisual, &mode);
22+
23+ if (ggiSetMode(GGIvisual, &mode)) {
24         ggiPanic("(GGI_init() unable to set default mode\n");
25         GGIvisual = (ggi_visual_t)0;
26     }

Archive Download the corresponding diff file



interactive