((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/x11-keysyms" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (toc) (tags "egg")) (section 2 "x11-keysyms" (section 3 "Introduction" (p "This extension maps named X11 " (link "http://tronche.com/gui/x/xlib/input/keyboard-encoding.html" "keysyms") " to their names and vice versa.") (p "A single procedure is exported:") (def (sig (procedure "(keysym CODE-OR-NAME)" (id keysym))) (p "If " (tt "CODE-OR-NAME") " is an exact integer, " (tt "(keysym CODE-OR-NAME") " returns a symbol naming the X11 keysym. If the argument is a symbol, the keysym code is returned as an exact integer.") (p "The following subset of keysyms is available:") (p "TTY function keys") (p "International & multi-key character composition") (p "Japanese keyboard support") (p "Cursor control & motion") (p "Misc functions") (p "Keypad functions") (p "Auxilliary functions") (p "Modifiers") (p "Latin-1"))) (section 3 "Usage" (pre " (require-extension x11-keysyms)")) (section 3 "Examples" (highlight scheme "(keysym #xff0a)    ==>   Linefeed            ; <- note the uppercase 'L'!\n(keysym 'dollar)   ==>   36")) (section 3 "Author" (p (int-link "/users/felix winkelmann" "felix winkelmann"))) (section 3 "Version history" (dl (dt "0.2") (dd "added test-script") (dt "0.1") (dd "initial version"))) (section 3 "License" (pre "Copyright (c) 2011, Felix L. Winkelmann\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following\nconditions are met:\n\n  Redistributions of source code must retain the above copyright notice, this list of conditions and the following\n    disclaimer. \n  Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following\n    disclaimer in the documentation and/or other materials provided with the distribution. \n  Neither the name of the author nor the names of its contributors may be used to endorse or promote\n    products derived from this software without specific prior written permission. \n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS\nOR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR\nOTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE."))))