posts:node: Add a post on Node and npm
[blog.git] / posts / Tektronix_emulation_and_Gnuplot.mdwn
1 I just discovered that [gnuplot][] has an `xterm` terminal output mode
2 which uses [xterm][]'s tektronix emulator ([since gnuplot
3 4.2.6][release]).  This is useful if you have logged into a remote
4 machine and want to plot something, but you didn't have the foresight
5 to use `ssh -Y` to bring along a connection to your X server.  I used to use
6
7     gnuplot> set term dumb
8
9 but often the low resolution available with standard terminal
10 characters left the resulting output almost unintelligible.  With
11
12     gnuplot> set term xterm
13
14 your `xterm` will pop up a new window in tektronix mode, in which you
15 get very nice monochrome graphics.
16
17 Besides the “forgot to tunnel X” use case outlined above, this output
18 would also be useful if you wanted to avoid exposing yourself to [[X
19 vulnerabilies|X_hacks]] while logging into an untrusted machine.
20
21 Obviously, you'll have to be running `xterm` for any of this to work ;).
22
23 [gnuplot]: http://www.gnuplot.info/
24 [xterm]: http://invisible-island.net/xterm/
25 [release]: http://www.gnuplot.info/announce.4.2.6
26
27 [[!tag tags/fun]]
28 [[!tag tags/linux]]