Menu

#2497 terminal setting in gnuplot.ini or .gnuplot is not displayed propely

None
closed-fixed
nobody
None
2023-06-12
2022-02-14
No

This may not be a bug but is better to be considered.
In windows version gnuplot (5.2, 5.4 and 5.5),
I wrote in %APPDATA%gnuplot.ini

set terminal wxt font 'Arial'

and start gnuplot

In the gnuplot opening windows :

Terminal type is now 'qt' (<==qt???)
gnuplot>

gnuplot> show terminal
terminal type is wxt 0 enhanced font "Arial"

Description of gnuplot.ini for terminal setting is definite set but the timing was not proper.

I also have confirmed the similar behavior for ~/.gnuplot in the cygwin.

Discussion

  • Tatsuro MATSUOKA

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,4 @@
    +This may not be a bug but is better to be considered.
     In windows version gnuplot (5.2, 5.4 and 5.5),
     I wrote in %APPDATA%gnuplot.ini
    
    • Group: -->
    • Priority: -->
     
  • Bastian Märkisch

    This is the corresponding change: [fb1214]

    2017-06-01  Ethan A Merritt  <merritt@u.washington.edu>
    
        * src/gadgets.c src/plot.c src/term.c (load_linetype):
        A 2017-04-10 patch re-ordered initialization to (1) error handling,
        (2) session state, (3) default terminal.  This had the effect that a
        command in ~/.gnuplot that queried terminal state could segfault
        because the terminal had not yet been initialized.  Now we reorder again
        to (1) error handling (2) terminal (3) session state from ~/.gnuplot.
        For safety also add sanity checks in load_linetype() so that
        term == NULL does not segfault.
    
     

    Related

    Commit: [fb1214]

  • Tatsuro MATSUOKA

    Bastian
    Thank you for the pointer (Commit: [fb1214]).

    Now we reorder again to (1) error handling (2) terminal 
    (3) session state from ~/.gnuplot.
    

    However, we can also set default terminal in ~/.gnuplot (%APPDATA%\gnuplot.ini in windows) and setting default terminal in gnuplot.ini are described in ReadmeWindows.txt in windows distribution.

     Alternatively, you can add
        set term windows / wxt / qt
    to your gnuplot.ini, see `help startup`.
    
     

    Related

    Commit: [fb1214]

  • Ethan Merritt

    Ethan Merritt - 2023-06-12
    • status: open --> closed-fixed
     

Log in to post a comment.