[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ncurses-bug
Subject:    Re: trying to use sixel images
From:       Thomas Dickey <dickey () his ! com>
Date:       2017-01-01 0:53:43
Message-ID: 20170101005343.GB110960 () vmw-debian7-64 ! jexium-island ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Fri, Dec 30, 2016 at 02:11:21PM -0500, Patrick wrote:
> Hi Everyone !
> 
> I found this library yesterday and I am very excited about it:
> 
> https://github.com/saitoha/libsixel
> 
> I love ncurses but I have had to use lots of widget toolkits too due
> to the issues supporting images under ncurses.
> 
> I have been miserable with these toolkits and I have been going
> around in circles, literally for years.
> 
> Does anyone have any tips for mixing sixel and ncurses. I am going
> to pour gasoline over myself if this doesn't work :)
> 
> Sixel images work with ANSI escape codes which don't play nice with
> ncurses.
> 
> We can use ANSI escape codes to move the cursor around but ncurses
> will loose track of were it is. If I write sixel data to the screen
> ncurses will also loose track of the cursor too.
> 
> Would it be okay to:
> 1)switch to raw

curses already has the terminal in raw mode...

> 2)write sixel images(I am using mlterm BTW)

either way, you have to see how to set aside an area on the screen which
curses doesn't update.  In ded, I do this without windowing - just by
keeping in mind where I've told curses to work.

	http://invisible-island.net/ded/

> 3)use ANSI escapes to move the cursor back were it was

you could use mvcur (no special escapes needed)

-- 
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

["signature.asc" (application/pgp-signature)]

_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ncurses


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic