Lines border every row when i use a frame for my custom style What I want:
a pure black background with white text Code:
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage{listings}
\usepackage{color}
\lstdefinestyle{terminal}
{
frame=single,
basicstyle=\footnotesize \ttfamily \color{white},
showstringspaces=false,
backgroundcolor=\color{black},
%framerule=0pt,
%rulecolor=\color{black},
%fillcolor=\color{black},
%rulesepcolor=\color{black},
}
\begin{document}
\begin{lstlisting}[style=terminal]
[USERNAME@HOSTNAME folder]$ ./a.out
[USERNAME@HOSTNAME folder]$ ./a.out
[USERNAME@HOSTNAME folder]$ ./a.out
\end{lstlisting}
\end{document}
I was reading "The Latex Companion" second edition p.150 which states '...there is no direct way to fill the entire background...(unless you use a few tricks)...'... im probably misinterpreting this... does this mean it is not possible to make everything in the background pure black...
i have seen other latex articles which have the same lines...
for example: the "listings.pdf" p.17
i tried to alter properties of the frame hoping one of them might work(in the code i have them commented out) none of them worked
when i add \pagecolor{black} the lines "dissapear" so i think it is the page color seeping through
im not sure how to search for a solution... im not sure what these lines are called... i searched the forum for: lines, frame, border... but i found none which looked relavent
kind regards,
Mean Mr Mittens