rainb0w-light / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

New windows rendering vertical lines on VT220 terminal #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have created an app using lanterna framework to use it on RF Scanner Gun.

Emulation is set to VT 220 on the RF profile. And the graphics environment is 
headless.

Problem is, when I am opening a new window, it is carrying part of text box to 
the next window. If you see the attached image, you will see vertical lines 
from previous windows.

I tried with emuation as VT100, it is even worse. It is carrying characters 
from previous windows. So VT220 is not carrying over characters but it is 
showing vertical lines.

I am creating the terminal using below code.

Terminal terminal = TerminalFacade.createTerminal();

Is there any additional configuration to do ? Appreciate any help !

Thanks.

Original issue reported on code.google.com by venu1...@gmail.com on 12 Aug 2014 at 4:00

Attachments:

GoogleCodeExporter commented 9 years ago
This looks like a problem with the device rather than the library... Where is 
the java code actually running? Are you telnet:ing to a remote process or are 
you running it locally?
Have you tried to clearScreen() before printing any text?
You could also manually put <screen width> x <screen height> number of 
blankspaces to see if that fixes these artifacts.

Original comment by mab...@gmail.com on 21 Aug 2014 at 12:29

GoogleCodeExporter commented 9 years ago
Java code is running on linux server and I am telneting it from the device.

I tried GUIScreen's clear() and refresh() methods with VT220 and VT100 
emulation.

With VT220 emulation, those lines are still there even after clear and refresh.

With VT100 emulation, it's clearing the buffer but the problem is screen is 
right adjusted every time I do the clear and refresh. I can see extra columns 
before the actual text. 

Original comment by venu1...@gmail.com on 21 Aug 2014 at 2:56

GoogleCodeExporter commented 9 years ago
This problem is solved by setting the the Display Language on the device and 
using the same character set while creating the terminal.

Original comment by venu1...@gmail.com on 21 Aug 2014 at 7:30

GoogleCodeExporter commented 9 years ago
Good

Original comment by mab...@gmail.com on 22 Aug 2014 at 3:43