gnuplot-0.5: src/Graphics/Gnuplot/Private/Terminal.hs
module Graphics.Gnuplot.Private.Terminal where
data T =
Cons {
options :: [String],
commands :: [String]
}
class C terminal where
canonical :: terminal -> T
deflt :: T
deflt = Cons ["x11"] []
formatBool :: String -> Bool -> String
formatBool name b =
if b then name else "no"++name