Sorry, I ran into two more issues that I fixed today. New patch is
attached.
1. I added support for set origin to relative/absolute (ESC[?6h, ESC[?6l)
2. Recognize set/clear graphmode with ESC(0, ESC(B
I also put in a clear screen at the end of the creation process. You
probably don't notice the issue if you use a black background, but I
prefer black on white terminals so this was bugging me.
Thanks! -Ross
On 12/07/2010 09:34 AM, Ross Mohn wrote:
> Hi,
>
> I’m no terminal expert, and I’m reluctant to add more code to the
> madtty.c source, but I hope these changes will be considered. They
> certainly work for me!
>
> The existing ESC ] s (CUPSV) and ESC ] u (CUPRS) are for save/restore
> cursor position. I use at least one program that uses ESC 7 (DECSC)
> and ESC 8 (DECRC) to save/restore state, both cursor position and
> character attributes, so I’ve implemented them. To do this, I created
> reusable functions for save_curs(), restore_curs(), save_attrs(), and
> restore_attrs() because they are used more than once now.
>
> I also have some programs that were displaying weird reverse video
> backgrounds, only in dvtm. To fix this I added code at the beginning
> and end of the interpret_csi_ED() ‘erase display’ function so that the
> display is always erased with A_NORMAL character attributes.
>
> Thanks! –Ross
>
This archive was generated by hypermail 2.2.0 : Tue Dec 07 2010 - 22:48:03 CET