bug-ncurses
[Top][All Lists]
Advanced

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

Re: how to use addch with 8bit-characters (i.e German Umlaut 'ü')


From: Thomas E. Dickey
Subject: Re: how to use addch with 8bit-characters (i.e German Umlaut 'ü')
Date: Mon, 23 Jul 2001 15:35:00 -0400 (EDT)

On 23 Jul 2001, Felix Natter wrote:

> hi,
>
> gtypist (http://www.gnu.org/software/gtypist/) reads characters one at a
> time from a file and echos them. In another place reads characters one at a
> time using getch, and echos them to the screen using addch.

addch() doesn't use a char for parameter, but an integer.
The most common cause of the blinking symbol is sign-extension from a
char.

>
> But if I enter a German Umlaut (or any other 8bit-character), this results
> in a blinking symbol (probably because addch interprets the 8th bit
> as a blink bit ?)
>
> how can I avoid this ?
>
> *please cc any replies to address@hidden
>
> thanks,
>
>

-- 
T.E.Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com




reply via email to

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