[Mono-list] Console.ReadKey() => no spezial chars on Linux

Chris Howie cdhowie at gmail.com
Thu Feb 19 16:54:37 EST 2009

On Mon, Feb 16, 2009 at 4:33 PM, Paebbels <Paebbels at gmail.com> wrote:
> Home returns on Windows ConsoleKey.Home, on Mono ConsoleKey.Esc with ASCII
> Char 27 (also: End, Delete, ....)

It seems in the case that Mono is not translating CSI escape codes to
their corresponding symbolic value.  For example, if you strike the
home key in a console that doesn't interpret it (e.g. bash will not
work) then you will see "^[OH".  ^[ is the representation of the
escape key.

If you think Mono should do this translation for you then you might
file a bug report about it.  You could also interpret them yourself.

Chris Howie

More information about the Mono-list mailing list