* fhandler_console.cc (fhandler_console::read): Restrict generating
META key sequences to singlebyte input chars.
This commit is contained in:
parent
aa9681ec35
commit
ed66791aba
|
@ -1,3 +1,8 @@
|
||||||
|
2009-11-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_console.cc (fhandler_console::read): Restrict generating
|
||||||
|
META key sequences to singlebyte input chars.
|
||||||
|
|
||||||
2009-11-08 Corinna Vinschen <corinna@vinschen.de>
|
2009-11-08 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Drop all "other"
|
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Drop all "other"
|
||||||
|
|
|
@ -379,18 +379,23 @@ fhandler_console::read (void *pv, size_t& buflen)
|
||||||
else
|
else
|
||||||
toadd = tmp + 1;
|
toadd = tmp + 1;
|
||||||
}
|
}
|
||||||
else if (dev_state->metabit)
|
else if (nread == 1)
|
||||||
{
|
{
|
||||||
tmp[1] |= 0x80;
|
/* META handling is restricted to singlebyte (ASCII)
|
||||||
toadd = tmp + 1;
|
character values. */
|
||||||
}
|
if (dev_state->metabit)
|
||||||
else
|
{
|
||||||
{
|
tmp[1] |= 0x80;
|
||||||
tmp[0] = '\033';
|
toadd = tmp + 1;
|
||||||
tmp[1] = cyg_tolower (tmp[1]);
|
}
|
||||||
toadd = tmp;
|
else
|
||||||
nread++;
|
{
|
||||||
dev_state->nModifiers &= ~4;
|
tmp[0] = '\033';
|
||||||
|
tmp[1] = cyg_tolower (tmp[1]);
|
||||||
|
toadd = tmp;
|
||||||
|
nread++;
|
||||||
|
dev_state->nModifiers &= ~4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#undef ich
|
#undef ich
|
||||||
|
|
Loading…
Reference in New Issue