bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT, Example code, mixing framebuffer and ncurses ?


From: Patrick
Subject: OT, Example code, mixing framebuffer and ncurses ?
Date: Mon, 19 Feb 2018 14:39:51 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi Everyone

I have several software projects I am working on. One of them is controlling scientific instruments and processing the resulting data.

Software used in laboratories is all Windows. Trying to get people to use Linux and even more so, Linux and ncurses is going to be hard.

The thing is that I love ncurses + Linux and just because people expect buggy, spyware-friendly software doesn't mean I have to write more.

I am pretty much all set to go but I have to solve a problem, how can I show a decent graph to the user of the data being collected....

I have thought about using braille characters like htop but I don't think the 8 high by 2 wide set of dots will offer enough resolution. I have tried sixel but support is patchy and this also requires X.

I can also write pixel images to terminal by obtaining the window ID of the terminal and drawing into a foreign window.

However, in my heart of hearts, I think the best thing is to offer a new user a a Linux console with one application running, a sort of Kiosk solution.

To display a graph I will need to use the framebuffer. Does anyone have any examples of using the framebuffer with ncurses code ? or if not, can you give me any advice?

I am roughing looking to draw a 4" by 3" graph to the upper right corner of the screen while leaving the rest of the screen to ncurses.

Have a great day-Patrick







reply via email to

[Prev in Thread] Current Thread [Next in Thread]