[Patch]: Ncurses frame drawing

Micha Nelissen M.Nelissen@student.tue.nl
Tue Oct 14 11:29:00 GMT 2003


Corinna Vinschen wrote:

> On Mon, Oct 13, 2003 at 06:38:42PM +0200, Micha Nelissen wrote:
> 
>>Hi,
>>
>>Attached is a patch to enable correct ncurses frame drawing. It does so 
>>by implementing the escape sequence for 'start/end alternate charset'. 
>>This is code \E[11m and \E[10m respectively in the linux termcap.
> 
> 
> This patch is a nice idea but it's not quite correct.  You can't
> rely on "current_codepage" being ansi_cp.  Since the user can set
> it to oem_cp in the CYGWIN environment variable, you have to memorize
> the old value on \E[11m and to restore to the old value on \E[10m.

Ok, that's true.  Attached is a patch with the suggested changes.

Regards,

Micha.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: charset.log
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031014/f1bbb3f8/attachment.log>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: charset.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031014/f1bbb3f8/attachment.ksh>


More information about the Cygwin-patches mailing list