Scrollable help in gnuplot - gnuplot

I frequently use the help command in gnuplot. On my office computer (gnuplot 4.6), gnuplot is set up such that when I pull up a help page, I get a scrollable output from which I can exit with q. On my private computer (gnuplot 5.0), I only get some lines of help and need to Press return for more. I like the office setup much better. Did the behavior change from version 4 to 5, or is there a way to configure this? (Well, it's GNUplot, so I guess there is a way to configure it ;-)

You need to set the environment variable PAGER='less' in your .bashrc. In your terminal, run:
echo "export PAGER='less'" >> ~/.bashrc
source ~/.bashrc
After this, the help command will be scrollable.
Note: There are other variables that could be useful. Just run man gnuplot in your terminal, and take a look at the section ENVIRONMENT.

Related

How to stop GNUPLOT 5.4.5 after defining DATA command and how to clear command window

I have big troubles when manual inputing data acc. to: https://stackoverflow.com/questions/69532716/simple-line-from-two-points-continuing-through-points
When i start to typing data, I mean when i define points and want to correct sth - I cannot do that.
GNU plot starts to using very strange chars. And i cannot clear any data I already defined.
I dont even know how to stop gnuplot and continue my job.
Can anyone help me how to correct my data or maybe how to re-run gnuplot with simple command?
Is it also possible to clear command window in GNUPLOT 5.4.5 (windows)?
I tried to use CTRL - C, CTRL - D commands to return to default typing and it does not work. For clearing command window i tried to use clear or CLC or system 'cls' command and cannot achieve required effect :/

Changing gnuplot x11 output defaults

I am using gnuplot over ssh (-X) and due to different screen resolution issues, my x11 output window has minuscule fonts. I want to access the .Xdefaults file as mentioned in documentation but cannot locate it. This question GNUPLOT_DRIVER_DIRECTORY pointed towards some solution but I don't want to input it every time. Can someone help me find a permanent fix for font sizes?
What is your default terminal ? I think it shoulds be xterm, to have x11 as defaults.
shell> echo $TERM
What is yout default gnuplot terminal display ?
gnuplot> show term
Instruction in ~/.Xdefaults have a special syntax (some example in linuxcertif.com/man/1/gnuplot/ ). But i think that's not what you want to do. This is more for 'fine tuning'. And i think it will only be effective if your default terminal is allready x11.
gnuplot*pointsize: 2
gnuplot*background: white
gnuplot*textColor: black
Anyway, it is better to use gnuplot with a text file : file.gp where you put your commands. Then just put in the beginning of your file :
set term x11 font "arial,15"
And execute your file with :
shell> gnuplot file.gp -
do not forget the 'dash' '-' at the end of the command, so that you can continue to put command in the gnuplot prompt to debug additional command.

Is it possible to customize Terminator's prompt / hostname (user#domain) colors?

So far I have not seen anything on customizing the Terminator "prompt" colors.
I know it is possible through ~/.bashrc but this is overridden by Terminator. Is there a way to either customize Terminator's colors further or force it to use customized bashrc colors?
If neither of these are possible, can I at least bold it? The reason is to make each user execution clearly standout when outputs are lengthy.
Open ~/.bashrc and uncomment
#force_color_prompt=yes
by removing the hash:
force_color_prompt=yes
The colors should appear then.
Note: don't forget to source ~/.bashrc or restart your terminal.

How can make screen sessions to use same settings as original terminal

When I run 'screen' command after logging into the linux terminal from putty,
I see font color of folders got changed.
earlier folders are shown with different color(blue)'
Now all files are in same color.
How can I make sure even screen sessions also use same font settings as original terminal?
There really isn't enough information to answer this question, but here's a couple things you could do to troubleshoot.
Make sure that the $SHELL in screen is the same as the $SHELL in the original terminal (Run echo $SHELL before and after starting screen and compare the results). Perhaps screen is running a different shell and thus not reading your preferred .*rc file.
Also, try starting screen with a specific TERM value. Set screen's term value to $TERM before when starting screen like so:
screen -T $TERM
I would also recommend trying to replace $TERM with xterm if $TERM doesn't solve it.

Can you rename a shell session by command in linux?

I like to keep my shell sessions named with useful titles as I work, this helps me keep track of what I'm using each of the many tabs for.
Currently to rename a session I double click its name on the tabbed part of the console - is there any command that I can use to do this from within the shell? It would save me a bit of time.
thanks in advance
edit :-
I am using KDE's Konsole shell.
The article How to change the title of an xterm should help.
Currently to rename a session I double click its name on the tabbed part of the console
This sounds like you're using KDE's Konsole. Is this true?
If so, in KDE 3:
dcop $KONSOLE_DCOP_SESSION renameSession "I am renamed!"
In KDE 4, the old DCOP interfaces haven't been ported over to the new D-BUS IPC yet, but you can change the settings for tabnames to follow the window name set by each screen, and set the window name as described by the other answers.
According to this page, you should be able to use something like this:
echo -n "\033]0;New Window Title\007"
I'm not in Linux at the moment, so this is untested. I do know that it is possible to change the window title under program control, so this seems likely to work.
For /usr/bin/konsole
you can change the title of a konsole terminal from the menu:
Settings->Edit Current Profile->Tabs
edit "Tab title format" to be whatever you want. After interacting with the shell, the title will reset to what you put.
for /usr/bin/xterm running in xorg-server 2:1.10.1-1ubuntu1
echo -ne "\033]0;My Fun X-Terminal\007"
The answer to this really depends on the terminal program you're using.
However, I'll just assume it's sensible, and emulates an xterm enough that it respects xterm escape codes - in which case, you probably want to look here : http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#s3
Note: unwind's example below requires echo to be called like this "echo -ne", otherwise the '\' characters are echoed literally.
For the default terminal on Ubuntu (I'm still on 10.04) try xtitle.
$> sudo apt-get install xtitle
...
$> xtitle --title wow it worked!
or simply
$> xtitle this is great

Resources