Key combinations

View: New views
4 Messages — Rating Filter:   Alert me  

Key combinations

by MTK358 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there a way to detect keyboard shortcuts (with the Ctrl or Alt/Meta
keys) in a terminal-independent manner, and also be able to tell the
difference between, for example, Ctrl+J and Line Feed?



_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses

Re: Key combinations

by Thomas Dickey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 22 Sep 2009, Michael Kirsch wrote:

> Is there a way to detect keyboard shortcuts (with the Ctrl or Alt/Meta
> keys) in a terminal-independent manner, and also be able to tell the
> difference between, for example, Ctrl+J and Line Feed?

no

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses

Parent Message unknown Re: Key Combinations

by MTK358 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Then would it be possible to have terminal independent modifier keys,
not caring about Ctrl+J being the same as Enter?



_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses

Re: Key Combinations

by Thomas Dickey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 22 Sep 2009, Michael Kirsch wrote:

> Then would it be possible to have terminal independent modifier keys,
> not caring about Ctrl+J being the same as Enter?

still no (most character terminals don't provide any way to get the
modifiers, since the modifier information is part of the character).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses