From 475b46f51611d0dd9a15d78db0ee1ea8c142b106 Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Sat, 12 Sep 2015 16:49:02 -0400 Subject: [PATCH] working on unicodeplots --- src/backends/unicodeplots.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/backends/unicodeplots.jl b/src/backends/unicodeplots.jl index 322c2047..dad0faa7 100644 --- a/src/backends/unicodeplots.jl +++ b/src/backends/unicodeplots.jl @@ -116,8 +116,11 @@ end function savepng(::UnicodePlotsPackage, plt::PlottingObject, fn::String, args...) # = error("currently unsupported") display(plt) - @osx_only begin - run(`screencapture -w $fn`) + try + # run(`screencapture -w $fn`) + using PyCall + @pyimport pyscreenshot as pss + # todo: grab screen to $fn return end error("Can only savepng on osx with UnicodePlots.")