SwingTerminal.keyPressed (line 889) and
SwingTerminal.keyTyped (line 884) try to cast buffer
(an instance of VDUBuffer) to VDUInput, which VDUBuffer
does not implement! There are also multiple tests for
(buffer instanceof VDUInput) littering the file.
I tried to figure out what was intended here, and I
decided that the response to input events should be
external to SwingTerminal. Therefore, I added a
private instance of VDUInput and get/set methods.
SwingTerminal now invokes the appropriate methods of
the VDUInput instance when it receives input events.
Contact Kevin Krumwiede (email@example.com)