termkey_keycmp man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

TERMKEY_KEYCMP(3)					     TERMKEY_KEYCMP(3)

NAME
       termkey_keycmp - compare two key events

SYNOPSIS
       #include <termkey.h>

       int termkey_keycmp(TermKey *tk, const TermKeyKey *key1,
		    const TermKeyKey *key2);

       Link with -ltermkey.

DESCRIPTION
       termkey_keycmp() compares two key structures and applies a total order‐
       ing, returning a value that is negative, zero, or positive, to indicate
       if  the	given  structures  are	increasing,  identical, or decreasing.
       Before comparison, copies of both referenced structures are taken,  and
       canonicalised according to the rules for termkey_canonicalise(3).

       Two  structures	of  differing  type  are ordered TERMKEY_TYPE_UNICODE,
       TERMKEY_TYPE_KEYSYM, TERMKEY_TYPE_FUNCTION, TERMKEY_TYPE_MOUSE. Unicode
       structures  are	ordered by codepoint, keysym structures are ordered by
       keysym number, function structures are ordered by function key  number,
       and mouse structures are ordered opaquely by an unspecified but consis‐
       tent ordering. Within these values, keys different in modifier bits are
       ordered by the modifiers.

RETURN VALUE
       termkey_keycmp()	 returns  an  integer  greater than, equal to, or less
       than zero to indicate the relation between the  two  given  key	struc‐
       tures.

SEE ALSO
       termkey_strpkey(3), termkey_canonicalise(3), termkey(7)

							     TERMKEY_KEYCMP(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net