[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: Glitch after system start
From: |
Hohl, Gerrit |
Subject: |
AW: Glitch after system start |
Date: |
Mon, 6 Jul 2015 11:51:51 +0200 |
Hello everyone,
okay, I found the problem: The Java Curses Library is not thread-safe - unlike
other windows toolkits which handle input and output in one event thread which
is responsible for those two aspects. And one of my asynchronous threads made
an update of the content of a window which was passed by the Java Curses
Library directly to the Curses library - while it still performed some other
painting actions. That led to the problem.
Now I have more and more serious thoughts about writing an own Curses Java
Wrapper (maybe using JNA) and an own windows toolkit (maybe like the good old
Borland TurboVision - I mean the look and feel) on top of that. If I only would
have more time... :(
Regards
Gerrit
-----Ursprüngliche Nachricht-----
Von: address@hidden [mailto:address@hidden Im Auftrag von Hohl, Gerrit
Gesendet: Montag, 6. Juli 2015 09:11
An: address@hidden
Betreff: AW: Glitch after system start
Good morning Thomas,
ah, okay. It's interesting that it is working most of the time, but sometimes
not recognized by the terminal.
But it sounds like I can't do much against it on my side. :(
Anyway thank you very much for the information. :)
Regards,
Gerrit
-----Ursprüngliche Nachricht-----
Von: Thomas Dickey [mailto:address@hidden
Gesendet: Freitag, 3. Juli 2015 18:31
An: Hohl, Gerrit
Cc: address@hidden
Betreff: Re: Glitch after system start
----- Original Message -----
| From: "Gerrit Hohl" <address@hidden>
| To: address@hidden
| Sent: Friday, July 3, 2015 11:24:23 AM
| Subject: Glitch after system start
|
|
|
|
|
| Hello everyone,
|
|
|
| I have a setup program written in Java based on Java Curses Library
| which is based on NCurses.
|
| The setup program is executed at the boot time of an Ubuntu Linux.
|
| Most of the time everything works fine, but sometimes I get odd
| characters.
|
|
|
| Some of them occurred while some services where still starting in the
| background and produces some output.
|
| I could solve that using the Linux kernel parameter "console=tty7".
|
|
|
| But now I'm still facing a problem - at least from time to time as it
| doesn't appear all the time. I get a [79G in the upper left corner
| followed by a vertical line (ASCII block graphic). And after that the
| Java Curses Library / NCurses draws everything the right way, even the
| width is okay (in this case it's the border of window which is drawn.
| The upper left corner is right in the upper left corner of the screen
| [0, 0]).
It sounds as if the terminal is not honoring CHA:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
CSI Ps G Cursor Character Absolute [column] (default = [row,1]) (CHA).
http://man7.org/linux/man-pages/man4/console_codes.4.html
G CHA Move cursor to indicated column in current row.
http://invisible-island.net/ncurses/terminfo.src.html#tic-xterm-basic
hpa=\E[%i%p1%dG,
|
| So it should like this (hopefully it will be shown correctly in your
| mail client):
|
| ┌────────┐
|
| │ │
|
| │ │
|
| │ │
|
| └────────┘
|
|
|
| But looks like that:
|
| [79G│────┐
|
| │ │
|
| │ │
|
| │ │
|
| └────────┘
|
| While the window and the border has a gray background and a black
| foreground, that characters have a black background and a gray
| foreground.
|
|
|
| I looked in the Internet for that sequence [79G, but couldn't find any
| information about it (because it looks like a console code).
|
|
|
| Does anyone of you know what that [79G means?
|
| If I would know what it means I maybe could track down the problem.
|
|
|
| Regards,
|
| Gerrit
|
|
| _______________________________________________
| Bug-ncurses mailing list
| address@hidden
| https://lists.gnu.org/mailman/listinfo/bug-ncurses
|
--
Thomas E. Dickey <address@hidden> http://invisible-island.net
ftp://invisible-island.net
_______________________________________________
Bug-ncurses mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ncurses