started working with lanterna and got swing terminal emulator to work