Swing Terminal in MacOS iTerm fails

41 views
Skip to first unread message

Chris Hapgood

unread,
Feb 6, 2021, 5:29:42 PM2/6/21
to lanterna-discuss

I'm just getting started with Lanterna 3.1.1 on Java 8/MacOS 10.15.7/iTerm2 3.4.  When trying to instantiate a SwingTerminal via the DefaultTerminalFactory, I get an exception:

Execution error (IllegalArgumentException) at java.awt.image.DirectColorModel/createCompatibleWritableRaster (DirectColorModel.java:1016).
Width (0) and height (0) cannot be <= 0

Any ideas on where I'm going wrong?  Any places to further investigate?  I'm a Clojure developer and I'm not familiar with Swing or AWT.  I was attracted to lanterna due to how it smooths over the details of those two with a pretty simply API.
Reply all
Reply to author
Forward
0 new messages