[Top][All Lists]

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

ungetch and meta

From: Mike Gran
Subject: ungetch and meta
Date: Sun, 21 Dec 2008 19:20:26 -0800 (PST)


Here is a bug/feature that is probably so obscure that it doesn't matter in the 
real world, but, I'll throw it out there for the sake of pedantry.

The function ungetch() doesn't honor meta, and getch doesn't appear to truncate 
to 7-bits those characters that have been pushed using ungetch().

If I change to 7-bit using meta(stdscr, FALSE), I can still push an 8-bit 
character using ungetch(), and then retrieve the 8-bit character with getch().

Mike Gran

reply via email to

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