开发者

How to connect Java application to X11 to move cursor

开发者 https://www.devze.com 2023-02-19 06:06 出处:网络
I am trying to write an application like htop or saidar where the app开发者_JAVA百科lication does not keep redrawing the output in the terminal.

I am trying to write an application like htop or saidar where the app开发者_JAVA百科lication does not keep redrawing the output in the terminal.

I would like to use X11 to move the cursor to where I want it and update the information.

Is there a way to do this?


Htop and saidar use Curses (not X11) to position the cursor.

For that you need a curses java library--google told me there was one here http://sourceforge.net/projects/javacurses/

Curses lets you output ASCII characters to move the cursor around the screen. It can be used over telnet since it's all ASCII

0

精彩评论

暂无评论...
验证码 换一张
取 消