[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trying to use sixel images
From: |
Thomas Dickey |
Subject: |
Re: trying to use sixel images |
Date: |
Sat, 31 Dec 2016 19:53:43 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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 <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature