qulogic/libgnt

Fix arrow keys
fix-arrow-keys
2019-02-20, Petteri Pitkänen
7ac801527b0b
Fix arrow keys

The key-tree expects that for arrow keys the terminal transmits codes that
are defined in the terminfo database, but these codes are transmitted only
in application mode. To make the arrow key handling portable across
terminals, and to prevent the need for manually translating these codes, put
the terminal into application mode by calling ncurses keypad().

Fixes #12676.
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
]>
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>GNT Reference Manual</title>
<abstract>
<title>GNT &version;</title>
<para>
GNT (GLib Ncurses Toolkit) is an ncurses toolkit for creating text-mode
graphical user interfaces in a fast and easy way.
</para>
</abstract>
</bookinfo>
<part id="gnt">
<title>GNT API Reference</title>
<xi:include href="xml/gnt.xml" />
<xi:include href="xml/gntbindable.xml" />
<xi:include href="xml/gntbox.xml" />
<xi:include href="xml/gntbutton.xml" />
<xi:include href="xml/gntcheckbox.xml" />
<xi:include href="xml/gntmenuitemcheck.xml" />
<xi:include href="xml/gntclipboard.xml" />
<xi:include href="xml/gntcolors.xml" />
<xi:include href="xml/gntcombobox.xml" />
<xi:include href="xml/gntentry.xml" />
<xi:include href="xml/gntfilesel.xml" />
<xi:include href="xml/gntkeys.xml" />
<!-- TODO: document not found. Find it.
<xi:include href="xml/gntid.xml" />
-->
<xi:include href="xml/gntlabel.xml" />
<xi:include href="xml/gntline.xml" />
<xi:include href="xml/gntmenu.xml" />
<xi:include href="xml/gntmenuitem.xml" />
<xi:include href="xml/gntprogressbar.xml" />
<xi:include href="xml/gntslider.xml" />
<xi:include href="xml/gntstyle.xml" />
<xi:include href="xml/gnttextview.xml" />
<xi:include href="xml/gnttree.xml" />
<xi:include href="xml/gntwidget.xml" />
<xi:include href="xml/gntwindow.xml" />
<xi:include href="xml/gntwm.xml" />
<xi:include href="xml/gntws.xml" />
<xi:include href="xml/gntutils.xml" />
</part>
<part>
<title>Appendices</title>
<index id="api-index-full">
<title>API Index</title>
<xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-deprecated">
<title>Index of deprecated symbols</title>
<xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-2.8.0">
<title>Index of new symbols in 2.8.0</title>
<xi:include href="xml/api-index-2.8.0.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-2.4.0">
<title>Index of new symbols in 2.4.0</title>
<xi:include href="xml/api-index-2.4.0.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-2.3.0">
<title>Index of new symbols in 2.3.0</title>
<xi:include href="xml/api-index-2.3.0.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-2.2.0">
<title>Index of new symbols in 2.2.0</title>
<xi:include href="xml/api-index-2.2.0.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-2.0.0">
<title>Index of new symbols in 2.0.0</title>
<xi:include href="xml/api-index-2.0.0.xml"><xi:fallback /></xi:include>
</index>
<xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
</part>
</book>