Below is the file 'packages/gnuplot/files/term.patch' from this revision. You can also download the file.