<?xml version="1.0" encoding="utf-8" ?>

<!--
    (C) Copyright David Goodwin, 2025.
    Permission is granted to copy, distribute and/or modify this document under
    the terms of the GNU Free Documentation License, Version 1.3 or any later
    version published by the Free Software Foundation; with no Invariant
    Sections, no Front-Cover Texts, and no Back-Cover Texts.
-->

<!--
This DTD is just here to help editors catch mistakes; the tool for converting
this document to HTML isn't quite as strict, and the DTD is not comprehensive.
-->
<!DOCTYPE document [
        <!ENTITY mdash "-">
        <!-- TODO - that really should be a proper mdash, but something
             (Regina REXX?) is converting everything to ASCII causing it to be
              mangled-->

        <!ATTLIST document title CDATA #REQUIRED>

        <!ELEMENT index EMPTY>

        <!ELEMENT badge-def EMPTY>
        <!ATTLIST badge-def name ID #REQUIRED>
        <!ATTLIST badge-def colour CDATA #IMPLIED>
        <!ATTLIST badge-def comment CDATA #IMPLIED>
        <!ATTLIST badge-def fg-color CDATA #IMPLIED>
        <!ATTLIST badge-def sort-order CDATA #IMPLIED>
        <!ELEMENT badges (badge-def)*>

        <!ELEMENT badge EMPTY>
        <!ATTLIST badge name IDREF #IMPLIED>
        <!ATTLIST badge group IDREF #IMPLIED>

        <!ELEMENT badgegroup-ref EMPTY>
        <!ATTLIST badgegroup-ref name IDREF #REQUIRED>

        <!ELEMENT badgegroup (badge|badgegroup-ref)*>
        <!ATTLIST badgegroup name ID #REQUIRED>
        <!ELEMENT badgegroups (badgegroup)*>


        <!ELEMENT k95info EMPTY>
        <!ATTLIST k95info val (herald|version-number|release|release-actual|version-full|version-date|version-date-short|version-date-iso|version-major|version-minor|version-rev|processed-date|processed-time) #REQUIRED>

        <!ELEMENT br EMPTY>

        <!ELEMENT em (#PCDATA)>
        <!ELEMENT cc (#PCDATA)>
        <!ELEMENT tt (#PCDATA|a|em|cc|badge|tt|b|u|param-char|param-single|param-multi|param-text|k95info)*>
        <!ELEMENT pre (#PCDATA|b|cc)*>
        <!ELEMENT b (#PCDATA)>
        <!ELEMENT u (#PCDATA)>

        <!ELEMENT li (#PCDATA|a|em|cc|badge|tt|b|u|param-char|param-single|param-multi|param-text|k95info)*>

        <!ELEMENT ul (li)*>

        <!ELEMENT ol (li)*>

        <!ELEMENT dt (#PCDATA)>
        <!ATTLIST dt not-implemented (true|false) #IMPLIED>
        <!ELEMENT dd (#PCDATA|a|em|cc|badge|tt|b|u|param-char|param-single|param-multi|param-text|k95info)*>


        <!ELEMENT dl (dt,dd)*>

        <!ELEMENT a (#PCDATA|em|cc|badge|tt|b|u|param-char|param-single|param-multi|param-text|k95info)*>
        <!ATTLIST a href CDATA #REQUIRED>

        <!ELEMENT param-single EMPTY>
        <!ATTLIST param-single symbol CDATA #IMPLIED>
        <!ATTLIST param-single value CDATA #IMPLIED>
        <!ATTLIST param-single description CDATA #IMPLIED>

        <!ELEMENT param-char EMPTY>
        <!ATTLIST param-char symbol CDATA #IMPLIED>
        <!ATTLIST param-char value CDATA #IMPLIED>
        <!ATTLIST param-char description CDATA #IMPLIED>

        <!ELEMENT param-multi EMPTY>
        <!ATTLIST param-multi symbol CDATA #IMPLIED>
        <!ATTLIST param-multi value CDATA #IMPLIED>
        <!ATTLIST param-multi description CDATA #IMPLIED>

        <!ELEMENT param-text EMPTY>
        <!ATTLIST param-text symbol CDATA #IMPLIED>
        <!ATTLIST param-text value CDATA #IMPLIED>
        <!ATTLIST param-text description CDATA #IMPLIED>

        <!ELEMENT p (#PCDATA|br|a|em|cc|badge|tt|b|u|param-char|param-single|param-multi|param-text|k95info)*>
        <!ATTLIST p role (code-reference|note|warning) #IMPLIED>
        <!ATTLIST p badges IDREFS #IMPLIED>
        <!ATTLIST p groups IDREFS #IMPLIED>
        <!ATTLIST p exclude-badges IDREFS #IMPLIED>

        <!ELEMENT th (#PCDATA|a|em|cc|badge|tt|b|u|param-char|param-single|param-multi|param-text|k95info)*>
        <!ATTLIST th colspan CDATA #IMPLIED>

        <!ELEMENT td (#PCDATA|a|em|cc|badge|tt|b|u|param-char|param-single|param-multi|param-text|k95info|br|table)*>
        <!ATTLIST td not-implemented (true|false) "false">
        <!ATTLIST td style CDATA #IMPLIED>
        <!ATTLIST td colspan CDATA #IMPLIED>

        <!ELEMENT tr (th|td)*>
        <!ATTLIST tr not-implemented (true|false) "false">

        <!ELEMENT table (tr)*>

        <!ELEMENT ctlseq (#PCDATA|param-char|param-single|param-multi|param-text)*>

        <!ELEMENT ref EMPTY>
        <!ATTLIST ref src CDATA #REQUIRED>
        <!ATTLIST ref comment CDATA #IMPLIED>

        <!ELEMENT termsupp EMPTY>
        <!ATTLIST termsupp series (vt|wyse|xt|k95|sco|rxvt|ansi|tt|linux|putty|wt|print|wz|dtc) #REQUIRED>
        <!ATTLIST termsupp first (vt50|vt50h|vt52|vt100|vt102|vt105|vt132|vt220|vt22z|vt320|vt330|vt340|vt420|vt510|vt520|vt525|msk|k95|xterm|tt|wy370|ansi|sco|vt382|linux|putty|decterm|vt1000|vws|uws|dtterm|wt|la100|wz|lqp02|lcg01|lj250|ln05|vk100|dtc01|la75|ln01|ln08|ln03|la30|lg31|lgp01|lg06) #REQUIRED>
        <!ATTLIST termsupp additional CDATA #IMPLIED>
        <!ATTLIST termsupp excluded CDATA #IMPLIED>

        <!ELEMENT implchk EMPTY>
        <!ATTLIST implchk std070 (true|false) "false">
        <!ATTLIST implchk xt CDATA "">

        <!ELEMENT section (ctlseq|ref|termsupp|implchk|p|ul|ol|dl|section|pre|table)*>
        <!ATTLIST section id ID #IMPLIED>
        <!ATTLIST section title CDATA #IMPLIED>
        <!ATTLIST section ctlseq CDATA #IMPLIED>
        <!ATTLIST section toc (true|false) "false">
        <!ATTLIST section groups IDREFS #IMPLIED>
        <!ATTLIST section badges IDREFS #IMPLIED>
        <!ATTLIST section exclude-badges IDREFS #IMPLIED>
        <!ATTLIST section exclude-groups IDREFS #IMPLIED>
        <!ATTLIST section hide-badges IDREFS #IMPLIED>
        <!ATTLIST section hide-groups IDREFS #IMPLIED>
        <!ATTLIST section style (box|group|none) "none">
        <!ATTLIST section not-implemented (true|false) "false">
        <!ATTLIST section todo (true|false) "false">
        <!ATTLIST section role (text|ctlseq|ctlchar|parameter|group) #REQUIRED>
        <!ATTLIST section formats CDATA #IMPLIED>
        <!ATTLIST section mnemonic CDATA #IMPLIED>

        <!ELEMENT refsrc EMPTY>
        <!ATTLIST refsrc key CDATA #REQUIRED>
        <!ATTLIST refsrc uri CDATA #IMPLIED>
        <!ATTLIST refsrc name CDATA #REQUIRED>
        <!ATTLIST refsrc uri-type (anchor|prefix|direct|pdf-page) #REQUIRED>
        <!ATTLIST refsrc sort-order CDATA #REQUIRED>
        <!ATTLIST refsrc pdf-page-offset CDATA #IMPLIED>
        <!ATTLIST refsrc badge IDREF #IMPLIED>

        <!ELEMENT references (refsrc)*>

        <!ELEMENT style (#PCDATA)>
        <!ELEMENT script (#PCDATA)>
        <!ELEMENT html (style?|script?)>
        <!ATTLIST html filename CDATA #REQUIRED>
        <!ATTLIST html type (document|outline|ctlseq-table|term-ctlseqs|all-ctlseqs|todo) #REQUIRED>
        <!ATTLIST html title CDATA #IMPLIED>
        <!ATTLIST html terminals CDATA #IMPLIED>
        <!ATTLIST html todo-ids CDATA #IMPLIED>  <!-- for "todo" type only -->
        <!ATTLIST html todo-mnemonics CDATA #IMPLIED>  <!-- for "todo" type only -->
        <!ATTLIST html include CDATA #IMPLIED> <!-- for "term-ctlseqs" type only -->
        <!ATTLIST html show-refs (true|false) "false"> <!-- for table outputs only -->
        <!ATTLIST html as-table (true|false) "false"> <!-- as table output -->
        <!ATTLIST html show-not-implemented (true|false) "false">
        <!ATTLIST html show-termsupp (true|false) "false"> <!-- for table outputs only -->

        <!ELEMENT outputs (html)*>

        <!ELEMENT document (references | badges | badgegroups | outputs | section | index)*>
]>
<document title="Kermit 95 Control Sequences">

    <!--
    ////////////////////////////// README //////////////////////////////
    This is the source document used to generate ctlseqs.html and a few other
    related files. This XML file is *not* some variant of XHTML, even if some
    tags kind of look like XHTML. It is a custom XML document format
    and converter tool built specifically for this document.

    Why use a custom XML format for ctlseqs.html? For easier long-term
    maintenance. In particular:
      - To allow bulk changes to terminal type restrictions more possible
      - To make programmatic transformation of this documents structure
        more possible should it be needed some day
      - To make changes to the output *style* easier than with CSS
        alone
      - To allow conversion to other non-HTML formats in the future if
        there is a need.
      - To support generation of multiple different documents from a single
        source

    The document is organized thusly:
      - Reference sources: locations for various terminal and terminal
        emulator documentation
      - Badges and badge groups: identifiers for K95s various terminal
        emulation profiles
      - Outputs: definitions and stylesheets for the various documents
        that will be generated
      - Sections that make up the document itself

    About Sections:
      Sections are the basic blocks that make up the document. All content
      included in the output (aside from CSS) lives within a section.

      Sections can optionally have a title. Where one is specified, it will
      be included in the generated document as a heading or, if the section
      is nested within another section, a subheading. Sections can also be
      used without a heading simply to group content together within the
      document for applying common attributes. Attributes such as:

        - Which terminal types the sections content is relevant to (badges)
        - Whether the content described by the section has actually been
          implemented in Kermit 95
        - Which output documents the sections *content* should be included
          in.

      In addition to the above attributes a section has a role which
      describes what sort of content the section has. This can be one of:

        - text: general text, no special treatment
        - group: No semantic meaning, the section is just grouping other
          sections together. Depending on the roles of the other sections
          it contains, it may affect how they're rendered (such as less
          padding between section headings)
        - ctlseq or ctlchar: the section describes a specific control
          sequence or control character
        - parameter: Only valid inside a section with the ctlseq role,
          a parameter section describes a parameter for the parent control
          sequence or control character

      Sections with the ctlseq, ctlchar or parameter roles must have a
      control sequence specified, either via the ctlseq attribute, or by
      one or more child ctlseq elements. This specifies the control
      sequence or parameter/parameter-value the section is describing.

      A ctlseq, ctlchar or parameter section *should* also have one ref
      element for each terminal that supports it. The ref elements provide
      links to documentation where a terminals support for the control
      sequence/parameter is described, providing proof that that terminal
      does support it. In cases where references aren't available, the
      termsupp element can be explicitly used to state which real terminals
      support it.

      The implchk element states which, if any, reference implementations K95s
      implementation of a control sequence has been checked against:
        std070: the pseudo-code in DEC STD 070. True/false.
        xt: Xterm. Value is xterm version checked against.

      Ctlseq, ctlchar and parameter sections can still have textual content
      just like a regular section with the text role. This textual content
      should describe the control sequence/character or its parameters, what
      restrictions and behaviors apply, etc. But for some outputs generated
      from this file that textual content may be excluded.

    What are these badges and groups anyway?
      A badge is used to indicate terminal-type-specific behavior.
      Maybe a particular control sequence is only available if your
      terminal type is SNI-97801, or maybe it behaves slightly
      differently if your terminal type is SCOANSI.

      In K95, some behavior isn't assigned to specific terminal types,
      but specific *groups* of terminal types. A lot of terminal types
      behave *like* a VT100 (such as the linux console terminal). So
      rather than checking for 20 different terminal types everywhere
      VT100-like behavior is needed, it just checks if the current
      terminal type "ISVT100" - this means it actually *is* a VT100, or
      it's *compatible* with a VT100.

      The (badge) groups let that behavior be replicated here.
      Putting the "isvt100" group on a section applies all the badges in
      the "isvt100" group to that section. If the meaning of "ISVT100"
      in K95 changes someday to include an extra terminal type, all we
      need to do here is add the badge for that extra terminal type to
      the "isvt100" group and the badge for that extra terminal type
      will appear everywhere it needs to.

      The addition of the new Kermit 95 terminal type, and the need to
      have some reliable way to add it to all the places it needs to be
      in the ctlseqs.html document was the motivating factor in
      converting source of the document from HTML to XML.

    <refsrc> and <ref> Elements
      Where possible, references to terminal (or terminal emulator)
      documentation describing a given control sequence is described.

      The <ref> element applies to a section and produces a link to
      documentation relevant to that section. It has only a single
      attribute, src, which specifies a document key and value separated by a
      colon.

      The <refsrc> element describes a particular document that discusses
      control sequences, such as the VT520 programmers manual. The attributes
      are:
        - uri: where to find the document online. Prefer a source that is not
               likely to go offline for the forseeable future
        - name: This is used for hyperlinks to the document
        - key: This is used by <ref> elements to refer to the document
        - badge: Associate this document with a particular terminal
        - sort-order: Where links to this document appear relative to other
                documents
        - uri-type: What sort of link it is. Options are:
            - prefix: The value supplied by the <ref> element is concatenated
                    with the URI. For example, the <ref> element might specify
                    a filename.
            - pdf-page: The URI is to a PDF document, and individual pages can
                    be accessed by concatenating "#page=" followed by the value
                    supplied by the <ref> element which is assumed to be a page
                    number.
            - anchor: The URI is to a specific HTML document, and the value
                    supplied by the <ref> element is an anchor within that
                    document. The URI is joined to the <ref> elements value with
                    the # character.
        - pdf-page-offset: For the 'pdf-page' uri-type, this indicates the
                offset into the document that the page number refers to. That
                enables the page number shown to the user link links to match
                up with the page numbers as they appear in PDF document.

    <termsupp> Elements
       The termsupp elements indicate which other terminals are known or
       believed to implement a given control sequence or parameter. Any badges
       on a section, <ref> elements directly within that section which refer
       to a <refsrc> that specifies a badge also contribute this information.

       The original intention was the 'first' attribute would indicate which
       terminal originally introduced that control sequence, while the 'series'
       would indicate the family of terminals (eg, ANSI, DEC VT, etc) that
       control sequence belongs to. At the moment this information is, in many
       cases, not entirely accurate due in part to the time it would require to
       determine the first shipping terminal with a given escape sequence. So
       often 'first' is not really the first terminal, especially in cases where
       the control sequence was introduced by some terminal emulator rather than
       hardware terminal.

       As for what this information is actually used for? Right now it is only
       used for the term-ctlseqs comparison table, whose purpose is to help
       identify gaps in Kermit 95s compatibility with important terminals and
       terminal emulators. The goal is not to identify every terminal out there
       that ever implemented a given control sequence, just the ones that Kermit
       95 may someday want to emulate (eg, the VT520) or be compatible with (eg,
       xterm).

       Including Terminal Emulators does require a certain amount of ongoing
       maintenance work to keep the information up-to-date, so there needs to
       be a good reason to include one here.
       -> PuTTY
                 Because: It was probably the most popular terminal on Windows
                          for the last 20 years.
            Last Updated: 27 April 2025
                   As of: commit 01043ce4fc90cee578a00872a64fd69e4bb7203a
              Change Log: https://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html
                          (updated on release only)
                          https://git.tartarus.org/?p=simon/putty.git;a=log
                          (Changes to this file may indicate support for new
                           control sequences)
       -> Tera Term
                 Because: It is the only free terminal with a similar feature
                          set to Kermit 95.
            Last Updated: 16 September 2025
                   As of: v5.5.0
              Change Log: https://teratermproject.github.io/manual/5/en/about/history.html
       -> Xterm
                 Because: It is the de-facto standard extended-VT terminal
            Last Updated: 8 September 2025
                   As of: Patch #402
              Change Log: https://invisible-island.net/xterm/xterm.log.html
       -> Windows Terminal
                 Because: It is the standard terminal on recent Windows releases
            Last Updated: 10 October 2025
                   As of: commit 5f311506dcaa93c24214819e02fa027151c47fe1
              Change Log: https://github.com/microsoft/terminal/commits/main/src/terminal/parser/OutputStateMachineEngine.cpp
                          (changes to this source file may indicate new
                           control sequences)
       -> CDE dtterm
          Capabilities should be current as of CDE 2.1.30 - dtterm doesn't
          appear to have received any new features since it was open-sourced
          back in 2012.
                 Because: It was the standard terminal on many proprietary unix
                          variants alongside xterm for many years, and it isn't
                          a moving target anymore which makes it a possible
                          candidate for future emulation.
            Last Updated: 27 August 2025
                   As of: commit 16fbb15ecc8cedfad6ce03e1891eed6fe28cedb0 (31 May 2018)
              Change Log: https://sourceforge.net/p/cdesktopenv/code/ci/9f0f015c4daf7d3eacb21c19b4f3912cac56e68e/log/?path=/cde/lib/DtTerm/Term/TermParseTable.c
                          (changes to this source file may indicate new
                           control sequences)
    -->

    <!-- TODO  - Merge the three mode sections into one
               - Replace the <ctlseq> element with:
                 - An <escseq> element for those that don't start with CSI
                 - A <param> element for describing parameters
                 - A new more structured <ctlseq> element which would have no
                    body and the following attributes:
                        - leading-character (one of <=>?  or nothing)
                        - parameter list type (fixed/variable)
                        - parameter kind - numeric, selective (if the two can be
                            mixed then this might have to become a parameter list)
                        - Intermediate characters
                        - final character
               - Add reference links for everything in the designate character
                 set tables
               - Add reference links to and any new escape sequences found in:
                   - The VT320 manual: EK-VT320-RM manual (if/when it turns up online)
                   - VT240, VT340 manuals
                   - The Sun console (man wscons)
                   - The SCO console (?)
                        Documented here: http://osr600doc.xinuos.com/en/man/html.HW/screen.HW.html
                        Terminal support tags have been added, references have not
                        as that document lacks anchors
                   - Non-control-sequences in ECMA-48
                   - Anything interesting here: https://bjh21.me.uk/all-escapes/all-escapes.xhtml
               - Consider moving VT52/H19 content into its own section
                   - Pro: - makes it easier to read
                          - xterms documentation does this
                   - Con: VT52 emulation has access to a lot of/most of the ANSI
                          escape sequences. Mixing it in with the ANSI emulation
                          makes this clear.
               - Add documentation and references for:
                   - Volker Craig (ckovc.c, 232 lines)
                   - ADM-3A (ckoadm.c, 292 lines)
                   - Hazeltine 1500 (ckohzl.c, 475 lines)
                   - AVATAR (ckoava.c, 542 lines)
                   - QNX (ckoqnx.c, 730 lines)
                   - Data General (ckodg.c, 1784 lines)
                   - Televideo (ckotvi.c, 2074 lines)
                   - IBM 31x1 (ckoi31.c, 2231 lines)
                   - HP (ckohp.c, 2997 lines)
                   - Wyse (ckowys.c, 5124 lines)
                 With the exception of AVATAR/0+, the code for all of these
                 is called from cwrite() followed by a return. If the terminal
                 has no emulation profiles (no ability to pretend to be, for
                 example, a VT100) then it should probably be covered in a
                 separate document. Perhaps it should be covered in a separate
                 document even if it *can* switch!
               - Add references to the designate character set tables
               - Check if the SCO "ESC xx" raw character thing (SCODPCC in the
                 VT520 manual) is implemented. If it is, then document it here.
                 SGR 10 & 11 seem to be related to this, possibly SGR 12 too
                 though thats only available to linux right now. I see code
                 which might be this feature, but it needs further inspection
                 and testing.
               - Update term references/termsupp elements for everything in this
                 spreadsheet
                 https://invisible-island.net/xterm/ctlseqs/dec_term_function_checklist.pdf
               - It would be neat if terminfo/termcap capability names/codes could
                 be stored against control sequences where they exist. This might
                 allow for interesting things like comparing K95 terminal
                 descriptions (as described by this document) with terminfo/termcap
                 descriptions, or generating a starting point for terminfo/termcap
                 descriptions from this document.
               - This document should, ideally, move away from just being a
                 collection of control sequences that K95 implements (or
                 doesn't) towards more of a proper reference manual for K95s
                 terminal emulator. Ideally readers wouldn't have to follow
                 links to, eg, the VT520 manual to find out what a control
                 sequence does.

    -->

    <!-- Page numbers for std 070
>> page 388, 389 references can be replaced <<

DECRPDE		343     Not in this document currently
C1 Control 	385		IND, NEL, HTS, RI, SS2, SS3, DCS, SOS, DECID, CSI, ST, OSC, PM, APC
SUB			387
DEC Priv	388		DECCKM, DECCOLM, DECSCLM, DECSCNM, DECOM, DECAWM, DECARM, DECPFF, DECPEX, DECCEM, DECTEK, DECNRCM, DECVCCM, DECPCCM, DECKBUM, DECLRMM, DECXRLM
DECRPM		450
DECRPSS		452
DECRQOSR	453
DECPSR		454
DECCIR		455
DECTSR		462
-->



    <!-- References to similar documentation elsewhere. This helps to identify
         other terminals (or terminal emulators) that support a given feature,
         as well as provide additional information about that feature.

         Reference sources require the following attributes:
            name - this is what's displayed in the generated HTML document
            key - more on this later
            uri - a base URI for the reference
            uri-type - how the base URI is used to create links
            sort-order - order in which references should be displayed when there
                         is more than one

        References are added to a section using the <ref> element, which takes
        a single "src" attribute. The attribute is a combination of key and
        a value separated by a colon. For example:
            <ref src="wy370:20"/>
        The key must match a refsrc element below, and the meaning of the value
        depends on the uri-type of the refsrc:
            anchor: the value is combined with the refsrc uri with the '#' character
            prefix: the value is combined with the refsrc uri with no joining character
            pdf-page: the value is combined with the refsrc uri with the string '#page='
                separating the two. The value is also shown alongside the name in
                the generated document in brackets with 'p' in front of it.
                For example:
                uri: foo.pdf
                uri-type: pdf-page
                name: document
                key: x
                reference: x:123
                resulting URI: foo.pdf#page=123
                resulting link: document (p123)
           pdf-page-offset: This can be used to show the numbered page in the
                document. In the above example, if pdf-page-offset is 23 then
                the display would be "document (p100/123)"
    -->
    <references>
        <!-- Xterm reference links all valid as of March 2025. No idea if they'll
             be stable long-term. Should probably write a script to check them.
             Might have to change this to a wayback link eventually. If that
              has to happen, the following wayback URI should work:
              https://web.archive.org/web/20250305175941/https://invisible-island.net/xterm/ctlseqs/ctlseqs.html-->
        <!-- All other reference links should also be valid as of March 2025 -->
        <refsrc name="ecma-48"
                key="e48"
                uri="https://ecma-international.org/wp-content/uploads/ECMA-48_5th_edition_june_1991.pdf"
                uri-type="pdf-page"
                pdf-page-offset="14"
                sort-order="0"/>
        <refsrc name="ecma-43"
                key="e43"
                uri="https://ecma-international.org/wp-content/uploads/ECMA-43_3rd_edition_december_1991.pdf"
                uri-type="pdf-page"
                sort-order="10"/>
        <refsrc name="ecma-35"
                key="e35"
                uri="https://ecma-international.org/wp-content/uploads/ECMA-35_6th_edition_december_1994.pdf"
                uri-type="pdf-page"
                sort-order="20"/>
        <refsrc name="dec-std-070"
                key="070"
                uri="https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf"
                uri-type="pdf-page"
                sort-order="30"/>
        <refsrc name="dec-std-070"
                key="070h"
                uri="https://j4james.github.io/vtdocs/EL-00070-05.html"
                uri-type="anchor"
                sort-order="order=40"/>
        <refsrc name="vt52x"
                key="vt52x"
                uri="https://vt100.net/dec/ek-vt520-rm.pdf"
                uri-type="pdf-page"
                sort-order="41"
                badge="vt520"/>
        <refsrc name="vt510"
                key="vt510"
                uri="https://vt100.net/docs/vt510-rm/"
                uri-type="prefix"
                sort-order="50"
                badge="vt510"/>
        <refsrc name="vt420"
                key="vt420"
                uri="https://vt100.net/mirror/mds-199909/cd3/term/vt420rm2.pdf"
                uri-type="pdf-page"
                pdf-page-offset="22"
                sort-order="60"
                badge="vt420"/>
        <!-- Volume 1: Text Programming (EK-VT3XX-TP) -->
        <refsrc name="vt340"
                key="vt340"
                uri="http://www.bitsavers.org/pdf/dec/terminal/vt340/EK-VT3XX-TP-001_VT330_VT340_Text_Programming_Mar87.pdf"
                uri-type="pdf-page"
                pdf-page-offset="14"
                sort-order="70"/>
        <!-- Volume 2: Graphics Programming (EK-VT3XX-GP) -->
        <refsrc name="vt340"
                key="vt340g"
                uri="https://bitsavers.org/pdf/dec/terminal/vt340/EK-VT3XX-GP-001_VT330_VT340_Graphics_Programming_Mar87.pdf"
                uri-type="pdf-page"
                pdf-page-offset="16"
                sort-order="71"/>
        <!--TODO: Need to find a copy of EK-VT320-RM -->
        <refsrc name="vt220"
                key="vt220"
                uri="https://vt100.net/docs/vt220-rm/chapter4.html"
                uri-type="anchor"
                sort-order="80"
                badge="vt220"/>
        <refsrc name="vt132"
                key="vt132"
                uri="https://bitsavers.org/pdf/dec/terminal/vt132/EK-VT132-UG-002_VT132_User_Guide_Nov79.pdf"
                uri-type="pdf-page"
                pdf-page-offset="12"
                sort-order="90"
                badge="vt132"/>
        <refsrc name="vt100"
                key="vt100"
                uri="https://vt100.net/docs/vt100-ug/chapter3.html"
                uri-type="anchor"
                sort-order="100"
                badge="vt100"/>
        <refsrc name="vt102"
                key="vt102"
                uri="https://vt100.net/docs/vt102-ug/appendixc.html"
                uri-type="anchor"
                sort-order="110"
                badge="vt102"/>
        <refsrc name="vt52"
                key="vt52"
                uri="https://vt100.net/dec/ek-vt5x-op-001.pdf"
                uri-type="pdf-page"
                sort-order="120"
                badge="vt52"/>
        <refsrc name="wy370"
                key="wy370"
                uri="https://bitsavers.org/pdf/wyse/WY-370/881133-02A_WY-370_Programmers_Guide_Jun90.pdf"
                uri-type="pdf-page"
                sort-order="130"
                badge="wy370"/>
        <refsrc name="xterm"
                key="xt"
                uri="https://invisible-island.net/xterm/ctlseqs/ctlseqs.html"
                uri-type="anchor"
                sort-order="140"
                badge="xterm"/>
        <refsrc name="k95"
                key="k95"
                uri="https://davidrg.github.io/ckwin/current/"
                uri-type="anchor"
                sort-order="150"
                badge="k95"/>
        <refsrc name="msk"
                key="msk"
                uri="https://www.kermitproject.org/onlinebooks/usingmsdoskermit2e.pdf"
                uri-type="pdf-page"
                sort-order="160"/>
        <refsrc name="vt1000"
                key="vt1000"
                uri="https://manx-docs.org/collections/mds-199909/cd3/term/v1000ug2.pdf"
                uri-type="pdf-page"
                pdf-page-offset="10"
                sort-order="170"/>
        <!-- This isn't DECterm documentation (that doesn't really exist
             anywhere online), but rather a section of the Digital UNIX manual
             "Writing Software for the International Market", the only place where
             some DECterm control sequences are discussed -->
        <refsrc name="decterm"
                key="dtl"
                uri="https://ftp.zx.net.nz/rom/V4.0D_D1/DOCS/HTML/AQ0R4CTE/DOCU_006.HTM"
                uri-type="anchor"
                sort-order="180"
                badge="decterm"
        />

        <!-- All of the VWS stuff seems to be specific to VWS unless mentioned
            in the documentation for some other terminal. Eg, the copy/paste
            and window control stuff doesn't seem to be supported by DECterm on
            Tru64 5.1B-6. This stuff also isn't mentioned in DEC-STD-070 at all,
            so perhaps none of it was considered an "official" extension to
            their character terminal standard.
          -->
        <refsrc name="vws"
                key="vws"
                uri="https://bitsavers.org/pdf/dec/vax/vms/vms_workstation/AA-EZ24D-TE_VMS_Workstation_Software_Users_Guide_Jun1989.pdf"
                uri-type="pdf-page"
                sort-order="190"
                badge="vws"
        />
        <!-- Digital ANSI-Compliant Printing Protocol - Level 2 Programming Reference Manual -->
        <refsrc name="decprint"
                key="dap"
                uri="https://vt100.net/mirror/mds-199909/cd3/printer/pplv2pmb.pdf"
                uri-type="pdf-page"
                sort-order="200"/>
        <refsrc name="vt105"
                key="vt105"
                uri="https://bitsavers.org/pdf/dec/terminal/vt105/EK-VT105-TM-001_VT105_Graphic_Terminal_Technical_Manual_Sep79.pdf"
                uri-type="pdf-page"
                sort-order="210"
                badge="vt105"/>
        <refsrc name="vk100"
                key="vk100"
                uri="http://www.bitsavers.org/www.computer.museum.uq.edu.au/pdf/EK-VK100-IN-002%20GIGI%20Terminal%20Installation%20And%20Owner's%20Manual.pdf"
                uri-type="pdf-page"
                sort-order="220"
                badge="vk100"/>
        <refsrc name="dtc01"
                key="dtc01"
                uri="https://www.vaxhaven.com/images/3/3d/EK-DTC01-RM-003.pdf"
                uri-type="pdf-page"
                pdf-page-offset="13"
                sort-order="230"
                badge="dtc01"/>
        <refsrc name="tphb87"
                key="tphb87"
                uri="https://bitsavers.org/pdf/dec/handbooks/1987_Terminals_and_Printers_Handbook.pdf"
                uri-type="pdf-page"
                sort-order="240"/>
        <refsrc name="vt125"
                key="vt125"
                uri="https://bitsavers.org/pdf/dec/terminal/vt125/EK-VT125-UG-001_VT125_User_Guide_Sept81.pdf"
                uri-type="pdf-page"
                sort-order="250"/>
        <refsrc name="vt382"
                key="vt382"
                uri="https://vt100.net/dec/ek-vt382-rm-001.pdf"
                uri-type="pdf-page"
                sort-order="260"/>
        <refsrc name="lj250"
                key="lj250"
                uri="https://bitsavers.org/pdf/dec/printer/lj250/EK-LJ250-RM-001.pdf"
                uri-type="pdf-page"
                sort-order="270"/>
    </references>

    <badges>
        <!-- These are all the terminal types supported by K95.
             If a color is not set, the badge will not be visible -->
        <badge-def sort-order="1"  name="aaa" colour="#9E9E9E" comment="Ann Arbor Ambassador"/>
        <badge-def sort-order="2"  name="adm3a" colour="dimgray" comment="LSI ADM 3A"/>
        <badge-def sort-order="3"  name="adm5" colour="dimgray" comment="LSI ADM 5"/>
        <badge-def sort-order="4"  name="aixterm" colour="#FFD740" comment="IBM AIXterm"/>
        <badge-def sort-order="5"  name="ansi" colour="#FFAB00" comment="IBM ANSI.SYS (BBS)"/>
        <badge-def sort-order="6"  name="at386" colour="#FFE082" comment="Unixware AT386 (Unix mode)"/>
        <badge-def sort-order="7"  name="avatar" colour="#B0BEC5" comment="AVATAR/0+ (same as ansi)"/> <!-- TODO: Hide -->
        <badge-def sort-order="8"  name="ba80" colour="#F4511E" comment="Nixdorf BA80"/>
        <badge-def sort-order="9"  name="beos" colour="#FFD54F" fg-color="white" comment="BeOS Ansi"/>
        <badge-def sort-order="10" name="dg200" colour="#E64A19" comment="Data General 200"/>
        <badge-def sort-order="11" name="dg210" colour="#D84315" comment="Data General 210"/>
        <badge-def sort-order="12" name="dg217" colour="#BF360C" comment="Data General 217"/>
        <badge-def sort-order="13" name="h19" colour="#B3E5FC" comment="Heath-19"/>
        <badge-def sort-order="14" name="hft" colour="#FFCA28" comment="IBM High Function Terminal"/>
        <badge-def sort-order="15" name="hp2621" colour="#78909C" comment="Hewlett-Packard 2621A"/>
        <badge-def sort-order="16" name="hpterm" colour="#607D8B" comment="Hewlett-Packard Console"/>
        <badge-def sort-order="17" name="hzl1500" colour="#757575" comment="Hazeltine 1500"/>
        <badge-def sort-order="18" name="ibm31" colour="dimgray" comment="IBM 31xx"/>
        <badge-def sort-order="19" name="k95" colour="#00E676" comment="Kermit 95"/>
        <badge-def sort-order="20" name="linux" colour="#FFC107" comment="Linux Console"/>
        <badge-def sort-order="21" name="qansi" colour="#FFB300" comment="QNX Ansi emulation"/>
        <badge-def sort-order="22" name="qnx" colour="#FFA000" comment="QNX"/>
        <badge-def sort-order="23" name="s97801" colour="#FF5722" comment="Sinix 97801-5xx terminal"/>
        <badge-def sort-order="24" name="scoansi" colour="#FF8F00" comment="SCOANSI (Unix mode)"/>
        <badge-def sort-order="25" name="sun" colour="#FF6F00" comment="SUN Console"/>
        <badge-def sort-order="26" name="tek40" colour="dimgray" comment="Tektronix 401x"/>
        <badge-def sort-order="27" name="tvi910" colour="dimgray" comment="TVI 910+"/>
        <badge-def sort-order="28" name="tvi925" colour="dimgray" comment="TVI 925"/>
        <badge-def sort-order="29" name="tvi950" colour="dimgray" comment="TVI 950"/>
        <badge-def sort-order="30" name="vc4404" colour="dimgray" comment="Volker Craig VC4404/404"/>
        <badge-def sort-order="31" name="vip7809" colour="olivedrab" comment="Honeywell VIP7809"/>
        <badge-def sort-order="32" name="vt52" colour="#90CAF9" comment="DEC VT-52"/>
        <badge-def sort-order="33" name="vt100" colour="#64B5F6" comment="DEC VT-100"/>
        <badge-def sort-order="34" name="vt102" colour="#42A5F5" comment="DEC VT-102"/>
        <badge-def sort-order="34" name="vt132" colour="" comment="DEC VT-132"/> <!-- Not implemented -->
        <badge-def sort-order="35" name="vt220" colour="#2196F3" comment="DEC VT-220"/>
        <badge-def sort-order="36" name="vt220pc" colour="" comment="DEC VT-220 with PC keyboard"/> <!-- Hide -->
        <badge-def sort-order="37" name="vt320" colour="#1E88E5" comment="DEC VT-320"/>
        <badge-def sort-order="38" name="vt320pc" colour="" comment="DEC VT-320 with PC keyboard"/> <!-- Hide -->
        <!-- Not implemented in K95 yet -->
        <badge-def sort-order="53" name="vt330" colour="" comment="DEC VT-330"/>
        <badge-def sort-order="54" name="vt340" colour="" comment="DEC VT-340"/>
        <badge-def sort-order="39" name="vt420" colour="" comment="DEC VT-420"/> <!-- colour: #1976D2 -->
        <badge-def sort-order="39" name="vt420pc" colour="" comment="DEC VT-420 with PC keyboard"/>
        <badge-def sort-order="40" name="vt510" colour="" comment="DEC VT-510"/> <!-- Not implemented -->
        <badge-def sort-order="40" name="vt520" colour="" comment="DEC VT-520"/> <!-- colour: #1565C0 -->
        <badge-def sort-order="40" name="vt520pc" colour="" comment="DEC VT-520 with PC keyboard"/>
        <badge-def sort-order="41" name="vt525" colour="" comment="DEC VT-525"/> <!-- colour: #0D47A1 -->
        <badge-def sort-order="42" name="vtnt" colour="dimgray" comment="Microsoft NT Virtual Terminal"/>
        <badge-def sort-order="43" name="wy30" colour="#009688" comment="WYSE-30/30+"/>
        <badge-def sort-order="44" name="wy50" colour="#00897B" comment="WYSE-50/50+"/>
        <badge-def sort-order="45" name="wy60" colour="#00796B" comment="WYSE-60"/>
        <badge-def sort-order="46" name="wy160" colour="#00695C" comment="WYSE-160"/>
        <badge-def sort-order="47" name="wy370" colour="#004D40" comment="WYSE 370 ANSI Terminal"/>
        <badge-def sort-order="48" name="xterm" colour="#F44336" comment="Xterm"/> <!-- Not implemented -->
        <badge-def sort-order="49" name="tt" colour="" comment="Tera Term"/> <!-- Not implemented -->
        <badge-def sort-order="50" name="putty" colour="" comment="PuTTY"/> <!-- Not implemented -->
        <badge-def sort-order="51" name="vws" colour="" comment="VAX Workstation Software"/> <!-- Not implemented -->
        <badge-def sort-order="52" name="decterm" colour="" comment="DECterm (dxterm)"/> <!-- Not implemented -->
        <badge-def sort-order="53" name="dtterm" colour="" comment="CDE dtterm"/> <!-- Not implemented -->
        <badge-def sort-order="54" name="wt" colour="" comment="Windows Terminal"/> <!-- Not implemented -->
        <badge-def sort-order="55" name="wz" colour="" comment="WezTerm"/> <!-- Not implemented -->
        <badge-def sort-order="56" name="la100" colour="" comment="DEC LA100 ANSI printer"/> <!-- Not implemented -->
        <badge-def sort-order="57" name="vt105" colour="" comment="DEC VT-105"/> <!-- Not implemented -->
        <badge-def sort-order="58" name="lqp02" colour="" comment="DEC LQP02 ANSI printer"/> <!-- Not implemented -->
        <badge-def sort-order="59" name="lcg01" colour="" comment="DEC LGC01 ANSI printer"/> <!-- Not implemented -->
        <badge-def sort-order="59" name="ln05" colour="" comment="DEC LN05 ANSI printer"/> <!-- Not implemented -->
        <badge-def sort-order="60" name="vk100" colour="" comment="DEC VK100 GIGI"/> <!-- Not implemented -->
        <badge-def sort-order="61" name="dtc01" colour="" comment="DEC DTC01"/> <!-- Not implemented -->
        <badge-def sort-order="61" name="la75" colour="" comment="DEC LA75 ANSI printer"/> <!-- Not implemented -->
        <badge-def sort-order="62" name="vt382" colour="" comment="DEC VT382 Kanji Display Terminal"/> <!-- Not implemented -->
        <badge-def sort-order="63" name="vtstar" colour="" comment="Multia VTstar"/> <!-- Not implemented -->
        <badge-def sort-order="64" name="vt22z" colour="" comment="DEC VT220-Z"/> <!-- Not implemented -->
    </badges>
    <!--
     Badge groups should be kept in sync with the matching macros in ckuusr.h
     -->
    <badgegroups>
        <badgegroup name="isansi">
            <badge name="scoansi"/>
            <badge name="at386"/>
            <badge name="ansi"/>
        </badgegroup>
        <badgegroup name="isunixcon">
            <badge name="scoansi"/>
            <badge name="at386"/>
            <badge name="linux"/>
            <badge name="sun"/>
        </badgegroup>
        <badgegroup name="isdg200">
            <badge name="dg200"/>
            <badge name="dg210"/>
            <badge name="dg217"/>
        </badgegroup>
        <badgegroup name="istvi">
            <badge name="tvi910"/>
            <badge name="tvi925"/>
            <badge name="tvi950"/>
        </badgegroup>
        <badgegroup name="isvt52">
            <badge name="vt52"/>
            <badge name="h19"/>
        </badgegroup>
        <badgegroup name="isvt320">
            <!-- When these are implemented enough
            <badge name="vt525"/>
            <badge name="vt520"/>
            <badge name="vt420"/>-->
            <badge name="vt320"/>
            <badge name="vt320pc"/>
            <badge name="wy370"/>
            <badge name="s97801"/>
            <badge name="aaa"/>
            <badge name="k95"/>
        </badgegroup>
        <badgegroup name="isvt525">
            <!-- When VT525 is implemented enough, this should contain
                 only <badge name="vt525"/> -->
            <badgegroup-ref name="isvt320"/>
        </badgegroup>
        <badgegroup name="isvt520">
            <!-- When VT520 is implemented enough, this should contain
                 only <badge name="vt520"/> and <badge name="k95"/>
                 -->
            <badgegroup-ref name="isvt320"/>
        </badgegroup>
        <badgegroup name="isvt420">
            <!-- When VT420 is implemented enough, this should contain
                 only <badge name="vt420"/> and <badge name="vt520"> -->
            <badgegroup-ref name="isvt320"/>
        </badgegroup>
        <badgegroup name="isvt220">
            <badge name="vt220"/>
            <badge name="vt220pc"/>
            <badge name="vt320"/>
            <badge name="vt320pc"/>
            <badge name="wy370"/>
            <badge name="s97801"/>
            <badge name="aaa"/>
            <badge name="beos"/>
            <badge name="qansi"/>
            <badge name="linux"/>
            <badge name="sun"/>
            <badgegroup-ref name="isvt320"/>
            <!-- Why no AIXTERM? -->
        </badgegroup>
        <badgegroup name="isvt102">
            <badge name="vip7809"/>
            <badge name="linux"/>
            <badge name="hft"/>
            <badge name="aixterm"/>
            <badge name="sun"/>
            <badge name="ba80"/>
            <badge name="vt102"/>
            <badgegroup-ref name="isvt220"/>
        </badgegroup>
        <badgegroup name="isvt100">
            <badge name="vt100"/>
            <badgegroup-ref name="isvt102"/>
        </badgegroup>
        <badgegroup name="iswyse">
            <badge name="wy30"/>
            <badge name="wy50"/>
            <badge name="wy60"/>
            <badge name="wy160"/>
        </badgegroup>
        <badgegroup name="iswy60">
            <badge name="wy60"/>
            <badge name="wy160"/>
        </badgegroup>
        <badgegroup name="ishp">
            <badge name="hpterm"/>
            <badge name="hp2621"/>
        </badgegroup>
        <badgegroup name="ishft">
            <badge name="hft"/>
            <badge name="aixterm"/>
        </badgegroup>
        <badgegroup name="isxterm">
            <badge name="xterm"/>
        </badgegroup>
    </badgegroups>

    <!--
     This XML document is used to generate *multiple* different documents. The
     `formats` attribute on sections controls how those sections appear in the
     various documents, which are defined below
     -->
    <outputs>
        <!--
          This is the "full" document detailing all the control sequences
          *implemented* by Kermit 95.
         -->
        <html type="document" filename="ctlseqs.html"
              show-not-implemented="true">
            <style>
                h2 { border-bottom: solid 2px; }
                h3 { border-bottom: solid 1px; }
                h4 { margin-left: 2em; }
                h5 { margin-left: 2em; }
                p { margin-left: 2em; }
                table { margin-left: 2em; }
                dl { margin-left: 2em; }
                pre { margin-left: 5em; }
                table, th, td { border: 1px solid black; border-collapse: collapse; }
                tr:hover {
                background-color: #4C8BF5;
                color: #fff;
                }
                .param { font-style: italic; }
                    span.sec_ctlseq {
                    margin-right: 5em;
                    font-family: monospace;
                }
                h3 > span.sec_references {
                    float: right;
                    font-size: smaller;
                    padding-left: 0.5em;
                }
                h4 > span.sec_ctlseq {
                    margin-right: 0em;
                }
                h4 > span.sec_references {
                    padding-left: 2em;
                    font-size: smaller;
                }
                h4 > span.el_badges {
                    margin-left: 2em;
                }
                span.badge {
                    border-radius: 5px;
                    padding: 4px 8px;
                    text-transform: uppercase;
                    margin-right: 5px;
                }
                div.todo {
                    color: black;
                    border-style: solid;
                    border-color: orangered;
                    background-color: coral;
                    padding: 1em;
                    margin-left: 2em;
                }
                div.box {
                    border-style: solid;
                    border-width: 1px;
                    background-color: lightgray;
                    margin-bottom: 5px;
                    margin-left: 2em;
                }
                div.box > div.badges {
                    padding-top: 4px;
                    float: right;
                }
                div.box > div.badges > span.badge {
                    border-radius: 0px;
                    text-transform: uppercase;
                    margin-right: 0px;
                }
                div.box > div.title {
                    overflow:hidden;
                    padding: 4px;
                    text-align: center;
                    background-color: black;
                    color: white;
                }
                div.box > div.content {
                    clear: left;
                    padding: 4px 8px;
                    margin-top: 1em;
                }
                .not-implemented { color: lightgray; }
                div.sec_group {
                    margin-top: 1.33em;
                    margin-bottom: 1.33em;
                }
                div.sec_group h4 {
                    margin-top: 0px;
                    margin-bottom: 0px;
                }
                span.ctlchar {
                    font-family: monospace;
                    border-radius: 5px;
                    text-transform: uppercase;
                    background-color: black;
                    color: white;
                }
            </style>
        </html>

        <!--
          This is an outline of the full document - it only includes section
          headings unless a sections format attribute specifies it should be
          included in full in the outline document
        -->
        <html type="outline" filename="outline.html"
              title="Kermit 95 Control Sequences (Outline)"
              show-not-implemented="true">
            <style>
                h3 {
                    margin-left: 2em;
                    margin-top: 0px;
                    margin-bottom: 0px;
                    font-size: 1rem;
                }
                h4 {
                    margin-left: 4em;
                    margin-top: 0px;
                    margin-bottom: 0px;
                    font-size: 1rem;
                }
                h5 {
                    margin-left: 6em;
                    margin-top: 0px;
                    margin-bottom: 0px;
                    font-size: 1rem;
                }

                span.sec_ctlseq {
                    margin-right: 1em;
                    font-size: smaller;
                    font-family: monospace;
                }
                span.sec_references {
                    padding-left: 2em;
                    font-size: xx-small;
                    margin-left: 4em;
                }
                span.el_badges {
                    margin-left: 2em;
                    font-size: x-small;
                }
                span.badge {
                    border-radius: 5px;
                    padding: 4px 8px;
                    text-transform: uppercase;
                    margin-right: 5px;
                }
                .not-implemented { color: lightgray; }
                    div.sec_group {
                    margin-top: 1.33em;
                    margin-bottom: 1.33em;
                }
                .param { font-style: italic; }

                p { margin-left: 2em; }

                /*dl { margin-left: 2em; }
                pre { margin-left: 5em; }
                table { margin-left: 2em; }
                table, th, td { border: 1px solid black; border-collapse: collapse; }*/



                div.todo {
                    color: black;
                    border-style: solid;
                    border-color: orangered;
                    background-color: coral;
                    padding: 1em;
                    margin-left: 2em;
                }
                div.box {
                    border-style: solid;
                    border-width: 1px;
                    background-color: lightgray;
                    margin-bottom: 5px;
                    margin-left: 2em;
                }
                div.box > div.badges {
                    padding-top: 4px;
                    float: right;
                }
                div.box > div.badges > span.badge {
                    border-radius: 0px;
                    text-transform: uppercase;
                    margin-right: 0px;
                }
                div.box > div.title {
                    overflow:hidden;
                    padding: 4px;
                    text-align: center;
                    background-color: black;
                    color: white;
                }
                div.box > div.content {
                    clear: left;
                    padding: 4px 8px;
                    margin-top: 1em;
                }
            </style>
        </html>

        <!--
          This is a table showing the various control sequences implemented by
          Kermit 95 and which terminal types they are available to
        -->
        <!-- TODO: rename to termtype-ctlseqs.html -->
        <html type="ctlseq-table" filename="tt-ctlseqs.html"
              title="Kermit 95 Control Sequences by Terminal Type"
              as-table="true">
            <style>
                table {
                    border-collapse: collapse;
                }

                th {
                    white-space: nowrap;
                    text-align: left;
                }

                tr {
                    border-bottom: 1px solid black;
                }

                tr:hover {
                    background-color: #4C8BF5;
                    color: #fff;
                }
                th.ctlseq {
                    font-family: monospace;
                }

                th {
                    border-right: 1px solid black;
                    border-left: 1px solid black;
                }
                td {
                    border-right: 1px solid black;
                }
                thead tr {
                    border-top: 1px solid black;
                }

            </style>
        </html>

        <html type="term-ctlseqs" filename="term-ctlseqs.html"
              title="Control Sequences by Terminal"
              terminals="vt100 vt102 vt132 vt220 vt340 vt420 vt510 vt520 vt525 k95 xterm tt putty"
              include="vws vt320 vt330 decterm vt1000"
              show-not-implemented="true"
              show-refs="true"
              as-table="true">
            <!--
                compare attribute: terminals that get columns in the table
                include attribute: Also include rows for any escape sequences
                                   supported by these terminals, but don't give
                                   them columns.
            -->
            <style>
                table {
                border-collapse: collapse;
                }

                th {
                white-space: nowrap;
                text-align: left;
                }

                tr {
                border-bottom: 1px solid black;
                }

                tr:hover {
                background-color: #4C8BF5;
                color: #fff;
                }
                th.ctlseq {
                font-family: monospace;
                }

                th {
                border-right: 1px solid black;
                border-left: 1px solid black;
                }
                td {
                border-right: 1px solid black;
                }
                td.sec_references {
                    white-space: nowrap;
                    background-color: gray;
                }
                th.sec_references {
                    background-color: gray;
                }
                thead tr {
                border-top: 1px solid black;
                }

                .show-badge {
                    display: revert;
                }

                tr.not-implemented {
                    background-color: orange;
                }

                th.totals {
                    text-align: right;
                    padding-right: 1em;
                }

                th.parameter {
                    padding-left: 2em;
                }
                span.percentage {
                    white-space: nowrap;
                }

                tr.not-implemented td {
                    color: purple;
                }

            </style>
        </html>

        <!--  a variant that includes everything but without the
            comparison columns. Like the outline document, but in table form
            and including all not-implemented stuff. -->
        <html type="all-ctlseqs" filename="all-ctlseqs.html"
              title="All Known Control Sequences"
              terminals="-none-"
              include="*"
              show-termsupp="false"
              show-refs="true"
              show-not-implemented="true"
              as-table="true">
            <style>
                table {
                border-collapse: collapse;
                }

                th {
                white-space: nowrap;
                text-align: left;
                }

                tr {
                border-bottom: 1px solid black;
                }

                tr:hover {
                background-color: #4C8BF5;
                color: #fff;
                }
                th.ctlseq {
                font-family: monospace;
                }

                th {
                border-right: 1px solid black;
                border-left: 1px solid black;
                }
                td {
                border-right: 1px solid black;
                }
                td.sec_references {
                    white-space: nowrap;
                }
                td.sec_termsupp {
                    white-space: nowrap;
                }
                thead {
                background-color: gray;
                }
                thead tr {
                border-top: 1px solid black;
                }

                .show-badge {
                display: revert;
                }

                tr.not-implemented {
                background-color: orange;
                }

                th.totals {
                text-align: right;
                padding-right: 1em;
                }

                th.parameter {
                padding-left: 2em;
                }
                span.percentage {
                white-space: nowrap;
                }

                tr.not-implemented td {
                color: purple;
                }

            </style>
        </html>

        <!-- The todo-* attributes filter what is included in todo.html. A
             control sequence or parameter must be marked for one of the listed
             terminals, or have one of the listed mnemonics or IDs. For anything
             that doesn't have one of the listed ids or mnemonics, additional
             filtering is done by the todoOutputFilter in xml2doc.rexx which
             currently requires either vt102, vt220 or vt420 to be listed against
             the control sequence or parameter, or both xterm and tt to be listed
             against the control sequence.
        -->
        <html type="todo" filename="todo.html" title="TO-DO"
              todo-ids="rxvt-stbt rxvt-stbk rxvt-show-toolbar cursor-steady-block steady-underline xt-urgency xt-raise-window osc-7 osc-8"
              todo-mnemonics="SUNBOW SUNWOB SUNSCRL XTPUSHCOLORS XTPOPCOLORS XTREPORTCOLORS"
              terminals="vt220 vt420 vt525 k95 xterm tt putty wt"
              show-refs="true"
              show-not-implemented="true"
              as-table="true">
            <style>
                table {
                border-collapse: collapse;
                }

                th {
                white-space: nowrap;
                text-align: left;
                }

                tr {
                border-bottom: 1px solid black;
                }

                tr:hover {
                background-color: #4C8BF5;
                color: #fff;
                }
                th.ctlseq {
                font-family: monospace;
                }

                th {
                border-right: 1px solid black;
                border-left: 1px solid black;
                }
                td {
                border-right: 1px solid black;
                }
                thead tr {
                border-top: 1px solid black;
                }

                .show-badge {
                display: revert;
                }

                tr.not-implemented {
                background-color: orange;
                }

                th.totals {
                text-align: right;
                padding-right: 1em;
                }

                th.parameter {
                padding-left: 2em;
                }
                span.percentage {
                white-space: nowrap;
                }

                tr.not-implemented td {
                color: purple;
                }

            </style>
        </html>
    </outputs>

    <section role="text" formats="html:outline">
        <p>
            <b>Kermit 95 Release:</b> <k95info val="version-full"/><br/>
            <b>Build Date:</b> <k95info val="version-date"/><br/>
        </p>
        <p>
            This is an outline of the Kermit 95 Control Sequences documentation.
            It only contains section headings for quick navigation to the various
            sections of the main document.
        </p>
    </section>

    <section role="text" formats="html:ctlseq-table">
        <p>
            <b>Kermit 95 Release:</b> <k95info val="version-full"/><br/>
            <b>Build Date:</b> <k95info val="version-date"/><br/>
        </p>
        <p>
            These tables attempt to show which control sequences are available
            for which of the terminal type emulations supported by Kermit 95.
            Only those control sequences that are actually implemented are
            listed here. These tables are <em>wide</em> so you'll want to
            maximize the window, and even then you will likely find yourself
            scrolling sideways.
        </p>
        <p>
            For ANSI-like, VT52 and H19 emulations, many control sequences are
            not restricted to any particular terminal type and so are available
            to all emulations even if the real terminal doesn't
            implement that control sequence. For a table of what the (some of
            the) real terminals <em>actually</em> implement, whether it's
            supported by Kermit 95 or not, see
            <a href="term-ctlseqs.html">Control Sequences by Terminal</a>.
        </p>
        <p>
            Links on control sequences take you to the relevant section in the
            main <a href="ctlseqs.html">Kermit 95 Control Sequences</a> document.
        </p>
    </section>

    <section role="text" formats="html:term-ctlseqs">
        <p>
            <b>Kermit 95 Release:</b> <k95info val="version-full"/><br/>
            <b>Build Date:</b> <k95info val="version-date"/>
        </p>
        <p>
            The tables on this page show which control sequences and escape
            sequences are supported by which of the following popular terminals:
        </p>
        <dl>
            <dt>DEC VT100, VT102</dt>
            <dd>
                Emulation is complete except for: VT100 confidence tests, and the
                interlaced video setting neither of which are applicable to a
                terminal emulator.
            </dd>
            <dt>DEC VT132</dt>
            <dd>
                Not currently emulated by Kermit 95. Aside from the VT100/VT102
                features mentioned above, the main thing Kermit 95 is missing
                is its block mode capability - the key thing that differentiates
                it from the VT102.
            </dd>
            <dt>VT220</dt>
            <dd>
                Emulation is complete except for the VT100 confidence tests (not
                applicable to a terminal emulator) and support for downloadable
                soft-character sets.
            </dd>
            <dt>DEC VT420</dt>
            <dd>
                Not currently emulated by Kermit 95, though most of its major
                features are implemented including Paging, Macros, Left/Right
                Margins, and all of the Rectangular Area Operations. What
                remains to be done can be found
                <a href="https://github.com/davidrg/ckwin/issues/493">in this
                    GitHub ticket</a>.
            </dd>
            <dt>DEC VT510, VT520, VT525</dt>
            <dd>Not currently emulated by Kermit 95, though all of the ANSI
                control sequences it added along with all of the VT525s colour
                modes are supported. What remains to be done can be found
                <a href="https://github.com/davidrg/ckwin/issues/524">in this
                    GitHub ticket</a>.
            </dd>
            <dt>xterm</dt>
            <dd>Not currently emulated by Kermit 95</dd>
            <dt>tt (Tera Term)</dt>
            <dd>
                Not currently emulated by Kermit 95. Supported features based
                on <a href="https://web.archive.org/web/20250328104755/https://teratermproject.github.io/manual/5/en/about/ctrlseq.html">
                Documentation as of 16 September 2025 (v5.5.0)</a>.
            </dd>
            <dt>PuTTY</dt>
            <dd>
                Not currently emulated by Kermit 95. Supported features based on
                reading the code as of commit 01043ce4fc90cee578a00872a64fd69e4bb7203a
                (27 April 2025). If this date is long in the past, PuTTY may have
                gained more control sequences than indicated here.
            </dd>
            <!--
            <dt>wt (Windows Terminal)</dt>
            <dd>
                The standard terminal application that comes with current
                versions of Microsoft Windows.

                Supported terminal features are based on reading the code as of
                commit 5f311506dcaa93c24214819e02fa027151c47fe1 (10 April 2025).

            </dd>
            -->
        </dl>

        <p>
            The primary purpose of this page is to gauge
            <a href="https://davidrg.github.io/ckwin/">Kermit 95</a>s
            compatibility with a selection of important hardware terminals and
            Terminal Emulators. So it forms a sort of to-do list for future
            enhancements to Kermit 95s terminal emulations. Importantly, this
            page doesn't capture <em>differences</em> in the implementations of
            these features between the listed terminals which can sometimes be
            significant.
        </p>

        <p>
            Whether a terminal appears here or not depends on how important it
            is that Kermit 95 should be compatible with it, and whether good
            enough documentation can be found to provide references for all the
            control sequences it implements. The DEC VT320 is notably
            excluded here for that reason-no copy of EK-VT320-RM (the VT320
            programmers reference manual) is available online.
        </p>

        <p>
            All of the information on this page was obtained by reading the
            available documentation for the listed terminals (or source code
            where documentation is not available), so there may very well be
            errors and inconsistencies. If you spot one, log a bug or
            <a href="https://github.com/davidrg/ckwin/discussions">make a post
            on GitHub discussions</a>.
        </p>
        <section role="text" title="Reading the Tables"
                 formats="html:term-ctlseqs">

            <p>
                In the tables on this page, each row represents a control
                sequence (or parameter) giving its name and mnemonic (if they're
                known) and control sequence. This is followed by multiple
                columns, each one representing a particular terminal (or
                terminal emulator). If the background color of the row is
                <em>orange</em>, that indicates Kermit 95 does not currently
                implement that control sequence for any of its emulations.
            </p>
            <p>
                If an 'X' or an 'O' appears in one of the terminal columns, that
                means the control sequence represented by that row is supported
                by that terminal (according to that terminals' documentation at
                least). The 'X' means that K95s emulation of that terminal also
                supports that control sequence (if K95 supports it at all),
                while the 'O' means K95s emulation of it does not (or at least
                not without switching terminal emulation modes first).
            </p>
            <p>
                For example, the VT100 supports <tt><cc>ESC</cc> A</tt>, but only if the
                terminal is switched to VT52 emulation mode first. As a result,
                while both the VT100 and Kermit 95 support <tt><cc>ESC</cc> A</tt>, K95s
                VT100 emulation does not so it gets an 'O' in the VT100 column.
            </p>
            <p>
                An 'O' may also appear in the case where K95 doesn't support
                emulating the terminal at all and as a result the code for that
                control sequence isn't marked as being available to that
                terminal emulation.
            </p>

            <p>
                As these tables list all control sequences whether Kermit 95
                implements them or not, it serves to show how complete
                Kermit 95s emulations of these terminals are (or would be if it
                emulated them), and forms a kind of to-do list for completing
                any emulation that is not yet complete (or adding any emulation
                that is not yet present). At the bottom of the terminal columns
                you'll find the percentage of control sequences for that
                terminal that Kermit 95 implements - 100% would mean that Kermit
                95s emulation of that terminal would be comprehensive (ignoring
                any bugs of course).
            </p>
        </section>
    </section>

    <section role="text" formats="html:todo">
        <p>
            <b>Kermit 95 Release:</b> <k95info val="version-full"/><br/>
            <b>Build Date:</b> <k95info val="version-date"/>
        </p>
        <p>
            This document is a subset of <a href="term-ctlseqs.html">Control
            Sequences by Terminal</a>, filtered to show only currently
            unimplemented control sequences (and parameters) that are perhaps
            worth prioritizing for future implementation to improve Kermit 95s
            compatibility with other terminals.
        </p>
        <p>
            The criteria for inclusion here is dictated by the conversion
            program, in particular the <tt>todo_terminals</tt> setting, and any
            filter rules in the <tt>todoOutputFilter</tt> procedure. The
            current rules are:
        </p>
        <ul>
            <li>Must be supported by VT220 <b>OR</b></li>
            <li>Must be supported by VT420 <b>OR</b></li>
            <li>Must be supported by both xterm and teraterm <b>OR</b></li>
            <li>Must be one of a few other misc control sequences that
                would be easy to implement
            </li>
        </ul>
        <p>
            The reasoning for the criteria is:
        </p>
        <ul>
            <li>K95s emulation of the VT102 and VT220 terminals is very complete.
                It wouldn't take a lot to finish it off (though soft-fonts will
                be <em>hard</em> and so probably won't be done until graphics
                terminal emulation is attempted).
            </li>
            <li>K95 doesn't currently include a VT420 profile, but its around
                72% of the way to supporting everything it needs to have one,
                so it makes sense to try and target those things.
            </li>
            <li>Implementing <em>everything</em> that xterm supports would be
                a very large undertaking, but it seems likely that many of xterms
                features are rarely used. So it may be more effective to start
                with the xterm features that other terminals, like tera term,
                have also chosen to implement as those are more likely to
                actually be used in practice.
            </li>
        </ul>

    </section>

    <section role="text" formats="html:all-ctlseqs">
        <p>
            <b>Kermit 95 Release:</b> <k95info val="version-full"/><br/>
            <b>Build Date:</b> <k95info val="version-date"/>
        </p>
        <p>
            This document doesn't <em>really</em> list
            <em>All Known Control Sequences</em> much less All Known Escape
            Sequences, nor does it aim to &mdash; that
            would be a large job indeed. But the XML document from which
            <a href="ctlseqs.html">Kermit 95's Control Sequences Documentation</a>
            is generated does contain basic information on a great many
            additional control sequences. Many of these are unlikely ever to be
            supported by <a href="https://davidrg.github.io/ckwin/">Kermit 95</a>
            for one reason or another, but it's still useful to know they exist.
            Hence, this document.
        </p>
        <p>
            The criteria for inclusion here is similar to the criteria for
            inclusion in Kermit 95 itself: It exists now, and it is
            not likely to change in some breaking way in the future. Either it
            shipped in some hardware, or the terminal emulators that currently
            support it have an apparent commitment to backwards compatibility
            and are wide-spread enough to discourage other terminal emulators
            from being incompatible in problematic ways.
        </p>
        <p>
            Rows highlighted in yellow indicate control sequences (or parameters)
            not supported by any of Kermit 95s emulations. Features that <em>are</em>
            supported by Kermit 95 have links to documentation describing
            Kermit 95s implementation of that feature.
        </p>

        <p>
            If you see any errors in this document (or K95s control sequences
            manual), or you think there is something that <em>should</em> be
            here but isn't feel free to raise it over on
            <a href="https://github.com/davidrg/ckwin/discussions">github discussions</a>.
        </p>

        <p>Other related documents which may be of interest include:
        </p>
        <ul>
            <li><a href="ctlseqs.html">Kermit 95 ANSI Control Sequences Manual</a></li>
            <li><a href="term-ctlseqs.html">A comparison of some terminal emulators and hardware terminals</a></li>
            <li><a href="https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf">
                DEC STD 070 Video Systems Reference Manual</a> - DECs internal
                documentation for how their terminal products <em>should</em>
                behave.
            </li>
        </ul>

    </section>

    <section role="text">
        <p>
            <b>Kermit 95 Release:</b> <k95info val="version-full"/><br/>
            <b>Build Date:</b> <k95info val="version-date"/>
        </p>
        <p>
            This document attempts to describe the control sequences and
            escape sequences implemented by Kermit 95s ANSI terminal emulator.
            It is roughly modeled on
            <a href="https://invisible-island.net/xterm/ctlseqs/ctlseqs.html">
            xterms excellent ctlseqs document</a> to make comparing implemented control
            sequences easier. For quicker lookup,
            <a href="outline.html">An Outline of this document is available</a>,
            as well as a <a href="tt-ctlseqs.html">Table of Control Sequences
            by Terminal Type</a>. For information on the default keymaps for
            the various terminal types, see
            <a href="keyb.html">Kermit 95 Default Keymaps</a>
        </p>
        <p>
            Prior to 2025 there was no documentation on the control sequences or
            escape sequences supported by any of Kermit 95s many terminal
            emulations. This document was produced by reading through <em>several
            thousand lines of ANSI C</em> recording what appeared to be implemented and
            what, if any, terminal type restrictions applied to various behaviors.
            There is sure to be errors, and many of the descriptions are unhelpfully
            brief. For now its <em>mostly</em> limited to ECMA-48/ANSI X3.64-compatible
            terminals (plus the VT52). Similar documentation for K95s various
            ASCII emulations will be produced in time.
        </p>
        <p>
            Importantly, this document describes what Kermit 95 currently
            does (or <em>appears</em> to do) for a control sequence, not necessarily
            what it <em>should</em> do for a given control sequence and terminal
            emulation. There are no doubt bugs in Kermit 95s implementation of
            some escape sequences, and errors in this documents description of Kermit 95s
            implementation. If you notice any errors or omissions <em>please log
            a bug to have it corrected!</em> Its important to remember this
            is not documenting what real terminals do, just what Kermit 95s
            various modes do.
        </p>
        <p>
            Kermit 95 emulates many different terminal types.
            Where a control sequence, or some specific behavior, is specific
            to one or more terminal types it is marked with badges such
            as these:
            <badge name="vt320"/> <badge name="wy370"/>.

            Anything not marked with a terminal-type badge is available under all
            terminal type modes, even if a particular control sequence was not
            supported by a particular terminal.
        </p>
        <p>
            As Kermit 95 does not currently offer a VT420 or VT520 emulation,
            any VT420 and VT520 control sequences currently implemented are
            <em>temporarily</em> made available to VT320-compatible emulations.
            As a result you may see VT420/VT520 features with badges for other
            terminals that never actually supported these features. For example,
            <a href="#decdmac">DECDMAC</a> is currently available for VT320,
            WY370, S97801, AAA and K95. In the future when a VT420 mode is
            added, control sequences such as DECDMAC will only be available to
            VT420 and K95.
        </p>
        <p>
            Where possible, links to applicable standards and terminal
            documentation are provided. This is usually on the same line the
            section heading. This currently includes the following reference
            sources:
        </p>
        <dl>
            <dt>ecma-48</dt>
            <dd><a href="https://ecma-international.org/wp-content/uploads/ECMA-48_5th_edition_june_1991.pdf">
                Standard ECMA-48: Control Functions for Coded Character Sets</a>
                - both the PDF page number and document page number is given (e.g., p35/49—numbered page 35,
                PDF page 49)</dd>
            <dt>dec-std-070</dt>
            <dd><a href="https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf">
                DEC STD 070 Video Systems Reference Manual
            </a>
                (page numbers given are from the start of the PDF). Note that this is a <em>very large</em>
                OCRd PDF; it may take a while to load!
            </dd>
            <dt>wy370</dt>
            <dd><a href="https://bitsavers.org/pdf/wyse/WY-370/881133-02A_WY-370_Programmers_Guide_Jun90.pdf">
                Wyse WY-370 Programmer's Guide</a>
                (page numbers given are from the start of the PDF)</dd>
            <dt>vt132</dt>
            <dd><a href="https://bitsavers.org/pdf/dec/terminal/vt132/EK-VT132-UG-002_VT132_User_Guide_Nov79.pdf">
                VT132 User Guide</a>
                - both the PDF page number and document page number is given (e.g., p35/49—numbered page 35,
                PDF page 49)</dd>
            <dt>vt420</dt>
            <dd><a href="https://vt100.net/mirror/mds-199909/cd3/term/vt420rm2.pdf">DEC VT420 Reference Manual</a></dd>
            <dt>vt510</dt>
            <dd><a href="https://vt100.net/docs/vt510-rm/contents.html">DEC VT510 Video Terminal Programmer Information</a></dd>
            <dt>vt52x</dt>
            <dd><a href="https://vt100.net/dec/ek-vt520-rm.pdf">DEC VT520/VT525 Reference Manual</a></dd>
            <dt>xterm</dt>
            <dd><a href="https://invisible-island.net/xterm/ctlseqs/ctlseqs.html">
                XTerm Control Sequences
            </a></dd>
        </dl>
        <p>
            K95s implementation will not always match the associated standards
            or terminal documentation. This could due to bugs (in K95 or in the
            terminals being emulated), or simply due to K95s implementation
            being incomplete.
        </p>
        <p>Additional reference documentation that may be useful includes:</p>
        <ul>
            <li><a href="https://ecma-international.org/wp-content/uploads/ECMA-35_6th_edition_december_1994.pdf">
                Standard ECMA-35: Character Code Structure and Extension Techniques
            </a></li>
            <li><a href="https://ecma-international.org/wp-content/uploads/ECMA-43_3rd_edition_december_1991.pdf">
                Standard ECMA-43: 8-Bit Coded Character Set Structure and Rules
            </a></li>
        </ul>
    </section>

    <index/>

    <section role="text"
             formats="html:document html:outline html:ctlseq-table html:term-ctlseqs html:todo html:all-ctlseqs"
             hide-groups="ishp iswyse isdg200 istvi"
             hide-badges="qnx ibm31 vc4404 adm3a adm5 hzl1500 vc4404 vtnt xterm tek40">
        <!-- ANSI-compatible, VT52 and H19 emulations -->

        <!--
        This section largely covers stuff implemented in vtescape() and cwrite().

        Certain emulations are handled elsewhere, such as hpterm and hp2621.
        These are implemented by the hpascii() function which is called by
        cwrite() fairly early on, and when hpascii() returns, so does cwrite()
        preventing execution from ever ending up in vtescape().

            iswyse (wy30, wy50, wy60, wy160):
                Handled by ckowys, wyseascii(). No escape without switching to
                another tt_type_mode. Nothing in vtescape() currently checks
                for an ISWYSE() emulating, eg, a VT100.

            ishp (hpterm, hp2621):
                Handled by ckohp.c, hpascii(). No ability to change tt_type_mode
                and does not call vtescape()

            isdg200 (dh210, dg217):
                Handled by ckodg.c, dgascii().  No escape without switching to
                another tt_type_mode. Nothing in vtescape() currently checks
                for an ISDG200() emulating, eg, a VT100.

            istvi (tvi910, tvi925, tvi950):
                Handled by ckotvi.c, tviascii() from which there is no escape

            qnx:
                Handled by ckoqnx.c, qnxascii().  No ability to change
                tt_type_mode and does not call vtescape()

            ibm31:
                Handled by ckoi31.c, i31ascii().  No ability to change
                tt_type_mode and does not call vtescape()

            adm3a, adm5:
                Handled by ckoadm.c, admascii().  No ability to change
                tt_type_mode and does not call vtescape()

            hzl1500:
                Handled by ckohlz, hzlascii(). This can call into wyseascii()
                from which there is no escape without switching to another
                tt_type_mode.

            vc4404:
                Handled by ckovc, vcascii() from which there is no escape

            xterm, k95:
                Not currently implemented


        For now this section is untitled because:
            1) The document *only* covers emulations implemented in vtescape()
            2) It puts everything one level deeper which messes up the CSS and
               document formatting.
        Eventually when non-ANSI emulations are described in this document, the
        CSS and likely document converter will need upgrading to handle this.
        -->

    <section toc="true" role="text" id="c1" formats="html:document"
             title="C1 (8-bit) Control Characters">
        <section role="ctlseq" id="ind" ctlseq="ESC D" mnemonic="IND" title="Index" groups="isvt100">
            <ref src="070:289"/>
            <ref src="wy370:120"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-D.1113"/>
            <ref src="vt100:IND"/>
            <ref src="vt132:93"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:45"/>
            <ref src="vt420:55"/>
            <ref src="vt510:IND.html"/>
            <ref src="vt52x:111"/>
            <ref src="vt52x:338"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <!-- 0x84 -->
            <p>If the cursor is at the bottom margin, the screen is
                scrolled upwards; otherwise the cursor is moved down one.</p>
        </section>
        <section role="ctlseq" id="nel" ctlseq="ESC E" mnemonic="NEL" title="Next Line">
            <ref src="e48:65"/>
            <ref src="070:319"/>
            <ref src="wy370:121"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-E.1114"/>
            <ref src="vt100:NEL"/>
            <ref src="vt132:94"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:45"/>
            <ref src="vt420:55"/>
            <ref src="vt510:NEL.html"/>
            <ref src="vt52x:111"/>
            <ref src="vt52x:345"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <!-- 0x85 -->
            <p>Move the cursor to the left margin on the next line, or to screen
                left if the cursor is outside the margins. If the cursor is
                within the margins and on the bottom margin, the scrollable
                region scrolls up one line and the cursor remains on the bottom
                margin. Clears the <a href="#lcf">Last Column Flag</a>.
                Affected by <a href="#decom">DECOM</a>.</p>
        </section>
        <section role="ctlseq" id="ssa" ctlseq="ESC F" mnemonic="SSA" title="Start Selected Area"
                 not-implemented="true" todo="true">
            <ref src="vt340:157"/>
            <termsupp first="vt330" series="vt" additional="vt340"/>
        </section>
        <section role="ctlseq" id="esa" ctlseq="ESC G" mnemonic="ESA" title="End selected area" not-implemented="true" groups="isvt220">
            <ref src="vt340:158"/>
            <termsupp first="vt330" series="vt" additional="vt340"/>
            <p>End selected area</p>
        </section>
        <section role="ctlseq" id="hts" ctlseq="ESC H" mnemonic="HTS" title="Set Tab Stop" groups="isvt100">
            <ref src="e48:60"/>
            <ref src="070:324"/>
            <ref src="wy370:126"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-H.1117"/>
            <ref src="vt100:HTS"/>
            <ref src="vt132:93"/>
            <ref src="vt220:S4.8"/>
            <ref src="vt340:45"/>
            <ref src="vt420:56"/>
            <ref src="vt510:HTS.html"/>
            <ref src="vt52x:111"/>
            <ref src="vt52x:336"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <!-- 0x88 -->
            <p>Set Tab Stop</p>
        </section>
        <section role="ctlseq" id="ri" ctlseq="ESC M" mnemonic="RI" title="Reverse Index" groups="isvt100">
            <ref src="e48:69"/>
            <ref src="070:291"/>
            <ref src="wy370:121"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-M.111C"/>
            <ref src="vt100:RI"/>
            <ref src="vt132:94"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:45"/>
            <ref src="vt420:56"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <!-- 0x8D -->
            <p>Reverse Index—moves the cursor up one, scrolling the screen
                if the cursor is already at the top margin.</p>
            <p>Resets the <a href="#lcf">Last Column Flag</a> for all emulations
                except VT100/VT102.</p>
            <p>If the cursor is at the top of the screen and smooth scrolling is
                enabled (<tt>SET TERM SCREEN-UPDATE SMOOTH</tt>) the contents of
                the screen will scroll smoothly down.
            </p>
        </section>
        <section role="ctlseq" id="ssg2l" ctlseq="ESC N" mnemonic="SS2" title="Single shift G2, left" groups="isvt220 isansi">
            <ref src="e48:84"/>
            <ref src="070:185"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-N.111D"/>
            <ref src="vt220:S4.4.4.1"/>
            <ref src="vt340:45"/>
            <ref src="vt420:56"/>
            <ref src="vt510:SS.html"/>
            <ref src="vt52x:111"/>
            <ref src="vt52x:359"/>
            <termsupp first="vt220" series="vt" additional="vt420 vt330 vt340 vt510 tt dtterm wt"/>
            <!-- 0x8D -->
            <p>
                Maps the G2 character set into GL for the next graphic
                character only.
            </p>
        </section>
        <section role="ctlseq" id="ssg3l" ctlseq="ESC O" mnemonic="SS3" title="Single shift G3, left" groups="isvt220 isansi">
            <ref src="e48:84"/>
            <ref src="070:186"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-O.111E"/>
            <ref src="vt220:S4.4.4.2"/>
            <ref src="vt340:45"/>
            <ref src="vt420:56"/>
            <ref src="vt510:SS.html"/>
            <ref src="vt52x:111"/>
            <ref src="vt52x:359"/>
            <termsupp first="vt220" series="vt" additional="vt420 vt330 vt340 vt510 tt dtterm wt"/>
            <!-- 0x8F -->
            <p>Maps the G3 character set into GL for the next graphic
                character only.</p>
        </section>
        <section role="ctlseq" id="dcs" ctlseq="ESC P" mnemonic="DCS" title="Device Control String">
            <ref src="e48:52"/>
            <ref src="070:133"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-P.111F"/>
            <ref src="vt220:T4-2"/>
            <ref src="vt340:45"/>
            <ref src="vt420:56"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm"/>
            <p>Device Control String (DCS, 0x90)</p>
        </section>
        <section role="ctlseq" id="sts" ctlseq="ESC S" mnemonic="STS" title="Set Transmission State"
                 not-implemented="true" todo="true">
            <ref src="vt340:163"/>
            <termsupp first="vt330" series="vt" additional="vt340"/>
        </section>
        <section role="ctlseq" id="spa" ctlseq="ESC V" mnemonic="SPA"
                 title="Start Protected Area" not-implemented="true" badges="aaa">
            <ref src="vt340:142"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-V.1125"/>
            <termsupp first="vt330" series="vt" additional="vt340"/>
            <p>Start Protected Area</p>
        </section>
        <section role="ctlseq" id="epa" ctlseq="ESC W" mnemonic="EPA"
                 title="End Protected Area" not-implemented="true" badges="aaa">
            <ref src="vt340:142"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-W.1126"/>
            <termsupp first="vt330" series="vt" additional="vt340"/>
            <p>End Protected Area</p>
        </section>
        <section role="ctlseq" id="sos" ctlseq="ESC X" mnemonic="SOS" title="Start of String">
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-X.1127"/>
            <ref src="e48:80"/>
            <ref src="vt420:56"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <termsupp first="vt420" series="vt" additional="tt"/>
            <!-- Mention on DEC STD 070 page 386 -->
            <p>Start of String (SOS, 0x98)</p>
        </section>
        <section role="ctlseq" id="decid" ctlseq="ESC Z" mnemonic="DECID" title="Identify Terminal">
            <ref src="070:232"/>
            <ref src="wy370:138"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-Z.1129"/>
            <ref src="vt52:23"/>
            <ref src="vt100:DECID"/>
            <ref src="vt100:VT52ID"/>
            <ref src="vt132:85"/>
            <ref src="vt220:S4.17.3"/>
            <ref src="vt340:214"/>
            <ref src="vt420:256"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <ref src="vt52x:214"/>
            <termsupp first="vt50" series="vt" additional="vt100 vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            <p>
                DECID (0x9A) - Identify Terminal. While the VT420 and VT520 manuals claim
                that DECID is ignored in VT400 or higher mode, K95 doesn't enforce this
                restriction and will produce a response for any terminal type.
            </p>
        </section>
        <section role="ctlseq" id="csi" ctlseq="ESC [" mnemonic="CSI" title="Control Sequence Introducer">
            <ref src="e48:50"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-%5B.116B"/>
            <ref src="vt340:46"/>
            <ref src="vt420:56"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <termsupp first="vt100" series="vt" additional="vt220 vt330 vt340 tt putty dtterm"/>
            <p>Control Sequence Introducer (CSI, 0x9B)</p>
        </section>
        <section role="ctlseq" id="st" ctlseq="ESC \" mnemonic="ST" title="String Terminator">
            <ref src="e48:84"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-bs.11A4"/>
            <ref src="vt340:46"/>
            <ref src="vt420:56"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <termsupp first="vt50" series="vt" additional="vt330 vt340 tt"/>
            <p>String Terminator (ST, 0x9C)</p>
        </section>
        <section role="ctlseq" id="osc" ctlseq="ESC ]" mnemonic="OSC" title="Operating System Command">
            <ref src="e48:65"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-%5D.116D"/>
            <ref src="vt340:46"/>
            <ref src="vt420:57"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <termsupp first="vt420" series="vt" additional="vt330 vt340 tt"/>
            <p>Operating System Command (OSC, 0x9D)</p>
        </section>
        <section role="ctlseq" id="pm" ctlseq="ESC ^" mnemonic="PM" title="Privacy Message">
            <ref src="e48:67"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-%5E.116E"/>
            <ref src="vt340:46"/>
            <ref src="vt420:57"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <termsupp first="vt420" series="vt" additional="vt330 vt340 tt"/>
            <p>Privacy Message (PM, 0x9E)</p>
        </section>
        <section role="ctlseq" id="apc" ctlseq="ESC _" mnemonic="APC" title="Application Program Command">
            <ref src="e48:47"/>
            <ref src="xt:h4-C1-lparen-8-Bit-rparen-Control-Characters:ESC-_.112E"/>
            <ref src="vt340:46"/>
            <ref src="vt420:57"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:111"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 tt"/>
            <p>Application Program Command (APC, 0x9F)</p>
        </section>
    </section>

    <section toc="true" role="text" id="sc" formats="html:document"
             title="Single-character functions">
        <p role="code-reference">
            The code for these all lives in ckoco3.c,
            functions vt100(unsigned short) and wrtch(unsigned short)</p>
        <section role="ctlchar" id="bel" mnemonic="BEL" ctlseq="BEL" title="Bell">
            <ref src="e48:47"/>
            <ref src="070:369"/>
            <ref src="wy370:36"/>
            <ref src="xt:h4-Single-character-functions:BEL.C18"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:42"/>
            <ref src="vt420:53"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 putty tt dtterm wt"/>
            <p>
                Makes an audible bell (<tt>set term bell audible</tt>),
                or flashes the screen (<tt>set term bell visible</tt>),
                or does nothing (<tt>set term bell none</tt>).
            </p>
        </section>
        <section role="ctlchar" id="bs" mnemonic="BS" ctlseq="BS" title="Backspace">
            <ref src="e48:48"/>
            <ref src="070:318"/>
            <ref src="wy370:121"/>
            <ref src="xt:h4-Single-character-functions:BS.BDA"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:42"/>
            <ref src="vt420:53"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 putty tt dtterm wt"/>
            <p>Moves the cursor left 1 column. Clears the <a href="#lcf">Last Column Flag</a>.</p>
            <p badges="qnx">
                If the cursor is already at the start of the line, the cursor
                is moved to the end of the previous line
            </p>
            <p badges="s97801" groups="ishp">
                Moves the cursor left one column if it is currently to the right of the left
                margin
            </p>
            <p badges="hft" groups="isansi">
                Does <em>not</em> clear the <a href="#lcf">Last Column Flag</a>.
            </p>
        </section>
        <section id="can" role="ctlchar" mnemonic="CAN" ctlseq="CAN" title="Cancel">
            <ref src="e48:48"/>
            <ref src="070:124"/>
            <ref src="wy370:36"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:44"/>
            <ref src="vt420:55"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340"/>
            <p>
                Cancels any in-progress escape sequence.
            </p>
        </section>
        <section id="cr" role="ctlchar" mnemonic="CR" ctlseq="CR" title="Carriage Return">
            <ref src="e48:49"/>
            <ref src="070:313"/>
            <ref src="wy370:121"/>
            <ref src="xt:h4-Single-character-functions:CR.BDA"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:43"/>
            <ref src="vt420:54"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 putty tt dtterm wt"/>
            <p>Carriage Return. Sends the cursor to the start of the line
                and clears the <a href="#lcf">Last Column Flag</a></p>

            <p badges="s97801" groups="ishp">
                Sends the cursor to the left margin
            </p>
            <p badges="hft" groups="isansi">
                Does <em>not</em> clear the <a href="#lcf">Last Column Flag</a>.
            </p>
        </section>
        <section id="dc4" role="ctlchar" mnemonic="DC4" ctlseq="DC4" title="Device Control 4"
                 not-implemented="true" todo="true">
            <ref src="vt340:44"/>
            <termsupp first="vt330" series="vt" additional="vt340"/>
        </section>
        <section id="del" role="ctlchar" mnemonic="DEL" ctlseq="DEL" title="Delete"
                 not-implemented="true" todo="true">
            <ref src="vt340:44"/>
            <termsupp first="vt330" series="vt" additional="vt340"/>
        </section>
        <section id="sub" role="ctlchar" mnemonic="SUB" ctlseq="SUB" title="Substitute">
            <ref src="e48:48"/>
            <ref src="070:387"/>
            <ref src="wy370:36"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:44"/>
            <ref src="vt420:55"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 wt"/>
            <p>
                Cancels any in-progress escape sequences. In VT100 emulations,
                it also outputs a shaded box (U+2592). In VT220 or higher
                emulations, a reverse question-mark character (U+2426) is output
                instead. Many fonts don't include character U+2426 in which
                case a box or some other character may be displayed. On recent
                Windows releases, the <em>Cascadia Mono</em> font includes this
                symbol.
            </p>
            <!-- TODO: Windows Terminal does not do a shaded box for VT100
                        (fair as it doesn't really offer to emulate a VT100) -->
        </section>
        <section id="enq-vip7809" role="ctlchar" mnemonic="ENQ" ctlseq="ENQ" title="Return Terminal Status (VIP7809)" badges="vip7809">
            <ref src="e48:57"/>
            <p>
                Respond with the following escape sequence (ETX control char in bold)
                regardless of the answerback setting:
            </p>
            <pre>7813  P GC  A<cc>ETX</cc></pre>
        </section>
        <section id="enq" role="ctlchar" mnemonic="ENQ" ctlseq="ENQ" title="Return Terminal Status" exclude-badges="vip7809">
            <ref src="e48:57"/>
            <ref src="070:1197"/>
            <ref src="wy370:133"/>
            <ref src="xt:h4-Single-character-functions:ENQ.C29"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:42"/>
            <ref src="vt420:53"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 putty tt wt"/>
            <p>If answerback is enabled (off by default, enabled with
                <tt>set term answerback on</tt>). By default,
                the answer back is &quot;K-95&quot; followed by the C-Kermit numeric version
                number and the current terminal emulation profile. It can be extended with
                <tt>set term answerback message</tt> which will append an underscore
                followed by the supplied message to the answerback string.
            </p>
        </section>
        <section id="ff" role="ctlchar" mnemonic="FF" ctlseq="FF" title="Form Feed">
            <ref src="e48:58"/>
            <ref src="070:317"/>
            <ref src="wy370:120"/>
            <ref src="xt:h4-Single-character-functions:FF.BD1"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:43"/>
            <ref src="vt420:54"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 putty tt dtterm wt"/>
            <p>Treated the same as LF for most emulations.</p>
            <!--- TODO: Except in no-emulation mode - see wrtch -->

            <p badges="sun" groups="isansi">
                Instead, this clears screen and homes cursor clearing the
                <a href="#lcf">Last Column Flag</a>.
            </p>
            <p badges="avatar">
                Instead, this clear screen, home cursor, and reset color attribute
            </p>

            <p badges="s97801" groups="ishp">
                Instead, this moves cursor one to the right if to the left of the right margin
            </p>
        </section>
        <section id="lf" role="ctlchar" mnemonic="LF" ctlseq="LF" title="Line Feed or New Line (NL)">
            <ref src="e48:63"/>
            <ref src="070:314"/>
            <ref src="wy370:120"/>
            <ref src="xt:h4-Single-character-functions:LF.BD7"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:43"/>
            <ref src="vt420:54"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 putty tt dtterm wt"/>
            <p>If autoscroll is on (<tt>set term autoscroll on</tt>), the cursor is at
                the bottom margin, and the cursor is not in a protected region
                the terminal scrolls up one line. Otherwise, the cursor remains at the end
                of the line.
            </p>

            <p>Resets the <a href="#lcf">Last Column Flag</a> for all emulations
                except VT520/K95.</p>

            <p>
                If a downwards smooth scroll (as a result of an
                <a href="#ri">RI</a> on the top line) is currently in progress,
                then a line feed anywhere is blocked until the smooth-scroll
                finishes.
            </p>

            <p badges="s97801">
                If in page mode and the cursor is at the bottom margin, the cursor is sent
                to the start of the line
            </p>
        </section>
        <section id="nul" role="ctlchar" mnemonic="NUL" ctlseq="NUL" title="Null">
            <ref src="e48:65"/>
            <ref src="070:383"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:42"/>
            <ref src="vt420:53"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340"/>
            <p>Ignored when received</p>
            <p badges="s97801">Treated the same as SP</p>
        </section>
        <section id="si-ansi" role="ctlchar" mnemonic="LS1" ctlseq="SI" title="Ignored (ANSI)" groups="isansi">
            <p>
                This <em>should</em> switch to the standard character set, but
                instead it does nothing. A comment notes that this is for
                "ANSI music protection".
            </p>
        </section>
        <section id="si-linux" role="ctlchar" mnemonic="LS1" ctlseq="SI" title="Switch to Standard Character Set (Linux)" badges="linux">
            <p>
                Switch to Standard Character set (invoke G2 character set as GR).
            </p>
        </section>
        <section id="si" role="ctlchar" ctlseq="SI" mnemonic="LS1" title="Switch to Standard Character Set" exclude-groups="isansi" exclude-badges="linux">
            <ref src="e48:77"/>
            <ref src="070:178"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-Single-character-functions:SI.BE1"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:44"/>
            <ref src="vt420:120"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:341"/>
            <termsupp first="vt132" series="vt" additional="vt220 vt330 vt340 vt420 vt510 putty tt dtterm wt"/>
            <p>
                Switch to Standard Character set (invoke G0 character set as GL).
            </p>
        </section>
        <section id="so-ansi" role="ctlchar" mnemonic="LS0" ctlseq="SO" title="Ignored (ANSI)" groups="isansi">
            <p>
                This <em>should</em> switch to the alternate character set, but
                instead does nothing. A comment notes that this is for "ANSI music
                protection".
            </p>

        </section>
        <section id="so-linux" role="ctlchar" mnemonic="LS0" ctlseq="SO" title="Switch to Alternate Character Set (Linux)" badges="linux">
            <p>
                Invoke G3 character set as GR
            </p>
        </section>
        <section id="so" role="ctlchar" ctlseq="SO" mnemonic="LS0" title="Switch to Alternate Character Set" exclude-groups="isansi" exclude-badges="linux">
            <ref src="e48:79"/>
            <ref src="070:179"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-Single-character-functions:SO.BE7"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:43"/>
            <ref src="vt420:120"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:341"/>
            <termsupp first="vt100" series="vt" additional="vt220 vt330 vt340 vt420 vt510 putty tt dtterm wt"/>
            <p>
                Switch to Alternate Character set (invoke G1 character set as GL)
            </p>
        </section>
        <section id="sp" role="ctlchar" mnemonic="SP" ctlseq="SP" title="Space">
            <ref src="xt:h4-Single-character-functions:SP.BE8"/>
            <p>Space.</p>
        </section>
        <section id="syn" role="ctlchar" mnemonic="SYN" ctlseq="SYN" title="Avatar AVTCODE" badges="avatar">
            <p>
                Ctrl-V - AVATAR AVTCODE
            </p>
        </section>
        <section id="tab" role="ctlchar" mnemonic="HT" ctlseq="TAB" title="TAB">
            <ref src="e48:59"/>
            <ref src="070:322"/>
            <ref src="wy370:121"/>
            <ref src="xt:h4-Single-character-functions:TAB.C1C"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:43"/>
            <ref src="vt420:54"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <ref src="vt52x:336"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 putty tt dtterm wt"/>
            <p>Horizontal Tab—sends the cursor to the next tabstop. </p>
            <p badges="vt220 vt220pc">
                The VT220 emulation clears the
                <a href="#lcf">Last Column Flag</a> on Horizontal Tab.
            </p>
        </section>
        <section id="vt" role="ctlchar" mnemonic="VT" ctlseq="VT" title="Vertical Tab">
            <ref src="e48:88"/>
            <ref src="070:316"/>
            <ref src="wy370:120"/>
            <ref src="xt:h4-Single-character-functions:VT.BEF"/>
            <ref src="vt100:S3.3.1"/>
            <ref src="vt132:78"/>
            <ref src="vt220:T4-1"/>
            <ref src="vt340:43"/>
            <ref src="vt420:54"/>
            <ref src="vt510:chapter4.html#S4.2"/>
            <ref src="vt52x:110"/>
            <termsupp first="vt100" series="vt" additional="vt330 vt340 putty tt dtterm wt"/>
            <p>Vertical Tab. This is treated the same as LF. </p>

            <!-- TODO: If ISWYSE, ISTVI or ISHZL and a VT gets into wrtch() then if at
                        top margin and autoscroll is on and not in a protected field,
                        then we scroll down one line, otherwise cursor up-->
        </section>
        <section id="xem" role="ctlchar" mnemonic="XEM" ctlseq="XEM" title="Repeat Character" badges="avatar">
            <p>
                Repeat character
            </p>
        </section>
    </section>

    <section toc="true" id="esc" role="text"  formats="html:document"
             title="Controls beginning with ESC">
        <p role="code-reference">
            The code for all of this lives in ckoco3.c, function vtescape( void )
        </p>
        <section role="ctlseq" id="s7c1t" ctlseq="ESC SP F" mnemonic="S7C1T" title="Transmit 7-bit control characters" groups="isvt220">
            <ref src="070:176"/>
            <ref src="wy370:34"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-SP-F.D44"/>
            <ref src="vt220:S4.5.1"/>
            <ref src="vt340:83"/>
            <ref src="vt420:110"/>
            <ref src="vt510:S7C1T.html"/>
            <ref src="vt52x:350"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <p>Switches to sending 7-bit control characters</p>
        </section>
        <section role="ctlseq" id="s8c1t" ctlseq="ESC SP G" mnemonic="S8C1T" title="Transmit 8-bit control characters" groups="isvt220">
            <ref src="070:177"/>
            <ref src="wy370:34"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-SP-G.D45"/>
            <ref src="vt220:S4.5.2"/>
            <ref src="vt340:83"/>
            <ref src="vt420:110"/>
            <ref src="vt510:S8C1T.html"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <p>Switches to sending 8 bit control characters</p>
        </section>
        <section role="ctlseq" id="dectc1" ctlseq="ESC SP 6" mnemonic="DECTC1"
                 title="Truncate 8-bit (C1) control characters (S7C1R)"
                 not-implemented="true" todo="true">
            <ref src="dap:144"/>
            <termsupp first="la100" series="print" additional="wt"/>
            <p>Disables processing of received 8-bit control characters.
                The high bit is cleared
            </p>
        </section>
        <section role="ctlseq" id="decac1" ctlseq="ESC SP 7" mnemonic="DECAC1"
                 title="Accept 8-bit (C1) control characters (S8C1R)"
                 not-implemented="true" todo="true">
            <ref src="dap:103"/>
            <termsupp first="la100" series="print" additional="wt"/>
            <p>Enables processing of received 8-bit control characters.
                Kermit 95 does not currently support controlling receipt and
                transmission of 8-bit control characters separately.
            </p>
        </section>
        <section role="ctlseq" id="wyid" ctlseq="ESC SP 0" mnemonic="WYID" title="Request Terminal ID" badges="wy370">
            <ref src="wy370:138"/>
            <p>Responds with "370\r"</p>
        </section>
        <section role="ctlseq" id="ansi-c1" ctlseq="ESC SP L" title="Set ANSI conformance level 1" groups="isvt220">
            <ref src="070:173"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-SP-L.D4A"/>
            <ref src="vt340:95"/>
            <ref src="vt420:123"/>
            <ref src="vt510:ANSI.html"/>
            <ref src="vt52x:155"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>Set ANSI conformance level 1. As ISO-4873 does not specify that lower
                levels cannot support the capabilities of higher levels, K95 treats them
                all the same.</p>
        </section>
        <section role="ctlseq" id="ansi-c2" ctlseq="ESC SP M" title="Set ANSI conformance level 2" groups="isvt220">
            <ref src="070:173"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-SP-L.D4A"/>
            <ref src="vt340:95"/>
            <ref src="vt420:123"/>
            <ref src="vt510:ANSI.html"/>
            <ref src="vt52x:155"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>Set ANSI conformance level 2. As ISO-4873 does not specify that lower
            levels cannot support the capabilities of higher levels, K95 treats them
                all the same.</p>
        </section>
        <section role="ctlseq" id="ansi-c3" ctlseq="ESC SP N" title="Set ANSI conformance level 3" groups="isvt220">
            <ref src="070:173"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-SP-L.D4A"/>
            <ref src="vt340:95"/>
            <ref src="vt420:123"/>
            <ref src="vt510:ANSI.html"/>
            <ref src="vt52x:155"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>Set ANSI conformance level 3. As ISO-4873 does not specify that lower
                levels cannot support the capabilities of higher levels, K95 treats them
                all the same.</p>
        </section>
        <section role="ctlseq" id="deckbd" ctlseq="ESC SP }" mnemonic="DECKBD"
                 title="Keyboard Language Selection" not-implemented="true" groups="isvt220">
            <ref src="vt510:DECKBD.html"/>
            <ref src="vt52x:217"/>
            <termsupp first="vt510" series="vt" additional=""/>
            <p>
                Pn[1] specifies the keyboard layout, Pn[2] specifies the national
                keyboard language.</p>
            <p>There is code present to implement this in K95, but it is currently disabled
                for unknown reasons.</p>
        </section>
        <section role="ctlseq" id="wystr" ctlseq="ESC ! p" mnemonic="WYSTR"
                 title="Terminal mode reset" not-implemented="true" todo="true">
            <ref src="wy370:38"/>
        </section>
        <section role="ctlseq" id="h19-transmit-page" ctlseq="ESC #" title="Transmit Page (H19)" not-implemented="true" badges="h19">
            <p>Transmit page (lines 1–24) to host</p>
        </section>
        <!-- TODO: Are these really not guarded for some VT terminal? -->
        <section role="ctlseq" id="decdhl-top" ctlseq="ESC # 3" mnemonic="DECDHL" title="double-height line, top half">
            <ref src="070:354"/>
            <ref src="wy370:100"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-pound-3.EB4"/>
            <ref src="vt100:DECDHL"/>
            <ref src="vt132:84"/>
            <ref src="vt220:S4.10.1"/>
            <ref src="vt340:130"/>
            <ref src="vt420:167"/>
            <ref src="vt510:DECDHL.html"/>
            <ref src="vt52x:192"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 putty dtterm wt"/>
            <p>DEC double-height line, top half.
                Not available when <a href="#decvssm">DECVSSM/DECLRMM</a> is set.</p>
        </section>
        <section role="ctlseq" id="decdhl-bottom" ctlseq="ESC # 4" mnemonic="DECDHL" title="double-height line, bottom half">
            <ref src="070:354"/>
            <ref src="wy370:100"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-pound-4.EB5"/>
            <ref src="vt100:DECDHL"/>
            <ref src="vt132:84"/>
            <ref src="vt220:S4.10.2"/>
            <ref src="vt340:130"/>
            <ref src="vt420:167"/>
            <ref src="vt510:DECDHL.html"/>
            <ref src="vt52x:192"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 putty wt"/>
            <p>DEC double-height line, bottom half.
                Not available when <a href="#decvssm">DECVSSM/DECLRMM</a> is set.</p>
        </section>
        <section role="ctlseq" id="decswl" ctlseq="ESC # 5" mnemonic="DECSWL" title="single width line">
            <ref src="070:351"/>
            <ref src="wy370:100"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-pound-5.EB6"/>
            <ref src="vt100:DECSWL"/>
            <ref src="vt132:90"/>
            <ref src="vt220:S4.10.2"/>
            <ref src="vt340:130"/>
            <ref src="vt420:166"/>
            <ref src="vt510:DECSWL.html"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 putty dtterm wt"/>
            <p>DEC Single Width line.
                Not available when <a href="#decvssm">DECVSSM/DECLRMM</a> is set.</p>
        </section>
        <section role="ctlseq" id="decdwl" ctlseq="ESC # 6" mnemonic="DECDWL" title="double width line">
            <ref src="070:352"/>
            <ref src="wy370:100"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-pound-6.EB7"/>
            <ref src="vt100:DECDWL"/>
            <ref src="vt132:84"/>
            <ref src="vt220:S4.10.3"/>
            <ref src="vt340:130"/>
            <ref src="vt420:167"/>
            <ref src="vt510:DECDWL.html"/>
            <ref src="vt52x:202"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 putty dtterm wt"/>
            <p>DEC Double Width line.
                Not available when <a href="#decvssm">DECVSSM/DECLRMM</a> is set.</p>
        </section>
        <section role="ctlseq" id="vt100-hardcopy" ctlseq="ESC # 7"
                 mnemonic="DECHCP" title="Hard Copy (DEC Private)" not-implemented="true">
            <ref src="vt132:85"/>
            <termsupp first="vt132" series="vt" additional=""/>
            <p>Hardcopy (VT100)</p>
        </section>
        <section role="ctlseq" id="decaln" mnemonic="DECALN" ctlseq="ESC # 8" title="DEC Screen Alignment Test">
            <ref src="070:1206"/>
            <ref src="wy370:38"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-pound-8.EB9"/>
            <ref src="vt100:DECALN"/>
            <ref src="vt132:83"/>
            <ref src="vt220:S4.19.2"/>
            <ref src="vt420:313"/>
            <ref src="vt510:DECALN.html"/>
            <ref src="vt52x:171"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt420 vt510 tt linux putty dtterm wt"/>
            <p>Fills the screen with "E".
                Clears the <a href="#lcf">Last Column Flag</a>, margins and
                SGR attributes. Turns of <a href="#decvssm">DECLRMM</a> and
                <a href="#decom">DECOM</a>.
            </p>
            <p>
                The VT420 (v1.4) does not correctly turn of DECLRMM. K95 does
                not currently implement this behaviour as it is deemed to be a
                bug. Rather it behaves as the VT520 does. Additionally, while
                DEC STD 070 says SGR attribute should be cleared no tested
                hardware terminal appears to do this. DECterm does though, so
                K95 does as STD 070 specifies and DECterm does.
            </p>
        </section>
        <section role="ctlseq" id="decfpp" ctlseq="ESC # 9" todo="true"
                 mnemonic="DECFPP" title="Positioning" not-implemented="true">
            <termsupp first="lqp02" series="print" additional=""/>
            <ref src="tphb87:757"/>
        </section>
        <section role="ctlseq" id="wydhl-top" ctlseq="ESC # :" mnemonic="WYDHL" title="Wyse double-height line, top half">
            <ref src="wy370:99"/>
            <p>Wyse double-height line, top half, single-wide characters</p>
        </section>
        <section role="ctlseq" id="wydhl-bottom" ctlseq="ESC # ;" mnemonic="WYDHL" title="Wyse double-height line, bottom half">
            <ref src="wy370:99"/>
            <p>Wyse double-height line, bottom half, single-wide characters</p>
        </section>
        <section role="ctlseq" id="decbar" not-implemented="true" todo="true"
                 mnemonic="DECBAR" ctlseq="ESC % SP 0" title="Start Bar Code">
            <termsupp first="la30" series="print" additional=""/>
            <ref src="dap:109"/>
        </section>
        <section role="ctlseq" id="dectcs" not-implemented="true" todo="true"
                 mnemonic="DECTCS" ctlseq="ESC % 0" title="Exit NAPLPS">
            <termsupp first="lcg01" series="print" additional=""/>
            <ref src="tphb87:793"/>
        </section>
        <section role="ctlseq" id="decsccs" not-implemented="true" todo="true"
                 mnemonic="DECSCCS" ctlseq="ESC % 4" title="Enter NAPLPS">
            <termsupp first="lcg01" series="print" additional=""/>
            <ref src="tphb87:793"/>
        </section>
        <section role="ctlseq" id="dechppcl" not-implemented="true" todo="true"
                 mnemonic="DECHPPCL" ctlseq="ESC % 8" title="Enter HP PCL emulation mode">
            <termsupp first="lj250" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlfunc_dec.html -->
        </section>
        <section role="ctlseq" ctlseq="ESC % 8" title="Select default character set"
                 badges="putty" not-implemented="true" todo="true">
            <termsupp first="putty" series="putty" additional=""/>
            <p>other coding system/old linux code</p>
        </section>
        <section role="ctlseq" id="socs" mnemonic="SOCS" title="Select Other Coding System"
                 not-implemented="true" todo="true">
            <ref src="dap:170"/>
            <p>Select IBM Proprinter emulation mode</p>
        </section>
        <section role="ctlseq" id="sdc" mnemonic="ROCS" ctlseq="ESC % @" title="Select default character set">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-percent-@.F8C"/>
            <termsupp first="xterm" series="xt" additional="putty wt"/>
            <ref src="dap:160"/>
            <p>Return to ISO-2022 mode</p>
        </section>
        <section role="ctlseq" id="sutf8" ctlseq="ESC % G" title="Select UTF-8 character set">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-percent-G.F93"/>
            <termsupp first="xterm" series="xt" additional="putty wt"/>
            <p>Select UTF-8 character set with standard return</p>
        </section>
        <section role="ctlseq" id="sg0" ctlseq="ESC ( C" mnemonic="SCS" title="Designate G0 Character Set">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-lparen-C.F20"/>
            <ref src="wy370:47"/>
            <ref src="070:372"/>
            <ref src="vt100:SCS"/>
            <ref src="vt132:95"/>
            <ref src="vt220:S4.4.1"/>
            <ref src="vt340:88"/>
            <ref src="vt420:115"/>
            <ref src="vt510:SCS.html"/>
            <ref src="vt52x:351"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt putty dtterm wt"/>
            <!-- dtterm only supports B and 0 -->
            <p>Select 94 Character Set into G0. If in National Replacement Character Set
                mode, and parameter <em>C</em> is a valid NRC, then
                this is also selected into G1, G2 and G3. Valid values are:
            </p>
            <table>
                <tr>
                    <th>Character(s)</th>
                    <th>Valid for NRC</th>
                    <th>Description</th>
                </tr>
                <tr>
                    <td>@</td>
                    <td>No</td>
                    <td>United Kingdom (UK). SNI-97801—Not quite US ASCII, but close</td>
                </tr>
                <tr>
                    <td>A</td>
                    <td>Yes</td>
                    <td>United Kingdom (UK)</td>
                </tr>
                <tr>
                    <td>B</td>
                    <td>Yes</td>
                    <td>United States ASCII</td>
                </tr>
                <tr>
                    <td>C or 5</td>
                    <td>Yes</td>
                    <td>Finnish</td>
                </tr>
                <tr>
                    <td>E or 6 </td>
                    <td>Yes</td>
                    <td>Norwegian</td>
                </tr>
                <tr>
                    <td>`</td>
                    <td>No</td>
                    <td>Norwegian</td>
                </tr>
                <tr>
                    <td>G</td>
                    <td>No</td>
                    <td>Swedish</td>
                </tr>
                <tr>
                    <td>H or 7</td>
                    <td>Yes</td>
                    <td>Swedish</td>
                </tr>
                <tr>
                    <td>K</td>
                    <td>Yes</td>
                    <td>German, or for <badge name="linux"/>, ASCII</td>
                </tr>
                <tr>
                    <td>K</td>
                    <td>N/A</td>
                    <td><badge name="linux"/> user mapping - ASCII</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>No</td>
                    <td>French Canadian</td>
                </tr>
                <tr>
                    <td>Q</td>
                    <td>Yes</td>
                    <td>French Canadian</td>
                </tr>
                <tr>
                    <td>R or f</td>
                    <td>Yes</td>
                    <td>French</td>
                </tr>
                <tr>
                    <td>Y</td>
                    <td>Yes</td>
                    <td>Italian</td>
                </tr>
                <tr>
                    <td>Z</td>
                    <td>Yes</td>
                    <td>Spanish</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Yes</td>
                    <td>Dutch</td>
                </tr>
                <tr>
                    <td>=</td>
                    <td>Yes</td>
                    <td>Swiss</td>
                </tr>
                <tr>
                    <td>0</td>
                    <td>No</td>
                    <td>DEC Special Character and Line Drawing Set</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Yes</td>
                    <td>ASCII (DEC Alternate ROM)</td>
                </tr>
                <tr>
                    <td>&gt; or 2</td>
                    <td>No</td>
                    <td>DEC Technical</td>
                </tr>
                <tr>
                    <td>&lt;</td>
                    <td>No</td>
                    <td>
                        DEC MCS, or for VT320: User Preferred Supplemental
                    </td>
                </tr>
                <tr>
                    <td>% 5</td>
                    <td>No</td>
                    <td>DEC MCS</td>
                </tr>
                <tr>
                    <td>% 6</td>
                    <td>No</td>
                    <td>Portuguese</td>
                </tr>
                <tr>
                    <td>L</td>
                    <td>No</td>
                    <td>Portuguese</td>
                </tr>
                <tr>
                    <td>i</td>
                    <td>No</td>
                    <td>Hungarian</td>
                </tr>
                <tr>
                    <td>J</td>
                    <td>No</td>
                    <td>J201R</td>
                </tr>
                <tr>
                    <td>I</td>
                    <td>No</td>
                    <td>J201K</td>
                </tr>
                <tr>
                    <td>*</td>
                    <td>No</td>
                    <td>IBM C0 Graphics</td>
                </tr>
                <tr>
                    <td>U or ?</td>
                    <td>No</td>
                    <td>ASCII</td>  <!-- if G0, CP437 for any other Gs -->
                </tr>
                <tr>
                    <td>e</td>
                    <td>No</td>
                    <td>APL-ISO</td>
                </tr>
                <tr>
                    <td>SP @</td>
                    <td>No</td>
                    <td not-implemented="true">Not implemented: soft character set</td>
                </tr>
            </table>
            <section role="text" title="SNI-97801 specific character sets" badges="s97801">
                <p>
                    K95s SNI-97801 emulation provides a few additional character sets
                    in addition to those listed above. These are:
                </p>
                <table>
                    <tr>
                        <th>Character(s)</th>
                        <th>Valid for NRC</th>
                        <th>Description</th>
                    </tr>
                    <tr>
                        <td>c</td>
                        <td>No</td>
                        <td>FACET character set</td>
                    </tr>
                    <tr>
                        <td>u</td>
                        <td>No</td>
                        <td>Euro symbols</td>
                    </tr>
                    <tr>
                        <td>v</td>
                        <td>No</td>
                        <td>IBM character set</td>
                    </tr>
                    <tr>
                        <td>w</td>
                        <td>No</td>
                        <td>SNI Brackets character set</td>
                    </tr>
                </table>
            </section>
        </section>
        <section role="ctlseq" id="sg1" ctlseq="ESC ) C" mnemonic="SCS" title="Designate G1 Character Set">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-rparen-C.F26"/>
            <ref src="wy370:47"/>
            <ref src="070:372"/>
            <ref src="vt100:SCS"/>
            <ref src="vt132:95"/>
            <ref src="vt220:S4.4.1"/>
            <ref src="vt340:88"/>
            <ref src="vt420:115"/>
            <ref src="vt510:SCS.html"/>
            <ref src="vt52x:351"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt putty dtterm wt"/>
            <p>Select 94 Character Set into G1. If in National Replacement Character Set
                mode, and parameter c is a valid NRC, then this is also selected into G0,
                G2 and G3. Valid values for parameter <em>C</em> are the same as for
                <a href="#sg0"><tt><cc>ESC</cc> ( <param-single symbol="C"/></tt></a>.</p>
            <section role="text" title="Additional linux character sets" badges="linux">
                <p>
                    The following differences apply for Linux emulation for the list of
                    values for <a href="#sg0"><tt><cc>ESC</cc> ( <param-single symbol="C"/></tt></a>:
                </p>
                <table>
                    <tr>
                        <th>Character(s)</th>
                        <th>Description</th>
                    </tr>
                    <!--
                    <tr>
                        <td>1</td>
                        <td>DDD1 - DECRLM, DECHEBM and DECHEM are set</td>
                    </tr>
                    -->
                    <tr>
                        <td>B</td>
                        <td>Latin-1 character set</td>
                    </tr>
                    <tr>
                        <td>K</td>
                        <td>CP850</td>
                    </tr>
                </table>
            </section>
        </section>
        <section role="ctlseq" id="sg2" ctlseq="ESC * C" mnemonic="SCS" title="Designate G2 Character Set" groups="isvt220 isansi" exclude-badges="linux">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-*-C.CC8"/>
            <ref src="vt220:S4.4.1"/>
            <ref src="vt340:88"/>
            <ref src="vt420:115"/>
            <ref src="vt510:SCS.html"/>
            <ref src="vt52x:351"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <p>
                Select 94 Character Set into G2. If in National Replacement Character Set
                mode, and parameter c is a valid NRC, then this is also selected into G0,
                G1 and G3. Valid values for parameter
                <em>C</em> are the same as for
                <tt><cc>ESC</cc> ( C</tt>.
            </p>
        </section>
        <section role="ctlseq" id="sg3" ctlseq="ESC + C" mnemonic="SCS" title="Designate G3 Character Set" groups="isvt220 isansi" exclude-badges="linux">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-plus-C.E62"/>
            <ref src="vt220:S4.4.1"/>
            <ref src="vt340:88"/>
            <ref src="vt420:115"/>
            <ref src="vt510:SCS.html"/>
            <ref src="vt52x:351"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 tt dtterm wt"/>
            <p>
                Select 94 Character Set into G3. If in National Replacement Character Set
                mode, and parameter c is a valid NRC, then this is also selected into G0,
                G1 and G2. Valid values for parameter
                <em>C</em> are the same as for
                <a href="#sg0"><tt><cc>ESC</cc> ( <param-single symbol="C"/></tt></a>.
            </p>
        </section>
        <section role="ctlseq" id="wydelay" mnemonic="WYDELAY" ctlseq="ESC ,"
                 title="Delay terminal processing" not-implemented="true" todo="true">
            <ref src="wy370:36"/>
        </section>
        <section role="ctlseq" id="sg1-vt300" ctlseq="ESC - C" mnemonic="SCS" title="Designate G1 96-Character Set (VT300)">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC---C.CCB"/>
            <ref src="vt340:88"/>
            <ref src="vt420:115"/>
            <ref src="vt510:SCS.html"/>
            <ref src="vt52x:351"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 wt"/>
            <p>Select 96 character set into G1. Valid values for parameter
                <param-single symbol="C"/> are:</p>
            <table>
                <tr>
                    <th>Character(s)</th>
                    <th>Description</th>
                </tr>
                <tr>
                    <td>&lt;</td>
                    <td>DEC User-preferred Supplemental</td>
                </tr>
                <tr>
                    <td>A</td>
                    <td>Latin-1</td>
                </tr>
                <tr>
                    <td>B</td>
                    <td>Latin-2</td>
                </tr>
                <tr>
                    <td>C</td>
                    <td>Latin-3</td>
                </tr>
                <tr>
                    <td>D</td>
                    <td>Latin-4</td>
                </tr>
                <tr>
                    <td>F</td>
                    <td>Latin/Greek</td>
                </tr>
                <tr>
                    <td>F</td>
                    <td><badge name="s97801"/> Only: Latin/Cyrillic</td>
                </tr>
                <tr>
                    <td>@</td>
                    <td>Latin/Greek</td>
                </tr>
                <tr>
                    <td>G</td>
                    <td>Latin/Arabic</td>
                </tr>
                <tr>
                    <td>H</td>
                    <td>Latin/Hebrew</td>
                </tr>
                <tr>
                    <td>L</td>
                    <td>Latin/Cyrillic</td>
                </tr>
                <tr>
                    <td>T</td>
                    <td><badge name="s97801"/> - Ignored</td>
                </tr>
                <tr>
                    <td>T or M</td>
                    <td>Latin-5</td>
                </tr>
                <tr>
                    <td>V</td>
                    <td>Latin/Arabic</td>
                </tr>
                <tr>
                    <td>% 5</td>
                    <td>DEC MCS</td>
                </tr>
                <tr>
                    <td>*</td>
                    <td>IBM C0 Graphics</td>
                </tr>
                <tr>
                    <td>U or ?</td>
                    <td>CP437</td>
                </tr>
                <tr>
                    <td>b</td>
                    <td>Latin-9</td>
                </tr>
                <tr>
                    <td>d</td>
                    <td>Data General MCS</td>
                </tr>
                <tr>
                    <td>e</td>
                    <td>Data General PC Graphics</td>
                </tr>
                <tr>
                    <td>f</td>
                    <td>Data General Line Drawing</td>
                </tr>
                <tr>
                    <td>g</td>
                    <td>Data General Word Processing Graphics</td>
                </tr>
                <tr>
                    <td>h</td>
                    <td>HP Roman-8</td>
                </tr>
                <tr>
                    <td>i</td>
                    <td>HP Math-8</td>
                </tr>
                <tr>
                    <td>j</td>
                    <td>HP Line-8</td>
                </tr>
            </table>
        </section>
        <section role="ctlseq" id="sg2-vt300" ctlseq="ESC . C" mnemonic="SCS" title="Designate G2 96-Character Set (VT300)" groups="isvt220 isansi">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-.-C.CCC"/>
            <ref src="vt340:88"/>
            <ref src="vt420:115"/>
            <ref src="vt510:SCS.html"/>
            <ref src="vt52x:351"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 wt"/>
            <p>
                Select 96 character set into G2. Valid values for parameter
                <em>C</em> are the same as those for
                <a href="#sg1-vt300"><tt><cc>ESC</cc> - C</tt></a>
            </p>
        </section>
        <section role="ctlseq" id="sg3-vt300" ctlseq="ESC / C" mnemonic="SCS" title="Designate G3 96-Character Set (VT300)" groups="isvt220 isansi">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-slash-C.EB9"/>
            <ref src="vt340:88"/>
            <ref src="vt420:115"/>
            <ref src="vt510:SCS.html"/>
            <ref src="vt52x:351"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 wt"/>
            <p>
                Select 96 character set into G3. Valid values for parameter
                <em>C</em> are the same as those for
                <a href="#sg1-vt300"><tt><cc>ESC</cc> - C</tt></a>
            </p>
        </section>
        <section role="ctlseq" id="h19-keypad-shift" ctlseq="ESC 1" title="Enter keypad shift mode (H19)" badges="h19">
            <p>Enter keypad shift mode</p>
        </section>
        <section role="ctlseq" id="gp-on" ctlseq="ESC 1" title="Graphic Processor On" not-implemented="true" groups="isvt100">
            <p>Graphic Processor On</p>
        </section>
        <section role="ctlseq" id="dechts" not-implemented="true" todo="true"
                 mnemonic="DECHTS" ctlseq="ESC 1" title="Horizontal Tab Set">
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:126"/>
        </section>
        <section role="ctlseq" id="decgon" not-implemented="true" todo="true"
                 mnemonic="DECGON" ctlseq="ESC 1" title="Graphics Waveform Generator On">
            <termsupp first="vt105" series="vt" additional=""/>
            <ref src="vt105:52"/>
        </section>
        <section role="ctlseq" id="decgoff" not-implemented="true" groups="isvt100"
                 mnemonic="DECGOFF" ctlseq="ESC 2" title="Graphic Processor Off">
            <p>Graphic Processor Off</p>
            <ref src="vt105:51"/>
        </section>
        <section role="ctlseq" id="deccaht" not-implemented="true" todo="true"
                 mnemonic="DECCAHT" ctlseq="ESC 2" title="Clear All Horizontal Tabs">
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:110"/>
        </section>
        <section role="ctlseq" id="decvts" not-implemented="true" todo="true"
                 mnemonic="DECVTS" ctlseq="ESC 3" title="Vertical Tab Set">
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:149"/>
        </section>
        <section role="ctlseq" id="deccavt" not-implemented="true" todo="true"
                 mnemonic="DECCAVT" ctlseq="ESC 4" title="Clear All Vertical Tabs">
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:111"/>
        </section>
        <!-- TODO: ESC 5 (the integer 5, not '5' - this is likely a bug)
                WY75 - Transmit Character at Cursor
                AAA - zTFC - Toggle Fast-Blink Cursor
                VT134 - DECXMIT - Transmit - <ref src="vt132:91"/>
            -->
        <section role="ctlseq" id="decxmit" mnemonic="DECXMIT" title="Transmit"
                 ctlseq="ESC 5" not-implemented="true" todo="true" >
            <ref src="vt132:91"/>
            <ref src="vt340:163"/>
            <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
            <p>Not Implemented: K95 does not support the VT132 block mode</p>
        </section>
        <section role="ctlseq" id="wyxch" mnemonic="WYXCH" todo="true"
                 not-implemented="true" title="Send cursor character"
                 ctlseq="ESC 5">
            <ref src="wy370:132"/>
        </section>
        <section role="ctlseq" id="zti" ctlseq="ESC 6" mnemonic="zTI" title="Toggle IRM" badges="aaa" not-implemented="true">
            <p>Does nothing. Should be: zTI - Toggle IRM</p>
        </section>
        <section role="ctlseq" id="decbi" ctlseq="ESC 6" mnemonic="DECBI" title="Back Index" groups="isvt100" exclude-badges="aaa">
            <ref src="070:294"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-6.C64"/>
            <ref src="vt420:199"/>
            <ref src="vt510:DECBI.html"/>
            <ref src="vt52x:180"/>
            <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
            <implchk std070="true"/>
            <p>Moves the cursor left and clears the
                <a href="#lcf">Last Column Flag</a>. If the cursor is already at
                the left margin, then all data within the margins is moved one
                column to the right. If the cursor is outside the margins, and
                it hits the left edge of the screen then no action is taken.
            </p>
            <p>
                When data within the margins is scrolled, lines with the
                double-height or double-wide attributes set will scroll twice as
                fast as lines without those attributes set.
            </p>
            <p>
                If the screen scrolls to the right, any
                <a href="#decdrlbr">Ruled Lines</a> on the screen are
                unaffected. They do not move.
            </p>
        </section>
        <section role="ctlseq" id="scp" mnemonic="SCP" ctlseq="ESC 7"
                 title="Save Cursor (ANSI)" groups="isansi" badges="aaa">
            <termsupp series="sco" first="sco"/>
            <p>Saves the cursor position only, does not save attributes.</p>
        </section>
        <section role="ctlseq" id="decsc" ctlseq="ESC 7" mnemonic="DECSC" title="Save Cursor">
            <ref src="070:442"/>
            <ref src="wy370:35"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-7.C65"/>
            <ref src="vt100:DECSC"/>
            <ref src="vt132:89"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:243"/>
            <ref src="vt420:292"/>
            <ref src="vt510:DECSC.html"/>
            <ref src="vt52x:274"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 linux tt putty dtterm wt"/>
            <p>Saves the cursor position and attributes, including the current
                page number.</p>

            <p badges="k95" groups="isxterm">
                The terminal has two slots for storing the cursor position and
                attributes - one for when the terminal is on the normal screen,
                and another for when the terminal is on the alternate screen.
                So saving the cursor while on the alternate screen won't affect
                any cursor position and attributes that were saved while on the
                normal screen.
            </p>
        </section>
        <section role="ctlseq" id="rcp" mnemonic="RCP" ctlseq="ESC 8" title="Restore Cursor (ANSI)"
                 groups="isansi" badges="aaa">
            <termsupp series="sco" first="sco"/>
            <p>Restores the cursor position only, does not restore attributes.</p>
        </section>
        <section role="ctlseq" id="decrc" ctlseq="ESC 8" mnemonic="DECRC" title="Restore Cursor">
            <ref src="070:444"/>
            <ref src="wy370:35"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-8.C66"/>
            <ref src="vt100:DECRC"/>
            <ref src="vt132:87"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:243"/>
            <ref src="vt420:292"/>
            <ref src="vt510:DECRC.html"/>
            <ref src="vt52x:246"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            <p>Restores the cursor position and attributes, including the page
                number
            </p>
        </section>
        <section role="ctlseq" id="zcgr" ctlseq="ESC 9" mnemonic="zCGR"
                 title="Change Graphic Rendition to Qualified Area" badges="aaa">
            <p>Default area goes from Current Cursor position to End of Screen.</p>
        </section>
        <section role="ctlseq" id="decfi" ctlseq="ESC 9" mnemonic="DECFI"
                 title="Forward Index" groups="isvt100" exclude-badges="aaa">
            <ref src="070:292"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-9.C67"/>
            <ref src="vt420:199"/>
            <ref src="vt510:DECFI.html"/>
            <ref src="vt52x:208"/>
            <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
            <p>Moves the cursor right one. If the cursor is already
                at the right margin, it scrolls the screen one column to the left.
                Clears the <a href="#lcf">Last Column Flag</a> if the current
                position is to the left of the right margin.
            </p>
            <p>
                If the screen scrolls to the left, any
                <a href="#decdrlbr">Ruled Lines</a> on the screen are
                unaffected. They do not move.
            </p>
        </section>
        <section role="ctlseq" id="zgua" ctlseq="ESC :" mnemonic="zGUA" title="Guard Unprotected Areas" not-implemented="true" badges="aaa">
            <p>Guard Unprotected Areas</p>
        </section>
        <section role="ctlseq" id="vt52-exit" ctlseq="ESC &lt;" title="Exit VT52 emulation mode">
            <ref src="xt:h4-VT52-Mode:ESC-lt.5AE"/>
            <ref src="vt100:VT52ANSI"/>
            <ref src="vt132:99"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <ref src="vt52x:173"/>
            <ref src="wy370:74"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt330 vt340 vt510 putty wt"/>
            <p>Switches from VT52 mode to VT102 mode</p>
            <p badges="h19">If the true terminal type is H19, then K95 switches
                to VT100 mode instead of VT102</p>
        </section>
        <section role="ctlseq" id="deckpam" ctlseq="ESC =" mnemonic="DECKPAM" title="Set keypad to application mode">
            <ref src="070:553"/>
            <ref src="wy370:42"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-=.C6B"/>
            <ref src="vt52:24"/>
            <ref src="vt100:DECKPAM"/>
            <ref src="vt100:VT52KPAM"/>
            <ref src="vt132:85"/>
            <ref src="vt220:S4.6.18"/>
            <ref src="vt340:188"/>
            <ref src="vt420:214"/>
            <ref src="vt510:DECKPAM.html"/>
            <ref src="vt52x:220"/>
            <termsupp first="vt52" series="vt" additional="vt100 vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            <p>Set keypad to application mode</p>
        </section>
        <section role="ctlseq" id="deckpnm" ctlseq="ESC &gt;" mnemonic="DECKPNM" title="Set keypad to numeric mode">
            <ref src="070:554"/>
            <ref src="wy370:42"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-gt.D09"/>
            <ref src="vt52:24"/>
            <ref src="vt100:DECKPNM"/>
            <ref src="vt100:VT52KPNM"/>
            <ref src="vt132:86"/>
            <ref src="vt220:S4.6.18"/>
            <ref src="vt340:188"/>
            <ref src="vt420:214"/>
            <ref src="vt510:DECKPNM.html"/>
            <ref src="vt52x:221"/>
            <termsupp first="vt50" series="vt" additional="vt100 vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            <p>Set keypad to numeric mode</p>
        </section>
        <section role="ctlseq" id="h19-insert-char" ctlseq="ESC @" title="Enter insert character mode (H19)" badges="h19">
            <p>Enter insert character mode</p>
        </section>
        <section role="ctlseq" id="vt52-cu" ctlseq="ESC A" title="VT52 Cursor Up" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:23"/>
            <ref src="vt100:VT52CUU"/>
            <ref src="vt132:98"/>
            <ref src="vt340:272"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt50" series="vt" additional="vt132 vt330 vt340 vt510 putty wt"/>
            <p>Cursor Up</p>
        </section>
        <section role="ctlseq" id="vt52-cd" ctlseq="ESC B" title="VT52 Cursor Down" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:23"/>
            <ref src="vt100:VT52CUD"/>
            <ref src="vt132:98"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt50h" series="vt" additional="vt330 vt340 putty wt"/>
            <p>Cursor Down</p>
        </section>
        <section role="ctlseq" id="vt52-cr" ctlseq="ESC C" title="VT52 Cursor Right" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:24"/>
            <ref src="vt100:VT52CUF"/>
            <ref src="vt132:98"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt50" series="vt" additional="vt330 vt340 putty wt"/>
            <p>Cursor Right. <a href="#lcf">Last Column Flag</a>.</p>
        </section>
        <section role="ctlseq" id="vt52-cl" ctlseq="ESC D" title="VT52 Cursor Left" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:20"/>
            <ref src="vt100:VT52CUB"/>
            <ref src="vt132:98"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt50h" series="vt" additional="vt330 vt340 putty wt"/>
            <p>Cursor Left. Clears the <a href="#lcf">Last Column Flag</a>.</p>
        </section>
        <section role="ctlseq" id="h19-cls" ctlseq="ESC E" title="Clear screen (H19)" badges="h19">
            <p>Clear display and home cursor. Clears the <a href="#lcf">Last Column Flag</a>.</p>
        </section>
        <section role="ctlseq" id="vt52-egr" ctlseq="ESC F" title="VT52 Enable Graphics"
                 groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:25"/>
            <ref src="vt100:VT52EGM"/>
            <ref src="vt132:98"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt52" series="vt" additional="vt330 vt340 putty wt"/>
            <p>Enable VT52 Graphics</p>
        </section>
        <section role="ctlseq" id="saa" ctlseq="ESC F" mnemonic="SSA"
                 title="Start Selected Area" not-implemented="true" groups="isvt220">
            <p>Start Selected Area</p>
        </section>
        <section role="ctlseq" id="HPLH" ctlseq="ESC F"
                 title="Cursor Home Down (HPTERM)"
                 not-implemented="true">
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-F.C74"/>
            <p>
                Sends the cursor to the lower left corner of the screen. Xterm
                implements this as a workaround for HPs xdb utility which ignores
                termcap and always uses this HPTERM escape sequence.
            </p>
            <p>
                In xterm, this control sequence is disabled by default and must
                be enabled by setting a resource (hpLowerleftBugCompat).
            </p>
            <p>
                As it is disabled by default in xterm, Kermit 95 does not bother
                to implement it. Instead, it is recommended you use Kermit 95s
                <em>hpterm</em> emulation if you run into this problem with the
                xdb utility (<tt>SET TERM TYPE hpterm</tt>).
            </p>
        </section>
        <section role="ctlseq" id="vt52-dgr" ctlseq="ESC G" title="VT52 Disable Graphics" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:25"/>
            <ref src="vt100:VT52XGM"/>
            <ref src="vt132:98"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt52" series="vt" additional="vt330 vt340 putty wt"/>
            <p>Disable VT52 Graphics</p>
        </section>
        <section role="ctlseq" id="vt52-ch" ctlseq="ESC H" title="VT52 Cursor Home" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:20"/>
            <ref src="vt100:VT52CUH"/>
            <ref src="vt132:98"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt50" series="vt"  additional="vt330 vt340 putty wt"/>
            <p>Cursor Home. Clears the <a href="#lcf">Last Column Flag</a>.</p>
        </section>
        <section role="ctlseq" id="vt52-rlf" ctlseq="ESC I" title="VT52 Reverse Linefeed" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:19"/>
            <ref src="vt100:VT52RI"/>
            <ref src="vt132:99"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt52" series="vt" additional="vt330 vt340 putty wt"/>
            <p>Reverse Linefeed</p>
        </section>
        <section role="ctlseq" id="htj" ctlseq="ESC I" mnemonic="HTJ"
                 title="Horizontal Tab with Justify" not-implemented="true" badges="aaa">
            <p>Horizontal Tab with Justify</p>
        </section>
        <section role="ctlseq" id="sbpl" mnemonic="CBPL" ctlseq="ESC I"
                 not-implemented="true" todo="true" title="Cursor to Beginning of Previous Line">
            <termsupp series="sco" first="sco"/>
            <!-- http://osr600doc.xinuos.com/en/man/html.HW/screen.HW.html -->
        </section>
        <section role="ctlseq" id="vt52-ceos" ctlseq="ESC J" title="VT52 Clear to end of screen" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:21"/>
            <ref src="vt100:VT52ED"/>
            <ref src="vt132:99"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt50" series="vt" additional="vt330 vt340 putty wt"/>
            <p>Clear to the end of the screen</p>
        </section>
        <section role="ctlseq" id="vt52-ceol" ctlseq="ESC K" title="VT52 Clear to end of line" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-A.50F"/>
            <ref src="vt52:21"/>
            <ref src="vt100:VT52EL"/>
            <ref src="vt132:99"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt50" series="vt" additional="vt330 vt340 putty wt"/>
            <p>Clear to the end of the line</p>
        </section>
        <section role="ctlseq" id="h19-il" ctlseq="ESC L" title="Insert line (H19)" badges="h19">
            <p>Insert line</p>
        </section>
        <section role="ctlseq" id="h19-dl" ctlseq="ESC M" title="Delete Line" badges="h19">
            <p>Delete Line</p>
        </section>
        <section role="ctlseq" id="h19-dc" ctlseq="ESC N" title="Delete character (H19)" badges="h19">
            <p>Delete character</p>
        </section>
        <section role="ctlseq" id="h19-ic" ctlseq="ESC O" title="Insert character mode (H19)" badges="h19">
            <p>Insert character mode</p>
        </section>
        <section role="ctlseq" id="scodfk" mnemonic="SCODFK" ctlseq="ESC Q"
                 title="Function key assignments (ANSI)" groups="isansi">
            <ref src="vt52x:369"/>
            <termsupp series="sco" first="sco"/>
            <!-- Based on ECMA-48 page 68 PU1 -->
            <p>SCOANSI/AT386 Function key assignments.
                SCOANSI break ANSI X.64-1979. See vtescape() in ckoco3.c for implementation
                details.</p>
            <p>DEC calls this SCODFK, while the SCO documentation calls it SFK (Set Function Key)</p>
        </section>
        <section role="ctlseq" id="sni-pu1" ctlseq="ESC Q" title="Private Use One (PU1) Introducer (SNI-97801-5xx)">
            <!-- Based on ECMA-48 page 68 PU1 -->
            <p>Private Use One (PU1) Introducer (SNI-97801-5xx)</p>
        </section>
        <section role="ctlseq" id="sni-pu2" ctlseq="ESC R" title="Private Use Two (PU2) Introducer (SNI-97801-5xx)">
            <!-- ECMA-48 PU2 page 68 -->
            <p>Private Use Two (PU2) Introducer (SNI-97801-5xx)</p>
        </section>
        <section role="ctlseq" id="aaa-sts" ctlseq="ESC S" mnemonic="STS"
                 title="Set Transmit State" not-implemented="true" badges="aaa" >
            <p>Set Transmit State</p>
        </section>
        <section role="ctlseq" id="vt52-pcl" ctlseq="ESC V"
                 title="VT52 Print cursor line" groups="isvt52">
            <ref src="vt102:SC.2.3.5"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt102" series="vt" excluded="vt132 vt330 vt340"/>
            <p>Print cursor line</p>
        </section>
        <section role="ctlseq" id="vt52-tp" ctlseq="ESC W" title="VT52 Enter printer controller mode" groups="isvt52">
            <ref src="vt102:SC.2.3.5"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt102" series="vt" excluded="vt132 vt330 vt340"/>
            <p>Enable transparent print</p>
        </section>
        <section role="ctlseq" id="vt52-dtp" ctlseq="ESC X" title="VT52 Exit printer controller mode" groups="isvt52">
            <ref src="vt102:SC.2.3.5"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt102" series="vt" excluded="vt132 vt330 vt340"/>
            <p>Disable transparent print</p>
        </section>
        <section role="ctlseq" id="vt52-dca" title="VT52 direct cursor address" groups="isvt52">
            <ref src="xt:h4-VT52-Mode:ESC-Y-Ps-Ps.707"/>
            <ref src="vt510:DECANM.html"/>
            <ref src="vt52:20"/>
            <ref src="vt100:VT52CUP"/>
            <ref src="vt132:99"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt50h" series="vt" additional="vt330 vt340 putty wt"/>
            <ctlseq>
                ESC Y <param-single/> <param-single/>
            </ctlseq>
            <p>Sends the cursor to row and column <param-single/>.
                Clears the <a href="#lcf">Last Column Flag</a>.</p>
        </section>

        <section role="ctlseq" id="h19-hold" ctlseq="ESC ["
                 title="Hold Screen mode on (H19)" not-implemented="true" badges="h19">
            <p>Hold Screen mode On</p>
            <!-- A comment reads: "They must have been drunk when they did this one" -->
        </section>
        <section role="ctlseq" id="h19-exit-hold" ctlseq="ESC \"
                 title="Exit hold screen (H19)" not-implemented="true" badges="h19">
            <p>Exit Hold Screen Mode</p>
        </section>
        <section role="ctlseq" id="h19-tl" ctlseq="ESC ]"
                 title="Transmit line 25 to host (H19)" not-implemented="true" badges="h19">
            <p>
                Only if the real terminal type is H19. If a different terminal
                type is chosen that is able to switch into an H19 mode, and K95
                is asked to switch into that H19 mode, this control sequence
                remains unavailable.
            </p>
        </section>
        <section role="ctlseq" id="vt52-ps" ctlseq="ESC ]" title="VT52 Print Screen" groups="isvt52" exclude-badges="h19">
            <ref src="vt102:SC.2.3.5"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt102" series="vt" excluded="vt132 vt330 vt340"/>
            <p>Print Screen</p>
        </section>
        <section role="ctlseq" id="vt52-ap" ctlseq="ESC ^" title="VT52 Enable Auto-print" groups="isvt52">
            <ref src="vt102:SC.2.3.5"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt102" series="vt" excluded="vt132 vt330 vt340"/>
            <p>Turn on Auto-print</p>
        </section>
        <section role="ctlseq" id="vt52-dap" ctlseq="ESC _" title="VT52 Disable Auto-print" groups="isvt52">
            <ref src="vt102:SC.2.3.5"/>
            <ref src="vt220:S4.20"/>
            <ref src="vt340:272"/>
            <ref src="vt420:350"/>
            <ref src="vt510:DECANM.html"/>
            <termsupp first="vt102" series="vt" excluded="vt132 vt330 vt340"/>
            <p>Turn off Auto-print</p>
        </section>
        <section role="ctlseq" id="vip-cls" ctlseq="ESC `" title="Clear screen (VIP7809)" badges="vip7809">
            <p>Clears the screen, cursor does not move</p>
        </section>
        <section role="ctlseq" id="escbt-kl" ctlseq="ESC `" title="Enable key lock" groups="ishft" badges="s97801 aaa">
            <p>Enables the key lock</p>
        </section>

        <section role="ctlseq" id="aaa-int" ctlseq="ESC a" mnemonic="INT" title="Interrupt (AAA)" not-implemented="true" badges="aaa">
            <p>Interrupt</p>
        </section>
        <section role="ctlseq" id="h19-erb" ctlseq="ESC b" title="Erase to beginning of display" badges="h19">
            <p>Erase to the beginning of the display</p>
        </section>
        <section role="ctlseq" id="kl-dis" ctlseq="ESC b" title="Disable key lock" groups="ishft" badges="s97801 aaa">
            <p>Disables the key lock</p>
        </section>
        <section role="ctlseq" id="ris" ctlseq="ESC c" mnemonic="RIS"
                 title="Reset to initial state">
            <ref src="wy370:37"/>
            <ref src="e48:69"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-c.C91"/>
            <ref src="070:1192"/>
            <ref src="vt100:RIS"/>
            <ref src="vt132:94"/>
            <ref src="vt220:S4.18.2"/>
            <ref src="vt340:258"/>
            <ref src="vt420:308"/>
            <ref src="vt510:RIS.html"/>
            <ref src="vt52x:348"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <p>
                Performs a hard reset. Compared to a soft reset, this also
                resets the status line type, clears the screen and homes the
                cursor.
            </p>
        </section>
        <section role="ctlseq" id="h19-scp" ctlseq="ESC j" title="Save cursor position (H19)" badges="h19">
            <p>Save cursor position</p>
        </section>

        <section role="ctlseq" id="h19-rcp" ctlseq="ESC k" title="Restore cursor position (H19)" badges="h19">
            <p>Restore cursor position</p>
        </section>
        <section role="ctlseq" id="h19-el" ctlseq="ESC l"
                 title="Erase entire line (H19)" badges="h19">
            <p>Erase entire line</p>
        </section>
        <section role="ctlseq" id="lma" mnemonic="LMA" ctlseq="ESC l"
                 title="Lock Memory Area (SCO/HPTERM)" badges="scoansi k95 xterm">
            <termsupp series="sco" first="sco" additional="xterm"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-l.C9A"/>
            <p>Lock Memory Area (sets margins) and homes the cursor.
                Clears the <a href="#lcf">Last Column Flag</a>.</p>
        </section>
        <section role="ctlseq" id="usr" mnemonic="USR" ctlseq="ESC m"
                 title="Unlock Memory Area (SCO/HPTERM)" badges="scoansi k95 xterm">
            <termsupp series="sco" first="sco" additional="xterm"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-m.C9B"/>
            <p>Unlock Memory Area (sets margins) and homes the cursor.
                Clears the <a href="#lcf">Last Column Flag</a>.</p>
        </section>
        <section role="ctlseq" id="h19-cpr" ctlseq="ESC n" title="Cursor Position Report (H19)" badges="h19">
            <p>Cursor Position Report</p>
        </section>
        <section role="ctlseq" id="lsg2l" ctlseq="ESC n" mnemonic="LS2" title="Lock shift G2, left" groups="isvt220 isansi">
            <ref src="e48:63"/>
            <ref src="070:180"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-n.C9C"/>
            <ref src="vt220:S4.4.3"/>
            <ref src="vt340:92"/>
            <ref src="vt420:120"/>
            <ref src="vt510:LS.html"/>
            <ref src="vt52x:341"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <p>Lock shift G2, left</p>
        </section>
        <section role="ctlseq" id="h19-ebol" ctlseq="ESC o" title="Erase to beginning of line (H19)" badges="h19">
            <p>Erase to the beginning of the line</p>
        </section>
        <section role="ctlseq" id="lsg3l" ctlseq="ESC o" mnemonic="LS3" title="Lock shift G3, left" groups="isvt220 isansi">
            <ref src="e48:64"/>
            <ref src="070:181"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-o.C9D"/>
            <ref src="vt220:S4.4.3"/>
            <ref src="vt340:92"/>
            <ref src="vt420:120"/>
            <ref src="vt510:LS.html"/>
            <ref src="vt52x:341"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <p>Lock shift G3, left</p>
        </section>
        <section role="ctlseq" id="h19-rv" ctlseq="ESC p" title="Enter reverse video mode (H19)" badges="h19">
            <p>Enter reverse video mode</p>
        </section>
        <section role="ctlseq" id="h19-erv" ctlseq="ESC q" title="Exit reverse video mode" badges="h19">
            <p>Exit reverse video mode</p>
        </section>
        <section role="ctlseq" id="h19-mbr" ctlseq="ESC r" title="Modify Baud Rate (H19)" not-implemented="true" badges="h19">
            <p>Modify Baud Rate. K95 doesn't do this and just consumes the next
                character.</p>
        </section>
        <section role="ctlseq" id="h19-eks" ctlseq="ESC u" title="Exit keypad shift mode (H19)" badges="h19">
            <p>Exit Keypad Shift Mode</p>
        </section>
        <section role="ctlseq" id="h19-weol" ctlseq="ESC v" title="Enable wrap around at end of line (H19)" badges="h19">
            <p>Enable wrap around at the end of the line</p>
        </section>
        <section role="ctlseq" id="h19-deol" ctlseq="ESC w" title="Discard at end of line" badges="h19">
            <p>Discard at the end of the line (don't wrap)</p>
        </section>
        <section role="ctlseq" id="h19-ms" ctlseq="ESC x" title="Set modes (H19)" badges="h19">
            <p>Set modes. Next character should be one of the following</p>
            <table>
                <tr>
                    <th>Character</th>
                    <th>Action</th>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Enable 25th line (status line)</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Turn off key-click</td>
                </tr>
                <tr not-implemented="true">
                    <td>3</td>
                    <td>Not Implemented: Hold Screen Mode</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Switch to block cursor</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Turn off cursor</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Turn on keypad shifted</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Alternate keypad mode</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Turn on auto line feed on receipt of CR</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Auto CR on receipt of LF</td>
                </tr>
            </table>
        </section>
        <section role="ctlseq" id="h19-rm" title="Reset modes" badges="h19">
            <ctlseq>
                ESC y <param-single/>
            </ctlseq>
            <p>Reset modes. <param-single/> should be one
                of the following:</p>
            <table>
                <tr>
                    <th><param-single/></th>
                    <th>Action</th>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Disable 25th line (status line)</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Turn on key click</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td not-implemented="true">Not Implemented: Exit Hold Screen Mode</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Switch to underline cursor</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Turn on cursor</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Turn off keypad shifted</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Exit alternate keypad mode</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Turn off auto line feed on receipt of CR</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>No Auto CR on receipt of LF</td>
                </tr>
            </table>
        </section>

        <section role="ctlseq" id="h19-ris" ctlseq="ESC z" title="Reset Terminal (H19)" badges="h19">
            <p>Reset Terminal</p>
        </section>
        <section role="ctlseq" id="h19-dkl" ctlseq="ESC {" title="Disable keyboard lock (H19)" badges="h19">
            <p>Disable keyboard lock (enable keyboard)</p>
        </section>
        <section role="ctlseq" id="lsg3r" ctlseq="ESC |" mnemonic="LS3R" title="Lock shift G3, right" groups="isvt220 isansi">
            <ref src="e48:64"/>
            <ref src="070:184"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-%7C.CCD"/>
            <ref src="vt220:S4.4.3"/>
            <ref src="vt340:92"/>
            <ref src="vt420:120"/>
            <ref src="vt510:LS.html"/>
            <ref src="vt52x:341"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <p>Lock shift G3, right</p>
        </section>
        <section role="ctlseq" id="h19-kl" ctlseq="ESC }" title="Enable keyboard lock (H19)" badges="h19">
            <p>Enable keyboard lock (disable keyboard)</p>
        </section>
        <section role="ctlseq" id="lsg2r" ctlseq="ESC }" mnemonic="LS2R" title="Lock shift G2, right" groups="isvt220 isansi">
            <ref src="e48:63"/>
            <ref src="070:183"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-%7D.CCE"/>
            <ref src="vt220:S4.4.3"/>
            <ref src="vt340:92"/>
            <ref src="vt420:120"/>
            <ref src="vt510:LS.html"/>
            <ref src="vt52x:341"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <p>Lock shift G2, right</p>
        </section>
        <section role="ctlseq" id="lsg1" ctlseq="ESC ~" mnemonic="LS1R" title="Lock shift G1, right" groups="isvt220 isansi">
            <ref src="e48:63"/>
            <ref src="070:182"/>
            <ref src="wy370:49"/>
            <ref src="xt:h4-Controls-beginning-with-ESC:ESC-~.CAC"/>
            <ref src="vt220:S4.4.3"/>
            <ref src="vt340:92"/>
            <ref src="vt420:120"/>
            <ref src="vt52x:341"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 tt dtterm wt"/>
            <p>Lock shift G1, right</p>
        </section>

    </section>
    <section toc="true" role="text" id="s_apc"  formats="html:document"
             title="Application Program-Command functions">
        <p>Kermit 95 supports the execution of Kermit commands via APC. As this could
            be hazardous, APC sequences are disabled by default and must be turned on
            with the slightly risky <tt>set term apc on</tt> command or the far more
            risky <tt>set term apc unchecked</tt>.
        </p>

        <p>With APC sequences on, the remote host can request the execution of any
            Kermit command except those considered dangerous, such as push, run, !,
            redirect, delete, rename, output, enable, disable, script and set terminal apc.</p>

        <p>The <em>unchecked</em> option removes the above safety mechanism allowing the
            remote host to run any Kermit command at all on your PC including those
            which could cause damage such as deleting files and disabling other security
            features.</p>

        <p>You should only enable APC support when connecting to hosts you trust, and you
            should think twice about enabling unchecked APCs. See
            <a href="https://www.kermitproject.org/onlinebooks/uck2ep2.pdf#page=278">page 278 of
                <em>Using C-Kermit</em></a> for more on this topic.
        </p>
    </section>

    <section toc="true" role="text" id="s_dcs"  formats="html:document"
             title="Device-Control functions"
             groups="isvt320" badges="vt220" exclude-badges="aaa s97801 dtterm">

        <!-- TODO: This section needs sorting -->

        <!-- ================================================================
             NOTE: Device Control Functions of any kind are currently
             restricted to: vt220 vt220pc vt320 vt320pc wy370 xterm k95
             The dodcs() function is not called for any other terminal types!
             ================================================================ -->

        <!-- Additional (printer) DCS sequences for which I can't find in any
            DEC documentation, but are mentioned here:
                https://vt100.net/emu/dcsseq_dec.html
            DECLFM      DCS & p     Loading Forms Sequence
            DECDFM      DCS & q     Delete Forms Sequence
            DECIFM      DCS & r     Start Forms Sequence
            DECRFMS     DCS & s     Form Status Report
            DECLLG      DCS & t     Loading Logos Sequence
            DECLGSR     DCS & w     Logo Status Report
        -->

        <section role="ctlseq" id="decudk" mnemonic="DECUDK" title="User Defined Keys"
                 badges="vt220 vt220pc vt320 vt320pc wy370 xterm k95">
            <ref src="070:976"/>
            <ref src="xt:h4-Device-Control-functions:DCS-Ps;Ps-%7C-Pt-ST.FC0"/>
            <ref src="vt220:S4.15"/>
            <ref src="vt340:189"/>
            <ref src="vt420:224"/>
            <ref src="vt510:DECUDK.html"/>
            <ref src="vt52x:317"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm"/>
            <!-- aka WYUDK -->
            <ctlseq>
                DCS <param-single/> ; <param-single/> | <param-text/> ST
            </ctlseq>
            <p>The first parameter can be either 0 (clear all UDK definitions before
                starting, default), or 1 (erase below).</p>
            <p>The second parameter can be either 0 (lock the keys, default), or 1 (do not
                lock the keys)</p>

            <!-- TODO: the third parameter should indicate if the key is shifted or not. We
                       don't appear to support this currently. K95 also does not allow
                       specifying the direction of the key. -->

            <p>
                The third parameter is a ;-seperated list of key definitions. A key
                definition consists of the key code for one of the function keys, a / character
                and then the string to send in response to that function key being pressed.
            </p>

            <section role="text" title="Not Implemented">
            <p>K95 does not currently
                support specifying the shift-state of function keys, or the direction the
                response to pressing the key is to be sent in.</p>
            </section>
        </section>

        <section role="ctlseq" id="decdld" mnemonic="DECDLD"
                 title="Down-Line-Load Soft Character Set (Soft Font)"
                 badges="vt220 vt220pc vt320 vt320pc vt420 wy370 vt520 vt525 k95">
            <ref src="vt220:S4.16"/>
            <ref src="vt340:104"/>
            <ref src="vt420:136"/>
            <ref src="vt510:DECDLD.html"/>
            <ref src="vt52x:193"/>
            <ref src="wy370:49"/>  <!-- WY370 populates all characters initially as reverse questionmark -->
            <!-- dtterm recognises it, but doesn't do anything with it -->
            <ref src="070:944"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 vtstar wt"/>
            <ctlseq>DCS <param-single symbol="Pfn"/> ;
                <param-single symbol="Pcn"/> ;
                <param-single symbol="Pe"/> ;
                <param-single symbol="Pcmw"/> ;
                <param-single symbol="Pss"/> ;
                <param-single symbol="Pu"/> ;
                <param-single symbol="Pcmh"/> ;
                <param-single symbol="Pcss"/> {
                <param-text symbol="Dscs"/>
                <param-text symbol="sixel-font-pattern"/>
                ST </ctlseq>

            <p>
                Most DEC terminals starting with the VT220 support a feature
                called <em>Dynamically Redefinable Character Sets</em> (DRCS)
                which allows you to download a soft-character set (a soft-font)
                to the terminal and designate it as you would any character set
                built in to the terminal.
            </p>

            <p>
                Soft-character sets are downloaded into a specific
                <em>font buffer</em>. Some terminals only provide one
                font buffer allowing only a single soft-font to be on screen at
                a time, and some provide two. A single font buffer may
                contain multiple different <em>renditions</em> (font set sizes)
                of a single soft-font, with each rendition being suitable only
                for a specific screen size. If multiple renditions are
                supported, the terminal chooses the rendition appropriate for
                the current screen size. If there is no appropriate rendition
                available, the soft-font is ignored and text is rendered as
                reverse question-marks.
            </p>

            <p>
                The GUI version of Kermit 95 on Windows (K95G) fully implements
                the DRCS feature for all DEC VT models that supported it as well
                as the Wyse WY370 and the K95 terminal type.
            </p>

            <p>
                The implementation has been tested against a VT220, VT420 and
                VT520 and it should closely match the behaviour of those
                terminals. There has so far been no VT320 or WY370 available for
                testing, so Kermit 95s behaviour for those emulations is subject
                to change should future testing demonstrate that they do not
                behave as currently assumed.
            </p>

            <p>
                The documentation here <em>does</em> differ from DECs
                description of the feature in some of the VT Programmer
                Reference Manuals due to errors and omissions in those manuals.
                The behaviour described here and implemented by Kermit 95 is a
                result of testing how the VT220, VT420 and VT520 actually
                behave, not how DECs documentation imagines they behave.</p>
            <p>
                That said, if something looks or sounds wrong its not impossible
                that it may in fact be wrong. This is a complex feature and each
                of DECs terminals implements it slightly differently which makes
                the testing and implementation that much more difficult. If in
                doubt,
                <a href="https://github.com/davidrg/ckwin/discussions">please ask</a>
                supplying a test case you'd like confirmed if possible.
            </p>

            <p>The format of this sequence is:
                <tt><cc>DCS</cc>
                    <a href="#decdld-pfn">Pfn</a> ;
                    <a href="#decdld-pcn">Pcn</a> ;
                    <a href="#decdld-pe">Pe</a> ;
                    <a href="#decdld-pcmw">Pcmw</a> ;
                    <a href="#decdld-pss">Pss</a> ;
                    <a href="#decdld-pt">Pu</a> ;
                    <a href="#decdld-pcmh">Pcmh</a> ;
                    <a href="#decdld-pcss">Pcss</a> {
                    <a href="#decdld-dscs">Dscs</a>
                    <a href="#decdld-glyphs">sixel-font-pattern</a>
                    <cc>ST</cc></tt>. Read on for a description of each
                parameter.
            </p>

            <!--
            A quick paragraph about the format - parameters, a '{', then Dscs
            then the sixel string
            -->

            <section role="text" title="Parameter Pfn: Font Number"
                     id="decdld-pfn">
                <p>
                    This specifies which font buffer is being loaded. The VT220,
                    VT320, VT420 and WY370 have a single font buffer, while the
                    VT520 and the K95 terminal type provide two font buffers.
                </p>
                <p>
                    A value of 0 or 1 will load font buffer 1, and a value of 2
                    will load font buffer 2.
                </p>
                <p>
                    The documentation for the VT520 indicates that specifying
                    a value of zero should load <em>the first empty</em> font
                    buffer. This appears to be an error as Firmware version 2.1
                    reliably loads the first font buffer. K95 follows this
                    behaviour for now in the absence of any VT520 examples
                    that behave as documented.
                </p>
                <p>
                    When both font buffers contain fonts with the same name, the
                    the VT520 manual claims that the most recently loaded font
                    is used. This again appears to be an error as the VT520 v2.1
                    reliably uses font buffer 1 in this scenario. K95 follows
                    this behaviour for now in the absence of any VT520 examples
                    that behave as documented.
                </p>
            </section>
            <section role="text" title="Parameter Pcn: Starting Character"
                     id="decdld-pcn">
                <p>
                    This is the first character in the font buffer to load,
                    starting from character 2/0 (Space) which has a value of 0
                    and ending with character 7/15 (DEL) which has a value of 95.
                </p>
                <p>
                    Characters 2/0 and 7/15 can only be loaded if this is
                    a 96-character set. When loading a 94-character set, any
                    attempt to load characters 2/0 and 7/15 will be ignored.
                    This means that specifying Pcn=0 for a 94-character set
                    will result in the first glyph being ignored.
                </p>
                <p>
                    Because of this, 94 character fonts (including all fonts
                    intended for the VT220) should use a Pcn value greater than
                    zero, or alternatively lead with an empty glyph.
                </p>
            </section>
            <section role="text" title="Parametr Pe: Erase Control"
                     id="decdld-pe">
                <p>Selects which glyphs to erase in the target font buffer.
                </p>
                <p>Pe=0 erases all glyphs in the target rendition
                    (<a href="#decdld-pss">Pss</a>) of the target
                    font buffer before beginning to load glyphs.</p>
                <p>Pe=1 erases only individual glyphs as they are loaded,
                    allowing specific characters in the specified font buffer
                    and rendition to be altered without altering the rest of the
                    font.</p>
                <p>Pe=2 erases all renditions of all font buffers before
                    beginning to load characters.
                </p>
                <p>
                    Erasing a soft-character set does not make it unavailable.
                    It just replaces all glyphs with the replacement character,
                    a reverse question-mark, of a suitable size for the
                    specified rendition. This means that when the font buffer or
                    rendition is erased, all characters on screen using that
                    soft-character set will immediately be replaced with reverse
                    question-marks.
                </p>
                <!--
                Clearing a DRCS set (eg with DCS 1;1;2{sp@ST) does *not* deallocate it. It
                just clears all characters. If you designate it you'll get reverse
                question marks, but the character set with the name still exists and can
                still be designated unlike when the terminal is fresh from power on.
                A soft-reset doesn't clear the DRCS buffers either - you've got to
                power-cycle the terminal (a hard reset)
                -->
            </section>
            <section role="text" title="Parameter Pcmw: Character Matrix Width"
                     id="decdld-pcmw">
                <p>
                    For values 5 and above, this sets the width of glyphs being
                    loaded in pixels. If the value specified differs from the
                    last value used when loading glyphs into the specified
                    rendition of the specified font buffer, the entire rendition
                    is erased before any glyphs are loaded (equivalent to
                    setting Pe=0).
                </p>
                <p>
                    On the VT220 this parameter was known as <em>Pcms</em>, the
                    Character Matrix Size, and it set both a width and a height.
                    Valid values for the VT220 terminal type are given in the
                    table below, and all other emulations treat these values
                    in the same way as the VT220. Despite what some DEC
                    documentation says, no special treatment is given to VT220
                    fonts besides having a fixed height.
                </p>
                <!--
                VT420 doc says it will stretch the glyphs for values 2, 3, 4 but
                doesn't appear to actually do this. The VT520 doc doesn't mention
                any stretching and it doesn't appear to do any.
                -->
                <table>
                    <tr>
                        <th>Pcmw</th>
                        <th>Width</th>
                        <th>Notes</th>
                    </tr>
                    <tr>
                        <td>0</td>
                        <td>Varies</td>
                        <td>For VT220, this is treated the same as a value of 4
                            setting the width to 7 and height to 10. For all
                            other terminals, its the same as the maximum width
                            for the specified terminal type, target rendition
                            and font usage. See the next table for values.
                        </td>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>n/a</td>
                        <td>Not valid - causes the DECDLD sequence to be ignored</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>5</td>
                        <td>VT220 font. Causes Pcmh to be ignored and the height
                            set to 10 pixels
                        </td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>6</td>
                        <td>VT220 font. Causes Pcmh to be ignored and the height
                            set to 10 pixels</td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td>7</td>
                        <td>VT220 font. Causes Pcmh to be ignored and the height
                            set to 10 pixels</td>
                    </tr>
                </table>

                <p>Pcmw values 5 and above are supported only by the VT320 and
                    up as well as the WYSE WY370. The maximum value depends on
                    the terminal type, target rendition, and font usage (text or
                    full cell):
                </p>
                <table>
                    <tr>
                        <th></th>
                        <th colspan="2">80 columns</th>
                        <th colspan="2">132 columns</th>
                    </tr>
                    <tr>
                        <th>Terminal Type</th>
                        <th>Text</th>
                        <th>Full Cell</th>
                        <th>Text</th>
                        <th>Full Cell</th>
                    </tr>
                    <tr>
                        <td>VT320</td>
                        <td>12</td>
                        <td>15</td>
                        <td>7</td>
                        <td>9</td>
                    </tr>
                    <tr>
                        <td>WY370</td>
                        <td>12</td>
                        <td>16</td>
                        <td>7</td>
                        <td>10</td>
                    </tr>
                    <tr>
                        <td>VT420, VT5xx, K95</td>
                        <td>8</td>
                        <td>10</td>
                        <td>6</td>
                        <td>5</td>
                    </tr>
                </table>
                <p>If a Pcmw value greater than the applicable maximum value
                    from the table above is given then the DECDLD sequence will
                    be ignored.
                </p>
            </section>
            <section role="text" title="Parameter Pss: Font Set Size (rendition)"
                     id="decdld-pss">
                <p>
                    With the exception of the VT220, terminals switch to a
                    different font rendition when changing the width or height
                    of the terminal screen. The Pss value specifies what screen
                    size this font rendition is intended for. If a font
                    rendition suitable for the screen size is not available,
                    then the terminal renders the replacement character (reverse
                    question mark) for all characters using that font.
                </p>
                <p>
                    While Kermit 95 does support loading multiple renditions to
                    a single font buffer (when the terminal being emulated
                    does), at this time it will only ever make use of the 80x24
                    rendition as Kermit 95 does not yet support changing fonts
                    when the screen size changes. So if a soft-font does not
                    supply an 80x24 rendition it will just display as reverse
                    question-marks. Fonts designed for Kermit 95 should
                    currently use the 80x24 rendition only.
                </p>

                <table>
                    <tr>
                        <th>Pss</th>
                        <th>Columns</th>
                        <th>Lines</th>
                        <th>Valid on...</th>
                    </tr>
                    <tr>
                        <td>0</td>
                        <td>80</td>
                        <td>24</td>
                        <td>All emulations</td>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>80</td>
                        <td>24</td>
                        <td>All emulations</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>132</td>
                        <td>24</td>
                        <td>All emulations</td>
                    </tr>
                    <tr>
                        <td>11</td>
                        <td>80</td>
                        <td>36</td>
                        <td>VT420, K95</td>
                    </tr>
                    <tr>
                        <td>12</td>
                        <td>132</td>
                        <td>36</td>
                        <td>VT420, K95</td>
                    </tr>
                    <tr>
                        <td>21</td>
                        <td>80</td>
                        <td>48</td>
                        <td>VT420, K95</td>
                    </tr>
                    <tr>
                        <td>22</td>
                        <td>132</td>
                        <td>48</td>
                        <td>VT420, K95</td>
                    </tr>
                </table>

                <p>
                    On the VT220 this parameter was known as <em>Pw</em>, the
                    Width Attribute, and its value was effectively ignored
                    beyond ensuring it was a valid value (0, 1 or 2). This is
                    because instead of switching fonts when in
                    <a href="#deccolm">DECCOLM</a>, the VT220 changed the width
                    of its pixels causing the existing fonts width to shrink.
                    For the VT220 terminal type, Kermit 95 treats values of 0, 1
                    or 2 as the 80x24 rendition.
                </p>
                <p>
                    The VT320 supports storing an 80x24 and a 132x24 rendition,
                    and it will use the appropraite rendition for the current
                    <a href="#deccolm">DECCOLM</a> setting. K95 will store both
                    renditions if supplied, but will only use the 80x24
                    rendition.
                </p>
                <p>
                    The VT420 supports storing all six renditions
                    simultaneously, and it will switch between them based on the
                    screen width (<a href="#deccolm">DECCOLM</a>,
                    <a href="#decscpp">DECSCPP</a>) and height
                    (<a href="#decsnls">DECSNLS</a>). The K95 terminal type
                    behaves the same, but at this time it does not switch
                    renditions so only the 80x24 rendition is used.
                </p>
                <p>
                    While K95 does not yet emulate a VT520, its behaviour is
                    is different again. The Pss values it accepts are the same
                    as for the VT420, but unlike the VT420 it does not switch
                    soft-font renditions when the screen height changes - only
                    when the width changes. Because of this it only stores a
                    single 80 column and a single 132 column rendition per font
                    buffer. Pss values 0, 1, 11 and 21 load the 80 column
                    rendition, while the values 2, 12 and 22 load the 132-column
                    rendition. When the screen height changes the terminal just
                    truncates the soft-font vertically, so applications must
                    handle re-loading soft-fonts whenever the screen height
                    changes. For this reason it was decided that the K95
                    terminal type would follow the VT420 behaviour when support
                    for switching renditions based on screen size eventually
                    happens.
                </p>
            </section>
            <section role="text" title="Parameter Pu: Font Usage" id="decdld-pt">
                <p>
                    This setting controls the maximum value for
                    <a href="#decdld-pcmw">Pcmw</a>, and if glyphs
                    are centered in the character cell or not. If the value
                    specified differs from the last value used when loading
                    glyphs into the specified rendition of the specified font
                    buffer, the entire rendition is erased before any glyphs are
                    loaded (equivalent to setting Pe=0).
                </p>
                <p>
                    Valid values are:
                </p>
                <ul>
                    <li>0, 1 = text (default).</li>
                    <li>2 = full cell</li>
                </ul>
                <p>Full cell fonts can address all pixels in the character cell,
                    while text fonts have a reduced maximum width to allow space
                    for centering the glyph in the character cell. Glyphs are
                    centered as follows for the different terminal types:
                </p>
                <ul>
                    <li>VT320, WY370: Offset to the right by 2 pixels (80 columns) or
                        1 pixel (132 columns)</li>
                    <li>VT420: Offset to the right by one pixel</li>
                    <li>VT520: Two pixel gap on the right side of the glyph</li>
                    <li>K95: centers the glyph horizontally and vetically in
                        the cell</li>
                </ul>
                <!-- Also known as pt - type - on the VT220 -->
                <p>The VT220 ignores this setting beyond checking that the value
                    is valid. It otherwise treats text and full cell fonts the
                    same <a href="#drcs-vt220">unique way</a>.
                </p>
            </section>
            <section role="text" title="Parameter Pcmh: Character Matrix Height"
                     badges="vt320 vt320pc vt420 wy370 vt520 vt525 k95"
                     id="decdld-pcmh">
                <p>
                    Specifies the height of the glyphs being loaded. If the
                    value specified differs from the last value used when
                    loading glyphs into the specified rendition of the specified
                    font buffer, the entire rendition is erased before any
                    glyphs are loaded (equivalent to setting Pe=0).
                </p>
                <p>
                    If a <a href="#decdld-pcmw">Pcmw</a> value of 2, 3 or 4 is
                    specified then the value of Pcmh is ignored and a height of
                    10 is used instead.
                </p>
                <p>
                    The VT420 does not appear to do anything with this
                    information, while the VT520 crops glyphs to the height
                    specified. Due to lack of access to a VT320 for testing, it
                    is currently <em>assumed</em> that the VT320 behaves as the
                    VT420 does and this is what Kermit 95 implements. The VT220
                    does not support this setting. The K95 terminal type behaves
                    as the VT520 does.
                </p>
                <p>Valid values are 1 up to the cell height in pixels:</p>
                <ul>
                    <li>VT320: 12 pixels</li>
                    <!-- <li>VT340: 20 pixels</li> -->
                    <li>VT420, VT5xx, K95: 16 pixels for 24 line display, 10
                        pixels for a 36 line display, and 8 pixels for a 48
                        line display.
                    </li>
                </ul>
                <p>A value of zero will use cause the cell height (above) to be
                    used. Values greater than the cell height are invalid and
                    will cause the DECDLD sequence to be ignored.
                </p>
            </section>
            <section role="text" title="Parameter Pcss: Character Set Size"
                     id="decdld-pcss"
                     badges="vt320 vt320pc vt420 wy370 vt520 vt525 k95">
                <p>
                    Specifies whether a 94-character set (0) or a 96-character
                    set (1) is being loaded. If the value specified differs from
                    the last value used when loading glyphs into the specified
                    font buffer, then all renditions for the specified font
                    buffer are erased before any glyphs are loaded.
                </p>
                <p>
                    When the Pcss value is 0 then glyphs in positions 0
                    (2/0, space) and 95 (7/15, delete) can not be used.
                    Glyphs loaded into these positions will be ignored, so
                    either the first glyph should be empty or a
                    <a href="#decdld-pcn">Pcn</a> value of 1 or greater should
                    be used.
                </p>
                <p>
                    When the Pcss value is 1 then the font must be designated
                    as a 96-character set and so can only be selected into
                    <a href="#sg1-vt300">G1</a>, <a href="#sg2-vt300">G2</a>,
                    or <a href="#sg3-vt300">G3</a>.
                </p>
            </section>
            <section role="text" title="Dscs: Character Set Name" id="decdld-dscs">
                <p>
                    This defines the name of the character set this font will be
                    associated with consisting of 0, 1, or 2 intermediate
                    characters followed by a final character. The K95 terminal
                    type allows a 3rd intermediate character if needed.
                </p>
                <p>
                    Intermediate characters are: SPACE and
                    <tt>!"#$%&amp;'()*+,-./</tt>
                </p>
                <p>
                    And the Final Character must be one of:
                    <tt>@A–Z[\]^_`a–z{|}~</tt>
                </p>
                <p>
                    DEC recommended using two unregistered character set names
                    for soft-character sets: <tt>SPACE @</tt> (the space
                    character followed by the @ character) for the first font
                    buffer, and <tt>&amp;%C</tt> for the second font buffer if
                    needed. But any character set name can be used, including
                    names of built-in character sets.
                </p>
                <p>
                    When a soft-character set has the same name as a built-in
                    character set, the soft-character set will be used instead.
                    This means that, for example, downloading a soft-character
                    set with a Dscs value of <tt>B</tt> will cause the
                    soft character set to replace the ASCII character set, and
                    where ever ASCII is used will be rendered using the
                    soft-font.
                </p>
                <p>
                    If a built-in character set is replaced by a soft-character
                    set, the only way to make the the built-in character set
                    available again is to download a soft-character set with a
                    different name to the same font buffer (renaming the
                    soft-character set in the font buffer).
                </p>
                <p>
                    When both font buffers are loaded with fonts that have the
                    same name, the K95 terminal type behaves as the VT520 does:
                    font buffer 1 takes priority.
                </p>
                <!--
                    The VT520 manual says font buffers are searched in reverse
                    order so as to pick up the most recently loaded font but
                    real VT520s (v2.1 tested) do not appear to do this - they
                    just pick font buffer 1.
                -->

            </section>
            <section title="Sixel String" role="text" id="decdld-glyphs">
                <p>
                    Glyphs in the soft-character set are defined by one or more
                    sixels, and each glyph is separated by the semicolon
                    character. The first glyph specified will be stored at the
                    position identified by <a href="#decdld-pcn">Pcn</a>. If
                    Pcn=0 and <a href="#decdld-pcss">Pcss</a>=0 (a
                    94-character set) then the first glyph will be ignored.
                </p>
                <p>
                    A sixel is a single character representing a certain
                    combination of six pixels in a vertical orientation. For
                    example, the character <tt>~</tt> is a vertical line of six
                    pixels. For glyphs taller than six pixels, the <tt>/</tt>
                    character moves to the next row of sixels.
                </p>

                <p>
                    The reverse question-mark can be represented as the sixel
                    string <tt>{}~FFFF~}{/@BF^][????/???FFF????</tt> as shown
                    below where a 'X' is a set pixel and '.' is a cleared pixel:
                </p>
                <table>
                    <tr>
                        <th>Column</th>
                        <th>1</th>
                        <th>2</th>
                        <th>3</th>
                        <th>4</th>
                        <th>5</th>
                        <th>6</th>
                        <th>7</th>
                        <th>8</th>
                        <th>9</th>
                        <th>10</th>
                        <th></th>
                    </tr>
                    <tr>
                        <th>Sixel:</th>
                        <td><tt>{</tt></td>
                        <td><tt>}</tt></td>
                        <td><tt>~</tt></td>
                        <td><tt>F</tt></td>
                        <td><tt>F</tt></td>
                        <td><tt>F</tt></td>
                        <td><tt>F</tt></td>
                        <td><tt>~</tt></td>
                        <td><tt>}</tt></td>
                        <td><tt>{</tt></td>
                        <td><tt>/</tt></td>
                    </tr>
                    <tr>
                        <th>Row 1</th>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 2</th>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 3</th>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 4</th>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 5</th>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 6</th>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Sixel:</th>
                        <td><tt>@</tt></td>
                        <td><tt>B</tt></td>
                        <td><tt>F</tt></td>
                        <td><tt>^</tt></td>
                        <td><tt>]</tt></td>
                        <td><tt>[</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>/</tt></td>
                    </tr>
                    <tr>
                        <th>Row 7</th>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 8</th>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 9</th>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 10</th>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 11</th>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 12</th>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Sixel:</th>
                        <td><tt>?</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>F</tt></td>
                        <td><tt>F</tt></td>
                        <td><tt>F</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>?</tt></td>
                        <td><tt>;</tt></td>
                    </tr>
                    <tr>
                        <th>Row 13</th>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 14</th>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 15</th>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                    <tr>
                        <th>Row 16</th>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td></td>
                    </tr>
                </table>

                <p>
                    In the bottom row above, the sixels are only shown above as
                    being four pixels high. The K95 terminal type, like the
                    VT520, will crop the glyph to fit the specified height but
                    the VT420 does not. When choosing sixels for the bottom (or
                    only) row, choose sixels that leave any pixels below the
                    bottom of the glyph unset.
                </p>

                <p>
                    The full set of valid sixels is:
                </p>
                <!--
                <pre>
    ?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
    .X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X
    ..XX..XX..XX..XX..XX..XX..XX..XX..XX..XX..XX..XX..XX..XX..XX..XX
    ....XXXX....XXXX....XXXX....XXXX....XXXX....XXXX....XXXX....XXXX
    ........XXXXXXXX........XXXXXXXX........XXXXXXXX........XXXXXXXX
    ................XXXXXXXXXXXXXXXX................XXXXXXXXXXXXXXXX
    ................................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                </pre>
                -->
                <table>
                    <tr>
                        <th><tt>?</tt></th>
                        <th><tt>@</tt></th>
                        <th><tt>A</tt></th>
                        <th><tt>B</tt></th>
                        <th><tt>C</tt></th>
                        <th><tt>D</tt></th>
                        <th><tt>E</tt></th>
                        <th><tt>F</tt></th>
                        <th><tt>G</tt></th>
                        <th><tt>H</tt></th>
                        <th><tt>I</tt></th>
                        <th><tt>J</tt></th>
                        <th><tt>K</tt></th>
                        <th><tt>L</tt></th>
                        <th><tt>M</tt></th>
                        <th><tt>N</tt></th>
                        <th><tt>O</tt></th>
                        <th><tt>P</tt></th>
                        <th><tt>Q</tt></th>
                        <th><tt>R</tt></th>
                        <th><tt>S</tt></th>
                        <th><tt>T</tt></th>
                        <th><tt>U</tt></th>
                        <th><tt>V</tt></th>
                        <th><tt>W</tt></th>
                        <th><tt>X</tt></th>
                        <th><tt>Y</tt></th>
                        <th><tt>Z</tt></th>
                        <th><tt>[</tt></th>
                        <th><tt>\</tt></th>
                        <th><tt>]</tt></th>
                        <th><tt>^</tt></th>
                        <th><tt>_</tt></th>
                        <th><tt>`</tt></th>
                        <th><tt>a</tt></th>
                        <th><tt>b</tt></th>
                        <th><tt>c</tt></th>
                        <th><tt>d</tt></th>
                        <th><tt>e</tt></th>
                        <th><tt>f</tt></th>
                        <th><tt>g</tt></th>
                        <th><tt>h</tt></th>
                        <th><tt>i</tt></th>
                        <th><tt>j</tt></th>
                        <th><tt>k</tt></th>
                        <th><tt>l</tt></th>
                        <th><tt>m</tt></th>
                        <th><tt>n</tt></th>
                        <th><tt>o</tt></th>
                        <th><tt>p</tt></th>
                        <th><tt>q</tt></th>
                        <th><tt>r</tt></th>
                        <th><tt>s</tt></th>
                        <th><tt>t</tt></th>
                        <th><tt>u</tt></th>
                        <th><tt>v</tt></th>
                        <th><tt>w</tt></th>
                        <th><tt>x</tt></th>
                        <th><tt>y</tt></th>
                        <th><tt>z</tt></th>
                        <th><tt>{</tt></th>
                        <th><tt>|</tt></th>
                        <th><tt>}</tt></th>
                        <th><tt>~</tt></th>
                    </tr>
                    <tr>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                        <td>.</td>
                        <td>X</td>
                    </tr>
                    <tr>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                    </tr>
                    <tr>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                    </tr>
                    <tr>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                    </tr>
                    <tr>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                    </tr>
                    <tr>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>.</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                        <td>X</td>
                    </tr>
                </table>

                <p>
                    Any occurrences of the characters BS, HT, LF, VT, FF and CR
                    in a sixel string are ignored, allowing line breaks and tabs
                    to be used for formatting.
                </p>

                <p>
                    As laying out an entire font by selecting appropriate sixels
                    can be rather tiresome, the
                    <a href="https://github.com/j4james/vtfontmaker">VT Font
                    Maker</a> utility by James Holderness can make the job quite
                    a lot easier.
                </p>

                <section title="Example" role="text" id="drcs-example">
                    <p>
                        This is a simple example of a soft-character set
                        containing only a single glyph - the reverse
                        question-mark above.
                    </p>
                    <p><tt><cc>DCS</cc>0;1;0;10;0;2;16;0{ @{}~FFFF~}{/@BF^][????/???FFF????<cc>ST</cc></tt>
                    </p>
                    <p>Which is...</p>
                    <ul>
                        <li>Pfn=0: Load font buffer 1</li>
                        <li>Pcn=1: Start loading at character 1 (!)</li>
                        <li>Pe=0: Erase all glyphs in the target rendition</li>
                        <li>Pcmw=10: Glyphs are 10 pixels wide</li>
                        <li>Pss=0: 80x24 rendition</li>
                        <li>Pu=2: This is a Full Cell font</li>
                        <li>Pcmh=16: Glyphs are 16 pixels tall</li>
                        <li>Pcss=0: This is a 94-character set</li>
                        <li>'<tt>{</tt>': Final character indicating this is a DECDLD DCS sequence</li>
                        <li>'<tt> @</tt>': The name of the soft-character set is the space character followed by the @ character (' @')</li>
                        <li>'<tt>{}~FFFF~}{/@BF^][????/???FFF????</tt>': the glyph</li>
                    </ul>
                    <p>The following unix shell script demonstrates the soft-font.
                        For this to work, Kermit 95 must be in ISO-2022 mode rather than UTF-8 mode
                        (<tt>set term character-set latin1</tt> at the Kermit prompt, or pick
                        latin1-iso from the drop-down list on the toolbar).
                    </p>
                    <pre>
    printf '\x1bP0;1;0;10;0;2;16;0{ @{}~FFFF~}{/@BF^][????/???FFF????\x1b\\'    # Send the soft-font to the terminal
    printf '\x1b) @'    # Designate the soft font as G1
    printf '\x0e'       # Invoke G1 as GL: the soft character set is now in use
    printf '!'          # Output a ! character using the soft-character set. This will render using the reverse question-mark glyph defined earlier
    printf '\x0f'       # Invoke G0 as GL: the soft-character set is no longer in use
                    </pre>
                </section>

                <section title="Undefined Behaviour" role="text" id="drcs-undefined">
                    <p>
                        The DRCS specification leaves some behaviour undefined due
                        to variation in behaviour between existing products.
                        Kermit 95 attempts to match the behaviour of the DEC
                        products it emulations regardless, though at the time this
                        feature was implemented neither a VT320 nor a Wyse WY370 was
                        available for testing so behaviour may not be an exact match
                        for those terminals. Below is a description of how K95
                        handles various characters appearing in the DRCS sixel
                        string:
                    </p>
                    <ul>
                        <li>Bytes 0x00 to 0x07 inclusive are ignored.</li>
                        <li>Bytes 0x0E to 0x1F inclusive and excluding 0x18, 0x1A,
                            and 0x1B are ignored.</li>
                        <li>0x18 (CAN) cancels further processing of the DECDLD
                            string leaving the font partially loaded. Any following
                            characters sent are treated as regular input.
                        </li>
                        <li>0x1B (SUB) on the VT220 and VT420 outputs a reverse
                            question mark then cancels further processing of the
                            DECDLD string leaving the font partially loaded. Any
                            following characters sent are treated as regular input.
                            For the VT520 Kermit 95 provides the same behaviour as
                            the VT220 and VT420 rather than doing as a VT520 does
                            (which is to briefly display garbage from somewhere in
                            memory in the session icon area above the titlebar
                            before writing a NUL character at the cursor position
                            and discarding the rest of the DECDLD string). </li>
                        <li>SP (0x20) and DEL (0x7F) are ignored.</li>
                        <li>Characters from '!' to '>' inclusive and excluding
                            '/' and ';' are ignored. </li>
                        <li>Characters 0x80 to 0x9F (0x81 to 0x9F on VT220)
                            excluding 0x9C cancels further processing of the DECDLD
                            sequence with following characters possibly being as
                            normal input.
                        </li>
                        <li>Bytes 0xA1 to 0xFE inclusive have the 8th bit cleared
                            and are then processed as per other rules.</li>
                    </ul>
                </section>
            </section>
            <section title="VT220 Rendering Details" role="text" id="drcs-vt220">
                <p>
                    When the VT220 terminal type is chosen, Kermit 95 tries to
                    match the unique rendering behaviour of the VT220 terminal
                    which is a bit different from later terminals.
                </p>

                <p>
                    Firstly, columns 9 and 10 are not directly addressable. They
                    are always copies of column 8 and so column 8 should not be
                    used by text fonts. Column 8 (and its copies) are intended
                    to be used by line drawing characters so that they can join
                    up with the character in the ajacent cell.
                </p>

                <p>
                    All pixels in a font are also copied half of a pixel to the
                    right. This is called dot stretching and was done to
                    ensure bright rendering on a slightly slow CRT. The terminal
                    applied dot stretching <em>after</em> glyphs were stretched
                    for double-height/double-wide lines, while K95 currently
                    does dot stretching first which may result in a minor
                    visible difference on double-height/double-wide lines. At
                    this time K95 also copies a whole pixel to the right rather
                    than half a pixel.
                </p>

                <p>
                    The VT220 <em>does</em> apply dot stretching to the 10th
                    column of a glyph, causing it to overflow into half of the
                    first column of the next character cell. K95 doesn't currently
                    replicate this behaviour, instead treating character cells
                    as 11 pixels wide so that glyphs making use of the 8th (and
                    so 9th and 10th) column better match their appearance on a
                    real VT220.
                </p>

                <p>
                    When the VT220 renders glyphs to the screen, they are offset
                    from the grid by one pixel (glyph column 1 goes into
                    character cell column 2) to center text glyphs. K95 only
                    does this for fonts that do not make use of the 8th column.
                </p>

                <p>
                    Lastly, the VT220 has quite visible scan lines which K95
                    does not currently attempt to reproduce.
                </p>

                <p>
                    For more information on how a real VT220 renders text, see
                    the excellent article by Norbert Landsteiner:
                    <a href="https://www.masswerk.at/nowgobang/2019/dec-crt-typography">
                        Raster CRT Typography (According to DEC)
                    </a>
                </p>
            </section>

<!--

 * VT220
    * DECDLD differs from later terminals in taking only six parameters which
        have different names:
        * Pfn   Font number. 0 or 1, doesn't matter - they're both the same
        * Pcn   Starting Character
        * Pe    Erase Control
        * Pcms  Character Matrix Size.  (renamed to pcmw)
        * Pw    Width Attribute (1=80col, 2=132col)   (renamed to pss)
        * Pt    Text/Full cell. Only options are 0 and 1 which are both text.
                    (renamed to Pu)
    * Has a single font buffer
    * It does not have a full-cell usage. DRCS sequences specifying a full cell
        font are ignored.
    * Character cells are 10 pixels wide, but columns 9 and 10 are not directly
        addressable regardless of font usage (text vs full cell) - they are
        copies of column 8. In 132 column mode the width in pixels isn't
        obviously less (unless one or two of the non-addressable columns are
        removed), the pixels just appear to be narrower.
    * Glyphs are not cropped to the specified size. The VT220 treats all
        character matrix sixes the same (2=5x10, 3=6x10, 4=7x10 all act as 8x10).
        Only the values 0, 2, 3 and 4 are accepted however - anything else will
        cause the DECDLD sequence to be ignored
    * The only parameters that actually ever *worth* specifying if you only care
        about it working on a VT220 are:
        - Pcn: starting characte number, if you don't want to start from 0
        - Pe: erase control, if you want to patch the existing character set
                rather than erasing it and reloading the whole thing
        - Pw: if you're loading a 132 column font.
      All of the others can always be left at their default values as all
      valid values behave the same. If you care about the font working on later
      terminals, then everything will need to be specified correctly.
 * VT320
    * ?
 * VT420
    * Character Cells are 10 pixels wide and 16 pixels tall.
        ** 132 column mode??? Other screen heights???
    * Has a single font buffer which can store two fonts for different screen
        resolutions (eg, 80x24, 132x24, etc). The terminal automatically chooses
        the font that matches the current screen resolution.
    * Fonts with text usage are rendered offset 1px to the right within the
        character cell.
    * In 80 column mode, the maximum width for text usage is 8. Higher values
        will cause the DECDLD sequence to be ignored.
    * In 132 column mode, the maximum width for text usage is 5. Higher values
        will cause the DECDLD sequence to be ignored.
    * Maximum height???
    * If more sixels than required for the specified width are supplied, the
        additional sixels are ignored. STD-070 does not require glyphs to be
        cropped to the specified Pcmw width value.
    * Glyphs are drawn to the full height possible for the supplied sixels. They
        are not cropped to the specified height, just cropped to fit the
        character cell height
    * Up to six variants of a font can be loaded for different screen heights
      and widths
    * ///Apparently the VT420 gives the second session a single 80 column font
        buffer (it doesn't get to define both an 80 and 132 column font)///
    * While the Pcmw doc says that values of 2, 3 or 4 get their height doubled
      this isn't obviously the case.
 * VT520
    * Character Cells are 10 pixels wide and 16 pixels tall in 80x24 mode
    * Has zero, one or two font buffers depending on configuration. These can
        store two fonts each - one for an 80 column display and one for a 132
        column display. The terminal selects the appropriate font for the
        current screen width. The manual talks about different fonts for
        different screen *heights*, but the terminal treats all heights the
        same. It won't store and use separate fonts for a 24 line and a 36 line
        display like the VT420 does. The Pss values 11 and 21 are treated as 1,
        and the Pss values 12 and 22 are treated as 2.
    * In 80 column mode, the maximum width for text usage is 8. Higher values
        will cause the DECDLD sequence to be ignored. The manual says 9, but the
        manual is wrong.
    * In 132 column mode, the maximum width for text usage is 5. Higher values
        will cause the DECDLD sequence to be ignored. The manual says 6, but the
        manual is wrong.
    * If more sixels than required for the specified width or height are
        supplied, the additional sixels (or part sixels) are ignored and the
        glyph is cropped to the cell size.
    * If you're using two fonts, DEC recommended naming the second one "&%C"
    * While the manual says a font number 0 goes into the first empty font
        buffer or font buffer 1 if all are used, in practice it seems to always
        go to font buffer 1 regardless. Likely a bug.
    * If both font buffers have the same name, font buffer 1 is used.
        (eg, load a font named ' @' into buffer 1, and a different font named
            ' @' into buffer 2. When you designate ' @' youll get the font in
            buffer 1.)
    * If the font number is zero, the font goes into the first font buffer
        always. This differs from the behaviour described by the manual - either
        the manual is wrong or there is a firmware bug. Doesn't really matter
        which unless someone turns up with a different firmware version that
        works as described in the manual.
    * If a SUB (0xA1) is received during DCS processing, the VT520 aborts,
        the area above the title bar where the session icons live is briefly
        replaced with garbage, and the NUL chracter is written to the terminal
        screen. K95 does not emulate this behaviour.
 * STD-070-10
    * STD-070 recommends that when a built-in character set is overwritten via
        DECDLD, erasing the font via the Pe parameter should make the built-in
        character set available again. This isn't mandatory, and the
        VT220/420/520 don't do it - you have to rename the font buffer to get
        the original charset back.
    * A soft-reset does not erase font files loaded by DECDLD, though the
        designation of character sets assocated with them optionally can
    * RIS (ESC c) should erase font buffers though (hard reset?)
    * If loading a 94-character font, specifying a first character to load of 0
        will cause the first character in the font to be ignored.
    * A DECDLD sequence with a different Pcmw or Pu or Pcmh value from the buffers
        current contents will set Pe=0 and erase the entire font buffer first.
    * Changes to Pss should also set Pe=0, but the VT420 and VT520 don't do
        this - they both allow at least two renditions to be stored
        simultaenously in one font buffer which wouldn't be possible if this
        instruction were followed
    * Pcmh is ignored if Pcmw is 2, 3 or 4.
    * Pcmw of 2, 3 or 4 must be scaled to the terminals character cell size
        >>>>!!!! a narrow font should result in glyphs that leave part of the
            cell empty, and that empty space is scaled up along with the filled
            space. A VT220 font would in effect pretend to have a different cell
            size so it wouldn't leave as much empty space.
 * K95
    * Centers glyphs horizontally and vertically in the cell

DEC STD 070:
    -> Give it a quick read to capture any other details to add to the notes
        above.
K95:
    -> Does it allow control characters in DCS strings? STD070 says we should
        just ignore them (except for ESC and ST of course)
VT420:
    -> What are the maximum heights for various line counts?
    -> Which settings can vary between renditions?
        - Width?
        - Height?
        - Full Cell/Text?
        - Character Set Size?
-->

        </section>

        <section role="ctlseq" id="wylsfnt" mnemonic="WYLSFNT" title="Load softfont"
                 not-implemented="true" todo="true">
            <ref src="wy370:63"/>
            <ctlseq>DCS 0 ; <param-single/> ; <param-single/> } ... ST</ctlseq>
        </section>

        <section role="ctlseq" id="decatff" not-implemented="true" todo="true"
                 mnemonic="DECATFF" title="Assign Type Family or Font">
            <ctlseq>DCS <param-single/> ; <param-single/> } D...D </ctlseq>
            <termsupp first="ln01" series="print" additional=""/>
            <ref src="tphb87:776"/>
        </section>

        <section role="ctlseq" id="decdtff" not-implemented="true" todo="true"
                 mnemonic="DECDTFF" title="Delete Type Family or Font">
            <ctlseq>DCS <param-single/> ~ D...D </ctlseq>
            <termsupp first="ln03" series="print" additional=""/>
            <ref src="tphb87:776"/>
        </section>

        <section role="ctlseq" title="ReGIS Mode" mnemonic="decREGIS" todo="true" not-implemented="true">
            <ref src="vt340g:29"/>
            <ref src="xt:h3-ReGIS-Graphics"/>
            <termsupp first="vt330" series="vt" additional="vt340"/>
            <ctlseq>DCS <param-single/> p D...D ST</ctlseq>
        </section>

        <section role="ctlseq" title="Sixel" mnemonic="decSIXEL" not-implemented="true" todo="true">
            <ctlseq>DCS <param-single symbol="P1"/> ; <param-single symbol="P2"/> ;
                <param-single symbol="P3"/> q D...D ST</ctlseq>
            <ref src="vt340g:248"/>
            <ref src="xt:h3-Sixel-Graphics"/>
            <termsupp first="vt330" series="vt" additional="vt340 wt"/>
        </section>

        <section role="ctlseq" id="decdmac" mnemonic="DECDMAC" groups="isvt420"
                 title="Define Macro">
            <ctlseq>DCS <param-single symbol="Pid"/> ;
                <param-single symbol="Pdt"/> ;
                <param-single symbol="Pen"/> ! z
                <param-single symbol="D...D"/> ST</ctlseq>
            <ref src="070:437"/>
            <ref src="vt420:66"/>
            <ref src="vt510:DECDMAC.html"/>
            <ref src="vt52x:199"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            <p>
                Defines a macro that can later be invoked with
                <a href="#decinvm">DECINVM</a>. A macro consists of a string of
                text and control sequences that are executed by the terminal
                emulator as though they were sent by the remote host.
            </p>
            <p>
                Up to 64 macros can be defined, numbered from 0. Total space
                available for storing macros depends on the terminal being
                emulated. 6KB for the VT420, 10KB for the VT520, and 256KB for
                the K95 terminal type. You can check how much space is available
                by requesting a <a href="#dsr-msr">Macro Space Report (DECMSR)</a>.
                Macro definitions are cleared during a hard terminal reset.
            </p>
            <p>
                The first parameter, <param-single symbol="Pid"/>, is the ID of
                the macro to define. Acceptable values are 0-63. Values outside
                of this range cause the macro definition to be ignored.
            </p>
            <p>
                The second parameter, <param-single symbol="Pdt"/>, specifies what
                the terminal emulator should do with any existing macros when
                defining this macro. A value of 0 causes this macro to replace
                any existing macro with the same ID, while a value of 1 causes
                all macros to be erased before this one is defined, leaving this
                macro as the only macro in memory. Any other values cause the
                macro definition to be ignored. If the macro is unable to be
                defined for other reasons (invalid format, out of space, etc),
                this action is still taken.
            </p>
            <p>
                The third parameter, <param-single symbol="Pen"/>, indicates
                which of two encodings this macro is being sent in - graphic
                ascii characters (0), or pairs of hex digits each representing
                a single character (1).
            </p>
            <p>
                The string, <param-single symbol="D...D"/>, is the macro itself
                encoded in the format specified by <param-single symbol="Pen"/>.
            </p>

            <section role="text" title="ASCII Encoding">
                <p>
                    The ASCII encoding (<param-single symbol="Pen"/> = 0) only
                    consists of graphic characters. This is Space (0x20) through
                    to Tilde (~, 0x7E) and for 8-bit encodings the characters
                    0xA0 through 0xFF. Control characters cannot be included in
                    a macro definition using this encoding, and most are simply
                    discarded.
                </p>
            </section>
            <section role="text" title="Hex Encoding">
                <p>
                    In the Hex encoding, each character is encoded as two hex
                    digits. This encoding allows you to include control
                    characters in addition to graphic characters. It also
                    includes a repeat feature allowing part or all of the macro
                    to be repeated multiple times.
                </p>
                <p>
                    To repeat part or all of a macro, the syntax is
                    <tt>! <param-single symbol="Pn"/> ;
                        <param-single symbol="D...D"/> ;</tt> where
                    <param-single symbol="Pn"/> specifies the number of times
                    that <param-single symbol="D...D"/> should be repeated.
                    Repetitions are expanded at time of definition and so have
                    an impact on macro storage space used. If a number of
                    repetitions is not specified, then the repetition count is 1.
                    The end of the overall macro definition terminates any
                    macro sequences.
                </p>
                <p>
                    Any non-numeric characters between the <tt>!</tt>
                    and the <tt>;</tt> (eg, <tt>!5x;</tt>) are counted as an error
                    and the macro is discarded. When emulating a VT420 (rather
                    than VT5xx or the K95 terminal type), extra semicolons not
                    associated with a repetition will also cause the macro to
                    be discarded.
                </p>
                <p>
                    The only characters allowed inside the Hex encoded macro
                    definition are 0-9, A-F, and the characters '!' and ';' for
                    repetitions. The characters 0x09 through 0x0D (HR to CR) are
                    also allowed for formatting and so are ignored.
                </p>
                <p>
                    Kermits 95s <tt>\fhexify</tt> function may be useful for
                    converting strings to hex format. For example, typing
                    <tt>echo \fhexify(Hello!)</tt> at the K95 prompt will output
                    <tt>48656C6C6F21</tt> which you can then use with DECDMAC.
                    The reverse of this function, <tt>\funhexify</tt>, is also
                    available if you wish to decode macros in hex format.
                </p>    
            </section>
            <section role="text" title="Invoking Other Macros">
                <p>
                    Macros can invoke other macros using <a href="#decinvm">DECINVM</a>
                    but only to a depth of 16 in the VT420 emulation. They cannot
                    define other macros (DECDMAC is ignored during macro
                    processing).
                </p>
                <p groups="isvt520">
                    In the VT520 and K95 emulations, a macro invocation at the
                    very end of a macro does not increase the invocation depth
                    allowing for more than 16 macros to be chained together.
                    To prevent infinite loops, Kermit 95 does place a limit on
                    the number of macro invocations that can be chained in this
                    manner. This is an intentional deviation from the VT520 which
                    includes no such limit and allows infinite loops of macros to
                    be formed.
                </p>
            </section>
            <section role="text" title="Examples">
                <section role="text" title="ASCII Encoding">
                    <p>First define a macro containing the desired text. The
                        following will define a macro with ID 5 which will
                        replace any existing macro with the same ID and uses
                        the ASCII format:
                    <tt>
                        <cc>DCS</cc>5;0;0!zKermit-95 supports Macros!<cc>ST</cc>
                    </tt>
                    </p>
                    <p>
                        When invoked with <tt><cc>CSI</cc>5*z</tt> the text
                        <tt>Kermit-95 supports Macros!</tt> will be output to the
                        terminal.
                    </p>
                </section>
                <section role="text" title="Hex Encoding">
                    <p>
                        Say we want to output the previous example using italics.
                        The string we want the macro to produce is:
                        <tt><cc>ESC</cc>[3mKermit-95 supports Macros!<cc>ESC</cc>[0m</tt>
                    </p>
                    <p>
                        As this string includes the escape character, the Hex
                        encoding must be used. Each character in the string must
                        be recorded as two hex digits. <cc>ESC</cc> becomes
                        <tt>1B</tt>, <tt>[</tt> becomes <tt>5B</tt>, <tt>3</tt>
                        becomes <tt>33</tt>, etc.
                    </p>
                    <p>
                        We'll define this as Macro ID 6 again replacing any
                        prior macro with that ID, and this time we specify <tt>1</tt>
                        as the third parameter to indicate Hex format.
                        <tt>
                            <cc>DCS</cc>6;0;1!z1B5B336D4B65726D69742D393520737570706F727473204D6163726F73211B5B306D<cc>ST</cc>
                        </tt>
                    </p>
                    <p>
                        When invoked with <tt><cc>CSI</cc>6*z</tt> the text
                        <tt><em>Kermit-95 supports Macros!</em></tt> will be
                        output to the terminal in italics.
                    </p>
                </section>
                <section role="text" title="Adding Repetition">
                    <p>
                        With the previous example in hand, we can now easily
                        change it to repeat "Kermit-95 " three times by wrapping
                        the hex digits that represent that part of the string
                        with <tt>!3; ... ;</tt>
                    </p>
                    <p>
                        We'll define this one as Macro 7:
                        <tt>
                            <cc>DCS</cc>7;0;1!z1B5B336D!3;4B65726D69742D393520;737570706F727473204D6163726F73211B5B306D<cc>ST</cc>
                        </tt>
                    </p>
                    <p>
                        When invoked with <tt><cc>CSI</cc>7*z</tt> the text
                        <tt><em>Kermit-95 Kermit-95 Kermit-95 supports Macros!</em></tt> will be
                        output to the terminal in italics.
                    </p>
                </section>
            </section>
        </section>

        <section role="ctlseq" id="decgids" not-implemented="true" todo="true"
                 mnemonic="decGIDIS" title="Enter GIDS mode">
            <ctlseq>DCS <param-single/> ! q D...D </ctlseq>
            <termsupp first="lcg01" series="print" additional=""/>
            <ref src="tphb87:793"/>
        </section>

        <section role="ctlseq" id="decaupss" mnemonic="DECAUPSS"
                 title="Assigning User-Preferred Supplemental Sets"
                 not-implemented="true" todo="true">
            <ref src="xt:h4-Device-Control-functions:DCS-Ps!-u-Pt-ST.EB9"/>
            <ref src="070:378"/>
            <ref src="vt340:94"/>
            <ref src="vt420:122"/>
            <ref src="vt510:DECAUPSS.html"/>
            <ref src="vt52x:178"/>
            <ref src="wy370:47"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <ctlseq>DCS <param-single/> ! u <param-text/> ST</ctlseq>
        </section>

        <section role="ctlseq" id="decctpb" mnemonic="DECCTPB" todo="true"
                 title="Copy Text to Paste Buffer" not-implemented="true">
            <ref src="vws:110"/>
            <ctlseq>DCS ! x <param-text/> ST</ctlseq>
        </section>

        <section role="ctlseq" id="decrsts" mnemonic="DECRSTS"
                 title="Restore Terminal State"
                 groups="isvt420" badges="vt525 k95">
            <ctlseq>DCS <param-single/> $ p D...D ST</ctlseq>
            <ref src="070:463"/>
            <ref src="vt340:222"/>
            <ref src="vt420:268"/>
            <ref src="vt510:DECRSTS.html"/>
            <ref src="vt52x:271"/>
            <ref src="wy370:140"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 vt520 wt"/>

            <section role="parameter" id="decrsts-1" title="Restore Terminal State"
                    not-implemented="true">
                <ctlseq><param-single/> = 1</ctlseq>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 vt520"/>
            </section>
            <section role="parameter" id="decrsts-2" badges="vt525 k95"
                     title="Restore Terminal Color Table State">
                <ref src="vt52x:272"/>
                <ref src="070:364"/>
                <ctlseq><param-single/> = 2</ctlseq>
                <termsupp first="vt525" series="vt" additional="wt"/>
                <p>
                    Restores one or more entries in the current colour palette
                    from values supplied by the host. Values can either be in
                    HLS (hue 0-360, lightness 0-100, saturation 0-100),
                    or RGB (red 0-100, green 0-100, blue 0-100).
                </p>
                <p>
                    The format of a color palette entry in the data string is
                    <tt>Pc ; Pu ; Px ; Py ; Pz</tt> where:
                </p>
                <dl>
                    <dt>Pc</dt>
                    <dd>The color index (0-255).</dd>
                    <dt>Pu</dt>
                    <dd>The color format - 1 for HLS, or 2 for RGB.
                    </dd>
                    <dt>Px, Py, Pz</dt>
                    <dd>In HLS format these are Hue, Lightness and Saturation.
                        In RGB format these are Red, Green and Blue. Note that
                        RGB values are 0-100, not 0-255 as in
                        <a href="#osc-4">OSC-4</a>. Note that in HLS format,
                        <em>blue is at 0 degrees</em>, not red.
                    </dd>
                </dl>
                <p>
                    To supply more than one color palette entry to be restored,
                    separate multiple entries with the '/' character. For
                    example, the following would restore K95s entire default
                    16-colour palette using RGB format:
                </p>
                <p><tt>printf '\x1bP2$p0;2;0;0;0/1;2;50;0;0/2;2;0;50;0/3;2;50;50;0/4;2;0;0;50/5;2;50;0;50/6;2;0;50;50/7;2;75;75;75/8;2;50;50;50/9;2;100;0;0/10;2;0;100;0/11;2;100;100;0/12;2;0;0;100/13;2;100;0;100/14;2;0;100;100/15;2;100;100;100\x1b\\'</tt></p>
                <p>
                    And the following would do the same, but using the HLS color
                    system:
                </p>
                <p><tt>printf '\x1bP2$p0;1;119;0;0/1;1;120;25;100/2;1;240;25;100/3;1;180;25;100/4;1;0;25;100/5;1;60;25;100/6;1;300;25;100/7;1;119;75;0/8;1;119;50;0/9;1;120;50;100/10;1;240;50;100/11;1;180;50;100/12;1;0;50;100/13;1;60;50;100/14;1;300;50;100/15;1;119;100;0\x1b\\'</tt></p>
                <p>
                    When restoring the color palette, entries with a color
                    index outside the range of the current color palette or an
                    invalid color format are discarded. Any palette entries not
                    specified remain unmodified allowing only a subset of the
                    palette to be updated as required.
                </p>
            </section>
        </section>

        <section role="ctlseq" id="decrsps" mnemonic="DECRSPS"
                 title="Restore Presentation State"
                 not-implemented="true" todo="true">
            <ctlseq>DCS <param-single/> $ p D...D ST</ctlseq>
            <ref src="xt:h4-Device-Control-functions:DCS-Ps-$-t-Pt-ST.EE8"/>
            <ref src="070:460"/>
            <ref src="vt420:277"/>
            <ref src="vt510:DECRSPS.html"/>
            <ref src="vt52x:270"/>
            <ref src="wy370:143"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
        </section>

        <section role="ctlseq" id="declbd" mnemonic="DECLBD"
                 title="Locator Button Definition"
                 not-implemented="true" todo="true">
            <ctlseq>DCS <param-char/> $ w D...D ST</ctlseq>
            <ref src="vt340g:266"/>
            <termsupp first="vt330" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="decckd" mnemonic="DECCKD"
                 title="Copy Key Default"
                 not-implemented="true" todo="true">
            <ctlseq>DCS &quot; z D...D ST</ctlseq>
            <ref src="vt52x:185"/>
            <termsupp first="vt520" series="vt" additional=""/>
        </section>

        <!-- Printer to Host report
        <section role="ctlseq" id="decfsr" mnemonic="DECFSR"
                 title="Font Status Report"
                 not-implemented="true" todo="true">
            <ctlseq>DCS <param-single/> &quot; { D...D ST</ctlseq>
            <termsupp first="ln03" series="print" additional=""/>
            <ref src="dap:123"/>
        </section>-->

        <section role="ctlseq" id="declans" mnemonic="DECLANS"
                 title="Load Answerback Message"
                 not-implemented="true" todo="true">
            <ctlseq>DCS <param-single/> v D...D ST</ctlseq>
            <ref src="vt510:DECLANS.html"/>
            <ref src="vt52x:222"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="decvkset" mnemonic="decVKSET"
                 title="GIGI set-up data"
                 not-implemented="true" todo="true">
            <ctlseq>DCS <param-single/> r D...D ST</ctlseq>
            <ref src="vk100:93"/>
        </section>

        <section role="ctlseq" id="declban" mnemonic="DECLBAN"
                 title="Load Banner Message"
                 not-implemented="true" todo="true">
            <ctlseq>DCS <param-single/> r D...D ST</ctlseq>
            <ref src="vt510:DECLBAN.html"/>
            <ref src="vt52x:223"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="decvkpk" mnemonic="decVKPK"
                 title="GIGI program keys"
                 not-implemented="true" todo="true">
            <ctlseq>DCS <param-single/> s D...D ST</ctlseq>
            <ref src="vk100:93"/>
        </section>

        <section role="ctlseq" id="decvt105g" mnemonic="decVT105G"
                 title="Emulate VT105 graphics"
                 not-implemented="true" todo="true">
            <ctlseq>DCS <param-single/> t D...D ST</ctlseq>
            <ref src="vt125:91"/>
        </section>

        <!-- decPPTL - DCS u  Printwheel Parameter Table Load (LQP02) -->

        <section role="ctlseq" id="declff" not-implemented="true" todo="true"
                 mnemonic="DECLFF" title="Load Font File">
            <ctlseq>DCS 0 ; <param-single/> ; <param-single/> y </ctlseq>
            <termsupp first="ln01" series="print" additional=""/>
            <ref src="tphb87:776"/>
        </section>

        <section role="ctlseq" id="dectalk" not-implemented="true" todo="true"
                 mnemonic="decTALK" title="DECtalk Commands">
            <ctlseq>DCS <param-multi/> z </ctlseq>
            <termsupp first="dtc01" series="print" additional=""/>
            <ref src="dtc01:16"/>
        </section>


        <section role="ctlseq" id="decpak" mnemonic="DECPAK"
                 title="Program Alphanumeric Key"
                 not-implemented="true" todo="true">
            <ctlseq>DCS &quot; y D...D ST</ctlseq>
            <ref src="vt510:DECPAK.html"/>
            <ref src="vt52x:232"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="decpfk" mnemonic="DECPFK"
                 title="Program Function Key"
                 not-implemented="true" todo="true">
            <ctlseq>DCS &quot; x D...D ST</ctlseq>
            <ref src="vt510:DECPFK.html"/>
            <ref src="vt52x:238"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="decstui" mnemonic="DECSTUI"
                 title="Setting Terminal Unit ID"
                 not-implemented="true" todo="true">
            <ctlseq>DCS ! { D...D ST</ctlseq>
            <ref src="vt52x:307"/>
            <termsupp first="vt520" series="vt" additional="tt"/>
        </section>

        <section role="ctlseq" id="deccir" mnemonic="DECCIR"
                 title="Cursor Information Report (Terminal to Host)"
                 groups="isvt320">
            <ctlseq>DCS 1 $ u D...D ST</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-w:Ps-=-2.1E5C"/>
            <ref src="070:455"/>
            <ref src="wy370:141"/>
            <ref src="vt340:224"/>
            <ref src="vt420:270"/>
            <ref src="vt510:DECCIR.html"/>
            <ref src="vt52x:184"/>
            <termsupp first="vt340" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>
                Produced in response to a
                <a href="#decrqpsr">Presentation State Request (DECRQPSR)</a>,
                the Cursor Information Report contains detailed information
                about the curosr including:
            </p>
            <ul>
                <li>Coordinates (Y, X, Page)</li>
                <li>Reverse video, blink, underline, bold and protected
                    attributes</li>
                <li>last column flag (auto-wrap pending), SS3 pending,
                    SS2 pending, DECOM setting</li>
                <li>Character sets currently invoked into GL and GR</li>
                <li>Sizes of G0, G1, G2 and G3 (94 or 96 characters)</li>
                <li>Character sets designated into G0, G1, G2, and G3</li>
            </ul>
            <p>The encoding a little quite complex so best to check DEC STD 070
                or the VT420 manual (The VT520 and VT52x manuals don't cover it)
                for the full details. But in summary, D...D is <tt>Pr ; Pc ; Pp ; Srend ; Satt ; Sflag ; Spgl ; Spgr ; Scss ; Sdesig</tt> where:
            </p>
            <ul>
                <li>Pr and Pc are the row and column the cursor is currently on</li>
                <li>Pp is the page the cursor is currently on</li>
                <li>Srend is a single byte in the ASCII range where bit 1
                    indicates bold, bit 2 is underline, bit 3 is blink,
                    bit 4 is reverse video, and bit 5 is invisible.
                </li>
                <li>Satt is a single byte in the ASCII range where bit 1
                    indicates if the protected attribute is set</li>
                <li>Sflag is a single byte in the ASCII range where bit 1
                    indicates <a href="#decom">DECOM</a> is set,
                    bit 2 indicates <a href="ssg2l">SS2</a> is pending,
                    bit 3 indicates <a href="ssg3l">SS3</a> is pending,
                    and bit 4 indicates the last column flag is set.
                </li>
                <li>Spgl is a number from 0 to 3 indicating which of G0, G1, G2 or G3 is invoked into GL</li>
                <li>Spgr is a number from 0 to 3 indicating which of G0, G1, G2 or G3 is invoked into GR</li>
                <li>Scss is a single byte in the ASCII range where bits 1-4
                    indicate if G0-G3 is a 96-character character set (bit is set)
                    or a 94-character character set (bit is cleared)
                </li>
                <li>Sdesig are the intermediate and final characters for the
                    character sets designed as G0 through G3
                </li>
            </ul>
            <p>
                For Srend, Satt, Sflag and Scss bit 8 is always cleared and bit
                7 is always set. And bit 6 indicates another byte of information
                follows (K95 never sends additional bytes, so never sets this
                bit). Its not clear if any DEC terminal sets bit 6 either.
            </p>
            <p>For example, a Cursor Information Report might look like:
                <tt><cc>DCS</cc> 1 $ u 1 ; 1 ; 1 ; @ ; @ ; @ ; 0 ; 2 ; N ; BAAA <cc>ST</cc></tt>
            </p>

        </section>

        <section role="ctlseq" id="dectabsr" mnemonic="DECTABSR"
                 title="Tab Stop Report (Terminal to Host)"
                 groups="isvt320">
            <ctlseq>DCS 2 $ u D...D ST</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-w:Ps-=-2.1E5C"/>
            <ref src="070:459"/>
            <ref src="wy370:144"/>
            <ref src="vt340:230"/>
            <ref src="vt420:276"/>
            <ref src="vt510:DECTABSR.html"/>
            <ref src="vt52x:311"/>
            <termsupp first="vt340" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>Produced in response to a
                <a href="#decrqpsr">Presentation State Request (DECRQPSR)</a>,
                the Tab Stop Report contains the positions of all horizontal tab
                stops. <tt>D...D</tt> consists of column numbers separated by the
                forward slash character (/).
            </p>
            <p>
                For example:
                <tt><cc>DCS</cc> 2 $ u 9 / 17 / 25 / 33 / 41 / 49 / 57 / 65 / 73 <cc>ST</cc></tt>
            </p>
        </section>

        <section role="ctlseq" id="k95link" mnemonic="K95LINK"
                 title="Kermit 95 Hyperlink Extension"
                 badges="vt320 vt320pc wy370 xterm k95">
            <ctlseq>
                DCS <param-single/> + m <param-text/> ST
            </ctlseq>
            <p>Kermit 95 Hyperlink Extension. This pre-dates the now widely
                implemented OSC 8 hyperlink escape sequence, but it works much the same
                way—you specify a destination for the hyperlink and some text. Where it
                differs from OSC 8 is that you can specify the type of hyperlink with both
                URI and UNC path destinations supported.</p>
            <p>The parameter <param-single/> specifies the type of link - a
                value of 1 indicates a URI to be opened in a browser (e.g.,
                https://www.kermitproject.com), while a value of 2 indicates a UNC path
                to be opened in the file manager or the application associated with the
                file specified. A value of 0 is used to terminate a hyperlink.
            </p>
            <p>The second parameter, <param-text/>, is the destination in
                wrapped in quotes.
            </p>

            <section role="text" id="k95link-examples" title="Examples">
                <p>To start a hyperlink to <tt>https://www.kermitproject.com</tt>, issue the
                    following sequence which begins the hyperlink and sets the destination:</p>
                <pre>DCS 1 + m " h t t p s : / / w w w . k e r m i t p r o j e c t . c o m " ST</pre>
                <p>Then send the text for the hyperlink:</p>
                <pre>K e r m i t   P r o j e c t   W e b s i t e</pre>
                <p>Then terminate the hyperlink with:</p>
                <pre>DCS 0 + m ST</pre>

                <p>Linking to a UNC path is much the same:</p>
                <pre>DCS 2 + m " \ \ m y s e r v e r \ s h a r e d " ST</pre>
                <p>Then send the text for the hyperlink:</p>
                <pre>S h a r e d   F i l e s</pre>
                <p>Then terminate the hyperlink with:</p>
                <pre>DCS 0 + m ST</pre>
            </section>
        </section>

        <section role="ctlseq" id="decrqss" mnemonic="DECRQSS"
                 title="Request Selection or Setting"
                 badges="vt320 vt320pc wy370 xterm k95">
            <ref src="070:451"/>
            <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
            <ref src="vt340:240"/>
            <ref src="vt420:289"/>
            <ref src="vt510:DECRQSS.html"/>
            <ref src="vt52x:266"/>
            <ref src="vws:112"/>
            <ref src="wy370:145"/>
            <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
            <implchk std070="true"/>
            <ctlseq>
                DCS $ q <param-text/> ST
            </ctlseq>
            <p>
                <tt>D...D</tt> specifies the setting or selection being
                requested - this usually consts of the final characters from
                whatever control sequence makes the setting or selection.
            </p>
            <p>For example, to request the current SGR selection:</p>
            <pre>DCS $ q m ST</pre>

            <p>And the response, DECRPSS, would be in the form</p>
            <pre>DCS Ps $ r D...D ST</pre>
            <p>
                The parameter <param-single/> in the response indicates if the
                original request was valid (1) or invalid (0) as described in
                DEC-STD-070. Despite what the VT320, VT420, VT510 and VT525
                manuals say, this behavior is indeed correct. The VT320 manual
                got it the wrong way round, and the mistake was never caught,
                instead being carried forward all the way to the very end.
            </p>
            <p>
                If the request was valid, <tt>D...D</tt> will contain the
                response.
            </p>

            <p>
                For the earlier example requesting the current SGR selection,
                Kermit 95s response might be the following if bold, italic, and
                underline were all on:
            </p>
            <pre>DCS 1 $ r 0 ; 1 ; 3 ; 4 m ST</pre>

            <!--
                Not implemented from the VT520/VT525 manual
                    DECCRTST    - q         CRT Saver Timer
                    DECSEST     - r         Energy Save Timing
                    DECARR      - p         Select Auto Repeat Rate
                    DECSCP      * u         Select Communication Port
                    DECSCS      * r         Select Communication Speed
                    DECSDPT     ( p         Select Digital Printed Data Type
                    DECSDDT     $ q         Select Disconnect Delay Time
                    DECSFC      * s         Select Flow Control Type
                    DECSPRTT    $ s         Select Printer Type
                    DECSPPCS    * p         Select ProPrinter Character Set
                    DECSSL        p         Select Set-Up Language
                    DECSZS      , {         Select Zero Symbol
                    DECSKCV    SP r         Set Key Click Volume
                    DECSLCK    SP v         Set Lock Key Style
                    DECSMBV    SP u         Set Margin Bell Volume
                    DECSPP      + w         Set Port Parameter
                    DECSTRL     " u         Set Transmit Rate Limit
                    DECSWBV    SP t         Set Warning Bell Volume
                    DECTME     SP ~         Terminal Mode Emulation
               Not implemented from xterm
                    XTQFMTKEYS > Pm f
                    XTQMODKEYS > Pm m
                    XTSMTITLE  > Pm t
            -->

            <section role="parameter" id="decrqss-sgr" mnemonic="SGR"
                     title="Set Graphic Rendition">
                <ctlseq><param-text/> = m</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt340:240"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <termsupp first="vt510" series="vt" additional="tt"/>
                <implchk std070="true"/>
                <p>
                    Returns currently <a href="#sgr">selected graphic rendition</a>.
                    Only the following are currently reported:
                    <a href="#sgr-0">0</a>, <a href="#sgr-1">1</a>,
                    <a href="#sgr-2-dim">2 (dim)</a>, <a href="#sgr-3">3</a>,
                    <a href="#sgr-4">4</a>, <a href="#sgr-5-sb">5 (slow blink)</a>,
                    <a href="#sgr-7-rv">7 (reverse video)</a>, <a href="#sgr-8">8</a>,
                    <a href="#sgr-30">30-37</a>, <a href="#sgr-38-rgb">38 (rgb)</a>,
                    <a href="#sgr-38-ic">38 (indexed color)</a>,
                    <a href="#sgr-40">40-47</a>, <a href="#sgr-48-rgb">48 (rgb)</a>,
                    <a href="#sgr-48-ic">48 (indexed color)</a>,
                    <a href="#sgr-90">90-97</a>, <a href="#sgr-100">100-107</a>.
                </p>
            </section>
            <section role="parameter" id="decrqss-decsca" mnemonic="DECSCA"
                     title="Set Character Attribute">
                <ctlseq><param-text/> = &quot; q</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <ref src="vt340:240"/>
                <ref src="wy370:76"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt510 tt"/>
                <p>
                    Responds with the current state of <a href="#decsca">DECSCA</a>.
                    For example, if DECSCA is set to Designate Character
                    Erasable (2), then the response will be: <tt><cc>DCS</cc> 1 $ r 1 " q <cc>ST</cc></tt>
                </p>
            </section>
            <section role="parameter" id="decrqss-decscl" mnemonic="DECSCL"
                     title="Set Conformance Level">
                <ctlseq><param-text/> = &quot; p</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <ref src="vt340:240"/>
                <ref src="wy370:74"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt510 tt"/>
                <p>Reports the conformance level set with <a href="#decscl">DECSCL</a>,
                    the result of which <em>may</em> be non-obvious!
                </p>
                <p>
                    A real DEC VT520 has two conformance levels: VT100 mode, and
                    VT520 mode. So setting the conformance level to 62, 63, 64 or 65
                    will result in the conformance level being set to 65 giving you
                    a response of <tt><cc>DCS</cc> 1 $ r 6 5 ; 1 " p <cc>ST</cc></tt> if using 7-bit
                    controls. And if you set the conformance level to 61 (VT100),
                    a real VT520 will not respond to DECRQSS because a real VT100
                    wouldn't.
                </p>
                <p>
                    As a result you'll only get a response on a VT320 or higher,
                    and the conformance level will reflect the chosen terminal
                    type. The only part of this response you can actually change
                    via DECRQSS is the 8-bit/7-bit controls setting.
                </p>
            </section>
            <section role="parameter" id="decrqss-decsscls" mnemonic="DECSSCLS"
                     title="Scroll Speed">
                <ctlseq><param-text/> = SP p</ctlseq>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>
                    Reports the current <a href="#decsscls">DECSSCLS</a>
                    setting - the scroll mode and speed. A response for Jump
                    Scroll might look like <tt><cc>DCS</cc> 1 $ r 9 SP [q] <cc>ST</cc></tt>
                    (where SP is the space character)
                </p>
            </section>
            <section role="parameter" id="decrqss-decscusr" mnemonic="DECSCUSR"
                     title="Set Cursor Style">
                <ctlseq><param-text/> = SP q</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <termsupp first="vt510" series="vt" additional="tt"/>
                <p>
                    Reports the current <a href="#decslpp">DECSCUSR</a> setting -
                    the cursor style. A response for a blinking block, for example,
                    looks like <tt><cc>DCS</cc> 1 $ r 1 SP q <cc>ST</cc></tt> (where SP is the space
                    character)
                </p>
            </section>
            <section role="parameter" id="decrqss-decswbv" mnemonic="DECSWBV"
                     title="Set Waring Bell Volume" badges="vt520 k95">
                <ctlseq><param-text/> = SP t</ctlseq>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:267"/>
                <termsupp first="vt510" series="vt" additional="tt"/>
                <p>
                    Reports the current <a href="#decswbv">DECSWBV</a> setting.
                    If the bell is off, 1 is reported. If the bell volume is
                    high or the Audible bell type is something other than
                    BEEP or SYSTEM-SOUNDS then 8 is reported, otherwise 4.
                </p>
                <p>
                    A report for a high warning bell volume might look like:
                    <tt><cc>DCS</cc> 1 $ r 8 SP t <cc>ST</cc></tt> (where SP is the space
                    character)
                </p>
            </section>
            <section role="parameter" id="decrqss-decstbm" mnemonic="DECSTBM"
                     title="Set Top and Bottom Margins">
                <ctlseq><param-text/> = r</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <ref src="vt340:240"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt510 tt"/>
                <p>
                    Reports the current <a href="#decstbm">DECSTBM</a> setting.
                    For example, if the top margin is 5 and the bottom margin
                    is 20 the response would be: <tt><cc>DCS</cc> 1 $ r 5 ; 2 0 r <cc>ST</cc></tt>
                </p>
            </section>
            <section role="parameter" id="decrqss-decslrm" groups="isvt420"
                     mnemonic="DECSLRM" title="Set Left and Right Margins"
                     badges="k95 xterm">
                <ctlseq><param-text/> = s</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <termsupp first="vt420" series="vt" additional="tt"/>
                <implchk std070="true"/>
                <p>Reports the current <a href="#decslrm">DECSLRM</a> setting -
                    the left and right margins of the current page. For example:
                </p>
                <pre><cc>DCS</cc>1$r1;80s<cc>>ST</cc></pre>
            </section>
            <section role="parameter" id="decrqss-decslpp" mnemonic="DECSLPP"
                     title="Set Lines Per Page">
                <ctlseq><param-text/> = t</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <ref src="vt340:240"/>
                <ref src="vws:112"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>
                    Reports the current <a href="#decslpp">DECSLPP</a> setting -
                    the number of lines in the terminal screen. A response for
                    a terminal with a height of 24 lines looks
                    like: <tt><cc>DCS</cc> 1 $ r 2 4 t <cc>ST</cc></tt>
                </p>
                <p>
                    Unlike a real terminal, Kermit 95s terminal height is not
                    constrained to the options 24, 25, 36, 41, 42, 48, 52, 53
                    and 72. If your K95 terminal happens to be 10, or 100 lines
                    tall that is the number Kermit 95 will respond with.
                </p>
            </section>
            <section not-implemented="true" role="parameter" id="decrqss-decpro"
                     mnemonic="DECPRO" title="">
                <ctlseq><param-text/> = }</ctlseq>
                <ref src="vt340:240"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>Not Implemented: K95 responds with:</p>
                <pre>DCS 0 $ r } ST</pre>
            </section>
            <section role="parameter" id="decrqss-decscpp" mnemonic="DECSCPP"
                     title="Set Columns Per Page">
                <ctlseq><param-text/> = $ |</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <ref src="vt340:240"/>
                <ref src="vws:112"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>Kermit 95 responds with the width of the terminal Window. If,
                for example, the terminal is 132 columns wide, the response would
                be: <tt><cc>DCS</cc> 1 $ r 1 3 2 $ | <cc>ST</cc></tt></p>
                <p>
                    Unlike a real terminal, Kermit 95s terminal width is not
                    limited to being only 80 or 132 columns wide. If the
                    terminal window is some other width, such as 200 columns,
                    it will be reported here also.
                </p>
            </section>
            <section role="parameter" id="decrqss-decsasd" mnemonic="DECSASD"
                     title="Select Active Status Display">
                <ctlseq><param-text/> = $ }</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <ref src="vt340:240"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>
                    Responds with the current <a href="#decsasd">DECSASD</a>
                    selection. If DECSASD is set to Terminal (the default), the
                    response would be: <tt><cc>DCS</cc> 1 $ r 0 $ } <cc>ST</cc></tt>
                </p>
            </section>
            <section role="parameter" id="decrqss-decssdt" mnemonic="DECSSDT"
                     title="Select Status Line Type">
                <ctlseq><param-text/> = $ ~</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <ref src="vt340:240"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>
                    Responds with the current <a href="#decssdt">DECSSDT</a>
                    selection. If DECSSD is set to Indicator (the default), the
                    response would be: <tt><cc>DCS</cc> 1 $ r 1 $ ~ <cc>ST</cc></tt>
                </p>
            </section>
            <section role="parameter" id="decrqss-decstglt" mnemonic="DECSTGLT"
                     title="Select Color Lookup Table" groups="isvt525">
                <ctlseq><param-text/> = ) {</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="vt52x:266"/>
                <p>
                    Returns the current <a href="#decstglt">DECSTGLT</a>
                    setting.
                </p>
            </section>
            <section role="parameter" id="decrqss-decsace" mnemonic="DECSACE"
                     title="Select Attribute Change Extent">
                <ctlseq><param-text/> = * x</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <termsupp first="vt510" series="vt" additional="tt wt"/>
                <p>
                    Reports the current <a href="#decsace">DECSACE</a> setting.
                    For example, if DECSACE is set to 2 (Rectangle, exact) then
                    the response would be <tt><cc>DCS</cc> 1 $ r 2 * x <cc>ST</cc></tt>
                </p>
            </section>
            <section role="parameter" id="decrqss-decsnls"
                     mnemonic="DECSNLS" title="Set Number of Lines per Screen">
                <ctlseq><param-text/> = * |</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="070:451"/>
                <ref src="vt510:DECRQSS.html"/>
                <ref src="vt52x:266"/>
                <p>Reports the current number of lines in the terminal screen.
                    For example, if the terminal height was currently 30 lines,
                    the response would be:
                    <tt><cc>DCS</cc> 1 $ r 3 0 * | <cc>ST</cc></tt>
                </p>
            </section>
            <section role="parameter" id="decrqss-decac" mnemonic="DECAC"
                     title="Assign Color">
                <ctlseq><param-text/> = , |</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="vt52x:266"/>
                <termsupp first="vt525" series="vt" additional=""/>
                <p>
                    Reports one of the 16 color pairs set with
                    <a href="#decac">DECAC</a>. A parameter must be supplied
                    to specify <em>which</em> color pair to report. For
                    compatibility with other terminals, <!-- (Windows Terminal
                    specifically, and quite possibly the VT525 too) -->that
                    parameter can appear either before the '$q' or after it.
                    For example, both of the following will request the color
                    pair for Normal Text (1):
                </p>
                <pre>DCS 1 $ q , } ST
                    DCS $ q 1 , } ST</pre>
                <p>And the response might be something like: <tt><cc>DCS</cc> 1 $ r 1 ; 1 4 ; 4 , } <cc>ST</cc></tt></p>
            </section>
            <section role="parameter" id="decrqss-decspma" mnemonic="DECSPMA"
                     title="Session Page Memory Allocation" groups="isvt520">
                <ctlseq><param-text/> = , x</ctlseq>
                <ref src="vt52x:257"/>
                <p>
                    Reports the number of pages available
                </p>
                <pre><cc>DCS</cc> $ q , x <cc>ST</cc></pre>
                <p>And the response might be something like:
                    <tt><cc>DCS</cc> 1 $ r 9 ; 0 ; 0 ; 0 , x <cc>ST</cc></tt></p>
            </section>
            <section role="parameter" id="decrqss-decdlda" mnemonic="DECDLDA"
                     title="Down Line Load Allocation" groups="isvt520">
                <ctlseq><param-text/> = , z</ctlseq>
                <ref src="vt52x:257"/>
                <p>
                    Reports the number of DRCS font buffers available
                </p>
                <pre><cc>DCS</cc> $ q , z <cc>ST</cc></pre>
                <p>And the response might be something like:
                    <tt><cc>DCS</cc> 1 $ r 2 , z <cc>ST</cc></tt></p>
            </section>
            <section role="parameter" id="decrqss-decatc" mnemonic="DECATC"
                     title="Alternate Text Color" groups="isvt525">
                <ctlseq><param-text/> = , }</ctlseq>
                <ref src="xt:h4-Device-Control-functions:DCS-$-q-Pt-ST.DF5"/>
                <ref src="vt52x:266"/>
                <termsupp first="vt525" series="vt" additional=""/>
                <p>
                    Reports one of the 16 color pairs set with
                    <a href="#decatc">DECATC</a>. A parameter must be supplied
                    to specify <em>which</em> color pair to report. For
                    compatibility with other terminals, <!-- (Windows Terminal
                    specifically, and quite possibly the VT525 too) -->that
                    parameter can appear either before the '$q' or after it.
                    For example, both of the following will request the color
                    pair for Underline (3):
                </p>
                <pre>DCS 3 $ q , } ST
DCS $ q 3 , } ST</pre>
                <p>And the response might be something like: <tt><cc>DCS</cc> 1 $ r 3 ; 1 4 ; 4 , } <cc>ST</cc></tt></p>
            </section>
            <section not-implemented="true" role="parameter" id="decrqss-decttc"
                     mnemonic="DECTTC" title="">
                <ctlseq><param-text/> = |</ctlseq>
                <ref src="vt340:240"/>
                <ref src="wy370:132"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>Not Implemented: K95 responds with:</p>
                <pre>DCS 0 $ r | ST</pre>
            </section>
            <section not-implemented="true" role="parameter" id="decrqss-dectltc"
                     mnemonic="DECTLTC" title="">
                <ctlseq><param-text/> = ' s</ctlseq>
                <ref src="vt340:240"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>Not Implemented: K95 responds with:</p>
                <pre>DCS 0 $ r ' s ST</pre>
            </section>
            <section not-implemented="true" role="parameter" id="decrqss-decelf"
                     mnemonic="DECELF" title="Enable Local Functions">
                <ctlseq><param-text/> = + q</ctlseq>
                <p>Not Implemented: K95 responds with:</p>
                <pre>DCS 1 $ r + q ST</pre>
            </section>
            <section not-implemented="true" role="parameter" id="decrqss-decsmkr"
                     mnemonic="DECSMKR" title="Select modifier key reporting">
                <ctlseq><param-text/> = + r</ctlseq>
                <p>Not Implemented: K95 responds with:</p>
                <pre>DCS 1 $ r + r ST</pre>
            </section>
            <section not-implemented="true" role="parameter" id="decrqss-declfkc"
                     mnemonic="DECLFKC" title="Local Function Key Control">
                <ctlseq><param-text/> = = }</ctlseq>
                <p>Not Implemented: K95 responds with:</p>
                <pre>DCS 1 $ r = } ST</pre>
            </section>
        </section>

        <section role="ctlseq" id="xtgetxres" mnemonic="XTGETXRES"
                 title="Request resource values"
                 not-implemented="true" todo="true">
            <ctlseq>DCS + Q Pt ST</ctlseq>
            <ref src="xt:h4-Device-Control-functions:DCS-plus-Q-Pt-ST.F75"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="xtsettcap" mnemonic="XTSETTCAP"
                 title="Set Termcap/Terminfo Data"
                 not-implemented="true" todo="true">
            <ctlseq>DCS + p Pt ST</ctlseq>
            <ref src="xt:h4-Device-Control-functions:DCS-plus-p-Pt-ST.F94"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="xtgettcap" mnemonic="XTGETTCAP"
                 title="Request Termcap/Terminfo String"
                 not-implemented="true" todo="true">
            <ctlseq>DCS + q Pt ST</ctlseq>
            <ref src="xt:h4-Device-Control-functions:DCS-plus-q-Pt-ST.F95"/>
            <termsupp first="xterm" series="xt" additional="tt"/>
        </section>
    </section>
    <section toc="true" role="text" id="s_csi"  formats="html:document"
             title="Functions using CSI, ordered by the final character(s)">

        <p>
            The format for Control Sequences introduced by CSI is specified by
            ECMA-48 section 5.4. For convenience, a quick summary is included
            here.
        </p>

        <p>
            The format of a Control Sequence is <tt><cc>CSI</cc> P...P I...I F</tt>
            where <tt>P...P</tt> is the parameter string, <tt>I...I</tt> is
            zero or more intermediate characters, and <tt>F</tt> is the final
            character.
        </p>

        <p>
            The parameter string consists of only the characters
            <tt>0123456789:;&lt;=&gt;?</tt> (digits, colon, semicolon, less than,
            equals, greater than and question mark). The format of parameter
            strings starting with <tt>&lt;=&gt;?</tt> is not specified by ECMA-48
            - these are for private/experimental use. The standard does
            <em>not</em> say that it affects the interpretation of the
            intermediate bytes - a control sequence with the final character
            <tt>h</tt> and no intermediate characters would be Set Mode
            regardless of what character appeared at the start of the parameter
            string.
        </p>
        <p>If the Parameter String does <em>not</em> start with one of <tt>&lt;=&gt;?</tt>
            then it consists of parameter substrings (groups of digits and the colon
            character) separated by the semicolon character. Parameter substrings
            can be empty, and leading zeros can be omitted if it wouldn't leave
            the parameter substring empty. The semicolon is used as a separator
            within parameter substrings with the meaning left up to the control
            sequence; EMCA-48 provides using it as a replacement for the decimal
            point in fractional numbers as an example use case (eg, representing
            4.3 as 4:3) but no control sequences specified by ECMA-48 use it for
            anything.
        </p>
        <p>
            For any given control sequence the number of parameters may either
            be fixed or variable. For
            control sequences taking variable parameter of parameters the order
            of parameters is not significant. ECMA-48 does not specify an upper
            limit for the number of parameters, but Kermit 95 does: 22.
        </p>
        <p>
            Intermediate characters can be any combination of <tt>!"#$%&amp;'()*+,-./</tt>
            and the Space character. ECMA-48 does not require there be
            only zero or one intermediate characters, but it considers it
            unlikely that more than one would be required.
        </p>
        <p>
            And the final character is an ASCII character in the range <tt>@</tt> through
            <tt>~</tt> (04/00 through 07/14, or character codes 64 through 126 decimal
            inclusive). ECMA-48 does not assign meaning to final characters in
            the range <tt>p</tt> through <tt>~</tt> (character codes 112
            through 126) and reserves these for private/experimental control
            sequences.
        </p>

        <!--
            ansiext: CSI =
            zdsext: CSI >
            kermext: CSI <
            private: CSI ?
        -->

        <!-- ######################### SP ######################### -->
        <section role="ctlseq" id="cub-sco" mnemonic="CUB"
                 badges="scoansi" title="Cursor Left (SCO)">
            <ctlseq>CSI <param-single/> SP</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>
                Cursor left <param-single/> columns. A comment notes that
                SCO ANSI is violating the rules by using SP as a final
                character. Clears the <a href="#lcf">Last Column Flag</a>.
            </p>
        </section>

        <!-- ######################### @ ######################### -->

        <section role="ctlseq" id="ich" mnemonic="ICH" title="Insert character" groups="isvt102 isansi">
            <ref src="e48:60"/>
            <ref src="070:397"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-@.1C80"/>
            <ref src="vt220:S4.11"/>
            <ref src="vt340:136"/>
            <ref src="vt420:174"/>
            <ref src="vt510:ICH.html"/>
            <ref src="vt52x:337"/>
            <ref src="wy370:125"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            <ctlseq>CSI <param-single/> @</ctlseq>
            <p>Insert <param-single/> characters.</p>
            <p>Resets the <a href="#lcf">Last Column Flag</a> for all emulations
                except VT520/K95.</p>
        </section>

        <section role="ctlseq" id="sl" mnemonic="SL" title="Scroll Left/Pan right">
            <ref src="e48:77"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-@.1D50"/>
            <ref src="vt340:178"/>
            <termsupp first="vt330" series="vt" additional="vt340 xt"/>
            <ctlseq>CSI <param-single/> SP @</ctlseq>
            <p>Scroll Left - Pan right <param-single/> columns</p>
        </section>

        <!-- ######################### A ######################### -->

        <section role="ctlseq" id="cuu" mnemonic="CUU" title="Cursor Up">
            <ref src="e48:51"/>
            <ref src="070:296"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-A.1C81"/>
            <ref src="vt100:CUU"/>
            <ref src="vt132:82"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:176"/>
            <ref src="vt420:202"/>
            <ref src="vt510:CUU.html"/>
            <ref src="vt52x:162"/>
            <ref src="wy370:119"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> A</ctlseq>
            <p>Cursor Up <param-single/> lines (default = 1).
                Clears the <a href="#lcf">Last Column Flag</a>.
                Affected by <a href="#decom">DECOM</a>.
            </p>

            <p badges="s97801">Ignored if outside scroll region</p>

            <p badges="scoansi at386 ansi">
                Does not clear the <a href="#lcf">Last Column Flag</a> if a parameter is supplied.
            </p>
        </section>
        <section role="ctlseq" id="sbc" mnemonic="SBC" title="Set Border Color (ANSI)" groups="isansi">
            <ctlseq>CSI = <param-single/> A</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>Set Border Color. <param-single/> contains the new
                color.</p>
        </section>

        <section role="ctlseq" id="ba80-ss" not-implemented="true" badges="ba80">
            <ctlseq>CSI = <param-single/> A</ctlseq>
            <section role="parameter" id="ba80-ss-0" title="Dead key mode off">
                <ctlseq><param-single/> = 0</ctlseq></section>
            <section role="parameter" id="ba80-ss-1" title="Dead key mode on">
                <ctlseq><param-single/> = 1</ctlseq></section>
            <section role="parameter" id="ba80-ss-2" title="Block start">
                <ctlseq><param-single/> = 2</ctlseq></section>
            <section role="parameter" id="ba80-ss-3" title="Block end">
                <ctlseq><param-single/> = 3</ctlseq></section>
        </section>
        <section role="ctlseq" id="srpl" mnemonic="SR" title="Scroll Right/Pan left">
            <ref src="e48:82"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-A.1D51"/>
            <ref src="vt340:178"/>
            <termsupp first="vt330" series="vt" additional="vt340 xt"/>
            <ctlseq>CSI <param-single/> SP A</ctlseq>
            <p>Scroll Right - Pan left <param-single/> columns.</p>
        </section>

        <!-- ######################### B ######################### -->
        <section role="ctlseq" id="cud" mnemonic="CUD" title="Cursor Down">
            <ref src="e48:50"/>
            <ref src="070:298"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-B.1C82"/>
            <ref src="vt100:CUD"/>
            <ref src="vt132:81"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:177"/>
            <ref src="vt420:202"/>
            <ref src="vt510:CUD.html"/>
            <ref src="vt52x:161"/>
            <ref src="wy370:119"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> B</ctlseq>
            <p>Cursor Down <param-single/> lines (default = 1).
                Clears the <a href="#lcf">Last Column Flag</a>.
                Affected by <a href="#decom">DECOM</a>.</p>
            <p badges="s97801">Ignored if outside scroll region</p>
            <p groups="isansi">
                The <a href="#lcf">Last Column Flag</a> is not cleared.
            </p>
        </section>
        <section role="ctlseq" mnemonic="GSM" title="Graphic Size Modification"
                not-implemented="true" todo="true">
            <ref src="e48:59"/>
            <ctlseq>CSI <param-single/> ; <param-single/> SP B</ctlseq>
        </section>
        <section role="ctlseq" id="sbp" title="Set Beep Frequency and Duration"
                 mnemonic="SBP" groups="isansi">
            <ctlseq>CSI = <param-single/> ; <param-single/> B</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>
                Comments note that K95 may not be handling
                the beep frequency correctly in some way ("??? this isn't correct").
            </p>
        </section>
        <section role="ctlseq" id="ba80-setc" title="Set Cursor" badges="ba80">
            <ctlseq>CSI = <param-single/> B</ctlseq>
            <p>Alters the cursor in one of the following ways:</p>
            <section role="parameter" id="ba80-setc-0" title="Cursor Off">
                <ctlseq><param-single/> = 0</ctlseq></section>
            <section role="parameter" id="ba80-setc-1" title="Cursor On">
                <ctlseq><param-single/> = 1</ctlseq></section>
            <section role="parameter" id="ba80-setc-2" title="Alternate Cursor (Block)">
                <ctlseq><param-single/> = 2</ctlseq></section>
            <section role="parameter" id="ba80-setc-3" title="Normal Cursor (Underline)">
                <ctlseq><param-single/> = 3</ctlseq></section>
        </section>

        <!-- ######################### C ######################### -->

        <section role="ctlseq" id="cuf" mnemonic="CUF" title="Cursor Forward">
            <ref src="e48:50"/>
            <ref src="070:300"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-C.1C83"/>
            <ref src="vt100:CUF"/>
            <ref src="vt132:82"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:176"/>
            <ref src="vt420:201"/>
            <ref src="vt510:CUF.html"/>
            <ref src="vt52x:161"/>
            <ref src="wy370:120"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> C</ctlseq>
            <p>Cursor Right <param-single/> times (default = 1) staying on the
            same line. Clears the <a href="#lcf">Last Column Flag</a> for all
            emulations except VT100/VT102</p>
        </section>
        <section role="ctlseq" mnemonic="GSS" title="Graphic Size Selection"
                 not-implemented="true" todo="true">
            <ref src="e48:59"/>
            <ctlseq>CSI <param-single/> SP C</ctlseq>
        </section>
        <section role="ctlseq" ctlseq="CSI = C" title="Close Virtual Window" badges="ba80" not-implemented="true">
            <p>Close Virtual Window</p>
        </section>
        <section role="ctlseq" id="scs" title="Set Cursor Height (ANSI)"
                 mnemonic="SCS" groups="isansi">
            <ctlseq>CSI = <param-single symbol="Pa"/> ; <param-single symbol="Pb"/> C</ctlseq>
            <termsupp series="sco" first="sco" additional="putty"/>
            <p>Set Cursor Height. If
                <param-single symbol="Pa"/> &gt; <param-single symbol="Pb"/> then
                the cursor is disabled. If <param-single symbol="Pb"/> -
                <param-single symbol="Pa"/> &lt;= 1, the cursor is set to underline.
                If <param-single symbol="Pb"/> -
                <param-single symbol="Pa"/> &lt; 10 then the cursor is set to half.
                Otherwise, the cursor is set to block.</p>
        </section>

        <!-- ######################### D ######################### -->
        <section role="ctlseq" id="cub" mnemonic="CUB" title="Cursor Backward">
            <ref src="e48:50"/>
            <ref src="070:302"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-D.1C84"/>
            <ref src="vt100:CUB"/>
            <ref src="vt132:81"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:176"/>
            <ref src="vt420:201"/>
            <ref src="vt510:CUB.html"/>
            <ref src="vt52x:161"/>
            <ref src="wy370:120"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> D</ctlseq>
            <p>Cursor left <param-single/> characters.
                Clears the <a href="#lcf">Last Column Flag</a>.</p>
        </section>
        <section role="ctlseq" mnemonic="FNT" title="Font Selection"
                 not-implemented="true" todo="true">
            <ref src="e48:58"/>
            <ctlseq>CSI <param-single/> ; <param-single/> SP D</ctlseq>
        </section>
        <section role="ctlseq" id="sbi" mnemonic="SBI"
                 title="Turn on/off background colour intensity (ANSI)" groups="isansi">
            <ctlseq>CSI = <param-single/> D</ctlseq>
            <termsupp series="sco" first="sco" additional="putty"/>
            <p>Turn on/off background color intensity</p>
            <!-- TODO: PuTTY implements this as changing cursor blink. -->
        </section>
        <section role="ctlseq" id="cub-ext" title="Cursor Backward">
            <ctlseq>CSI = <param-single/> D</ctlseq>
            <p>Cursor left <param-single/> times (default = 1) staying on the
            same line.</p>
        </section>

        <!-- ######################### E ######################### -->
        <section role="ctlseq" id="ba80-wsr" ctlseq="CSI E" title="Window Status Request (BA80)" badges="ba80">
            <p>Window Status Request. Responds with
                the format string:</p>
            <pre>CSI = D HHH : WWW ; 001 : 001 ; Lohn    D</pre>
            <p>
                Where HHH is the terminal height, and WWW is the terminal width.
            </p>
        </section>
        <section role="ctlseq" id="cnl" mnemonic="CNL" title="Cursor Next Line">
            <ref src="e48:49"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-E.1C85"/>
            <ref src="vt510:CNL.html"/>
            <ref src="vt52x:158"/>
            <ref src="wy370:121"/>
            <termsupp first="vt510" series="vt" additional="tt linux sco putty wt"/>
            <ctlseq>CSI <param-single/> E</ctlseq>
            <p>Moves the cursor down <param-single/> lines (default = 1). Unlike
                <a href="#nel">NEL</a>, when the cursor hits the bottom margin
                the page does <em>not</em> scroll. Clears the
                <a href="#lcf">Last Column Flag</a>.
                Affected by <a href="#decom">DECOM</a>.
            </p>
            <p>If the cursor is within the margins, or to the right of the left
                margin, the cursor will be placed at the left margin
                <param-single/> lines down. Otherwise the cursor will be placed
                at screen left <param-single/> lines down.
            </p>
        </section>
        <section role="ctlseq" mnemonic="TSS" title="Thin Space Specification"
                 not-implemented="true" todo="true">
            <ref src="e48:87"/>
            <ctlseq>CSI <param-single/> SP E</ctlseq>
        </section>
        <section role="ctlseq" id="ba80-wsrr" ctlseq="CSI = E" title="Window Status Request (BA80)" badges="ba80">
            <p>Window Status Request</p>
        </section>
        <section role="ctlseq" id="sbb" mnemonic="SBB" title="Set Blink (ANSI)" groups="isansi">
            <ctlseq>CSI = <param-single/> E</ctlseq>
            <termsupp series="sco" first="sco" additional="putty"/>
            <p>If <param-single/> is 0 then blink is simulated with bold
                background intensity, any other value enables true blink.
            </p>
        </section>
        <section role="ctlseq" id="aix-esl" ctlseq="CSI ? E" title="Erase status line (AIXTERM)" badges="aixterm">
            <p>Erase status line</p>
        </section>

        <!-- ######################### F ######################### -->
        <section role="ctlseq" id="cpl" mnemonic="CPL" title="Cursor Previous Line">
            <ref src="e48:49"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-F.1C86"/>
            <ref src="vt510:CPL.html"/>
            <ref src="vt52x:159"/>
            <ref src="wy370:121"/>
            <termsupp first="vt510" series="vt" additional="tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> F</ctlseq>
            <p>Cursor previous line <param-single/> times (default = 1)</p>
        </section>
        <section role="ctlseq" mnemonic="JFY" title="Justify"
                 not-implemented="true" todo="true">
            <ref src="e48:62"/>
            <ctlseq>CSI <param-multi/> SP F</ctlseq>
        </section>
        <section role="ctlseq" id="aix-rsl" ctlseq="CSI ? F" title="Return from status line (AIXTERM)" badges="aixterm">
            <p>Return from status line</p>
        </section>
        <section role="ctlseq" id="ba80-fvw" ctlseq="CSI = F" title="Fetch virtual window" not-implemented="true" badges="ba80">
            <p>Fetch virtual window from the background</p>
        </section>
        <section role="ctlseq" id="snf" title="Set Normal Foreground Color (ANSI)"
                 mnemonic="SNF" groups="isansi" badges="qansi">
            <ctlseq>CSI = <param-single/> F</ctlseq>
            <termsupp series="sco" first="sco" additional="putty"/>
            <p>Set Normal Foreground Color to <param-single/>.</p>
            <p>
                If the display is in reverse video mode (DECSCNM), in Kermit 95 beta 7 and
                earlier this clears the foreground color, and ORs <param-single/>
                with the existing background color. The resulting background color will
                not necessarily be the same as value supplied as <param-single/>,
                while the foreground color will be black. <em>This may be a bug!</em>
            </p>
            <p>
                With the addition of support for more than 16 colors, in reverse video mode
                it now sets the background color to <param-single/> while
                preserving the foreground color.
            </p>
        </section>

        <!-- ######################### G ######################### -->
        <section role="ctlseq" id="cha" mnemonic="CHA" title="Cursor Horizontal Absolute"
                 groups="ishft isansi isvt520 isxterm" badges="qansi linux">
            <ref src="e48:48"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-G.1C87"/>
            <ref src="vt510:CHA.html"/>
            <ref src="vt52x:157"/>
            <ref src="wy370:119"/>
            <termsupp first="vt510" series="vt" additional="tt linux sco xterm putty dtterm wt"/>
            <ctlseq>CSI <param-single/> G</ctlseq>
            <p>Synonym for <a href="#hpa">HPA</a>.</p>
        </section>
        <section role="ctlseq" mnemonic="SPI" title="Spacing Increment"
                 not-implemented="true" todo="true">
            <ref src="e48:81"/>
            <ctlseq>CSI <param-single/> ; <param-single/> SP G</ctlseq>
        </section>
        <section role="ctlseq" id="snb" title="Set Normal Background Color (ANSI)"
                 mnemonic="SNB" groups="isansi" badges="qansi">
            <ctlseq>CSI = <param-single/> G</ctlseq>
            <termsupp series="sco" first="sco" additional="putty"/>
            <p>Set Normal Background Color to <param-single/></p>
        </section>

        <!-- ######################### H ######################### -->
        <section role="ctlseq" id="cup" mnemonic="CUP" title="Cursor Position">
            <ref src="e48:50"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps-H.1D86"/>
            <ref src="070:304"/>
            <ref src="wy370:120"/>
            <ref src="vt100:CUP"/>
            <ref src="vt132:82"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:176"/>
            <ref src="vt420:200"/>
            <ref src="vt510:CUP.html"/>
            <ref src="vt52x:162"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <implchk std070="true"/>
            <ctlseq>CSI <param-single/> ; <param-single/> H</ctlseq>
            <p>Send cursor to row;column. Default is 1;1. Implementation is
            shared with <a href="#hvp">HVP</a>.
                Affected by <a href="#decom">DECOM</a>.</p>
            <p>Resets the <a href="#lcf">Last Column Flag</a> for all emulations
                except VT100/VT102.</p>
            <p badges="s97801">
                If DECSASD is set to the status line, it is reset to terminal.
            </p>
        </section>
        <section role="ctlseq" mnemonic="QUAD" title="QUAD"
                 not-implemented="true" todo="true">
            <ref src="e48:69"/>
            <ctlseq>CSI <param-multi/> SP H</ctlseq>
        </section>

        <section role="ctlseq" id="hft-hsl" ctlseq="CSI ? H" title="Hide status line" groups="ishft">
            <p>Hide status line</p>
        </section>
        <section role="ctlseq" id="ansi-rfc" title="Set Reverse Foreground Color"
                 mnemonic="SRF" groups="isansi">
            <ctlseq>CSI = <param-single/> H</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>Set Reverse Foreground Color to <param-single/></p>
        </section>

        <!-- ######################### I ######################### -->
        <section role="ctlseq" id="cht" mnemonic="CHT" title="Cursor Horizontal Tab">
            <ref src="e48:48"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-I.1C89"/>
            <ref src="vt510:CHT.html"/>
            <ref src="vt52x:158"/>
            <ref src="wy370:127"/>
            <termsupp first="vt510" series="vt" additional="tt wt"/>
            <ctlseq>CSI <param-single/> I</ctlseq>
            <p>Moves the cursor forward <param-single/> (default = 1) tab stops.
                This is equivalent to sending the specified number of
                <a href="#tab">HT (TAB)</a> characters.
            </p>
        </section>
        <section role="ctlseq" mnemonic="SSU" title="Select Size Unit"
                 not-implemented="true" todo="true">
            <ref src="e48:83"/>
            <ctlseq>CSI <param-single/> SP I</ctlseq>
        </section>
        <section role="ctlseq" id="ba80-input" ctlseq="CSI = I" title="Input (BA80)" badges="ba80" not-implemented="true">
            <p>Input</p>
        </section>
        <section role="ctlseq" id="srb" mnemonic="SRB"
                 title="Set Reverse background colour" groups="isansi">
            <ctlseq>CSI = <param-single/> I</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>Set Reverse background color to <param-single/></p>
        </section>
        <section role="ctlseq" id="ba80-sso" not-implemented="true" title="Screen saver off (BA80)" badges="ba80">
            <ctlseq>CSI = ? I</ctlseq>
            <ctlseq>CSI ? = I</ctlseq>
            <p>screen saver off</p>
        </section>

        <!-- ######################### J ######################### -->
        <section role="ctlseq" id="ed" mnemonic="ED" title="Erase in Display">
            <ctlseq>CSI <param-single/> J</ctlseq>
            <ref src="e48:55"/>
            <ref src="070:411"/>
            <ref src="wy370:124"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-J.1C8A"/>
            <ref src="vt100:ED"/>
            <ref src="vt132:92"/>
            <ref src="vt220:S4.12"/>
            <ref src="vt340:136"/>
            <ref src="vt420:175"/>
            <ref src="vt510:ED.html"/>
            <ref src="vt52x:334"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <p>Erases an area within the display (including attributes)</p>
            <p>Resets the <a href="#lcf">Last Column Flag</a> for all emulations
                except VT100/VT102.</p>
            <!-- TODO: When we do DECSLRM, we can do this too perhaps -->
            <p>For the SNI-97801 terminal type, K95 <em>should</em> only clear
                within the scroll region, but currently K95 ignores the left and
                right margin clearing entire lines when it shouldn't
            </p>
            <section role="parameter" id="ed-0" title="Clear to end of screen with Space">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="070:411"/>
                <ref src="e48:55"/>
                <ref src="wy370:124"/>
                <ref src="vt100:ED"/>
                <ref src="vt132:92"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:137"/>
                <ref src="vt420:175"/>
                <ref src="vt510:ED.html"/>
                <ref src="vt52x:334"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt sco putty dtterm"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-J:Ps-=-0.1DDC"/>
                <p badges="s97801">Only clears to end of scroll region</p>
            </section>
            <section role="parameter" id="ed-1" title="Clear to beginning of screen with Space">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="070:411"/>
                <ref src="e48:55"/>
                <ref src="wy370:124"/>
                <ref src="vt100:ED"/>
                <ref src="vt132:92"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:137"/>
                <ref src="vt420:175"/>
                <ref src="vt510:ED.html"/>
                <ref src="vt52x:334"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-J:Ps-=-1.1DDD"/>
                <p badges="s97801">Only clears to start of scroll region</p>
            </section>
            <section role="parameter" id="ed-2" title="Clear whole screen with Space">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="070:411"/>
                <ref src="e48:55"/>
                <ref src="wy370:124"/>
                <ref src="vt100:ED"/>
                <ref src="vt132:92"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:137"/>
                <ref src="vt420:175"/>
                <ref src="vt510:ED.html"/>
                <ref src="vt52x:334"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm" />
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-J:Ps-=-2.1DDE"/>
                <p>Clears within the cursors current screen area (terminal or status line),
                    the cursor is not moved</p>
                <p badges="s97801">If clearing within the terminal
                    area (not the status line), only the scroll region is cleared. The cursor
                    is not moved.</p>
                <p groups="isansi">Clears the entire screen, homes the cursor
                    and clears the <a href="#lcf">Last Column Flag</a>.</p>
            </section>
            <section role="parameter" id="ed-3xt" title="Erase Saved Lines"
                     badges="k95 xterm">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-J:Ps-=-3.1DDF"/>
                <termsupp first="xterm" series="xt" additional="linux putty"/>
                <p>
                    Erases scrollback while preserving the current contents of
                    the terminal screen.
                </p>
                <p>
                    Note that data formerly visible in scrollback is <em>not</em>
                    erased from memory, it is just rendered inaccessible via
                    scrollback and will eventually be overwritten by new data.
                </p>
            </section>
            <section role="parameter" badges="s97801" id="ed-3" title="Clear to end of screen with Space">
                <ctlseq><param-single/> = 3</ctlseq>
                <p>Clears to the end of the screen
                    staying within the scroll region</p>
            </section>
            <section role="parameter" badges="s97801" id="ed-4" title="Clear to beginning with NUL">
                <ctlseq><param-single/> = 4</ctlseq>
                <p>Fills to the beginning of the
                    screen with NUL staying within the scroll region. </p>
            </section>
            <section role="parameter" badges="s97801" id="ed-5" title="Clear whole screen with NUL">
                <ctlseq><param-single/> = 5</ctlseq>
                <p> Fills the current screen area
                    (terminal or status line) with NUL staying within the scroll region</p>
            </section>
            <section role="parameter" badges="s97801" id="ed-6" title="Clear to end of screen with space">
                <ctlseq><param-single/> = 6</ctlseq>
                <p>Fills to the end of the screen
                    with the space character staying within the scroll region.</p>
                <section role="text" not-implemented="true">
                    <p>
                    Additionally, attributes should
                    be reset to the last valid attribute (if attributes are not stored). K95 does
                    not do this—attributes are just reset to normal - same behavior as
                    <param-single/> = 0.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-7" title="Clear to beginning of screen with space">
                <ctlseq><param-single/> = 7</ctlseq>
                <p>Fills to the beginning of the screen
                    with the space character staying within the scroll region.</p>
                <section role="text" not-implemented="true">
                    <p>
                    Additionally, attributes should
                    be reset to the last valid attribute (if attributes are not stored). K95 does
                    not do this—attributes are just reset to normal - same behavior as
                    <param-single/> = 1.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-8" title="Clear whole screen with space">
                <ctlseq><param-single/> = 8</ctlseq>
                <p>Fills the whole screen
                    with the space character staying within the scroll region.</p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be reset to the last valid attribute (if attributes are not stored). K95 does
                        not do this—attributes are just reset to normal - same behavior as
                        <param-single/> = 2.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-9" title="Clear to end of screen with NUL">
                <ctlseq><param-single/> = 9</ctlseq>
                <p>
                    Fills to the end of the screen
                    with the NUL character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be reset to the last valid attribute (if attributes are not stored). K95 does
                        not do this—attributes are just reset to normal.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-10" title="Clear to beginning of screen with NUL">
                <ctlseq><param-single/> = 10</ctlseq>
                <p>
                    Fills to the beginning of the screen
                    with the NUL character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be reset to the last valid attribute (if attributes are not stored). K95 does
                        not do this—attributes are just reset to normal.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-11" title="Clear whole screen with NUL">
                <ctlseq><param-single/> = 11</ctlseq>
                <p>
                    Fills the whole screen
                    with the NUL character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be reset to the last valid attribute (if attributes are not stored). K95 does
                        not do this—attributes are just reset to normal.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-12" title="Clear to end of screen with space preserving attributes">
                <ctlseq><param-single/> = 12</ctlseq>
                <p>
                    Fills to the end of the screen
                    with the space character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be preserved. K95 resets attributes normal - same behavior as
                        <param-single/> = 0.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-13" title="Clear to beginning of screen with space preserving attributes">
                <ctlseq><param-single/> = 13</ctlseq>
                <p>
                    Fills to the beginning of the screen
                    with the space character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be preserved. K95 resets attributes normal - same behavior as
                        <param-single/> = 1.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-14" title="Clear whole screen with space preserving attributes">
                <ctlseq><param-single/> = 14</ctlseq>
                <p>
                    Fills the entire screen
                    with the space character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be preserved. K95 resets attributes normal - same behavior as
                        <param-single/> = 2.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-15" title="Clear to end of screen with NUL preserving attributes">
                <ctlseq><param-single/> = 15</ctlseq>
                <p>
                    Fills to the end of the screen
                    with the NUL character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be preserved. K95 resets attributes normal.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-16" title="Clear to beginning of screen with NUL preserving attributes">
                <ctlseq><param-single/> = 16</ctlseq>
                <p>
                    Fills to the beginning of the screen
                    with the NUL character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be preserved. K95 resets attributes normal.
                    </p>
                </section>
            </section>
            <section role="parameter" badges="s97801" id="ed-17" title="Clear whole screen with NUL preserving attributes">
                <ctlseq><param-single/> = 17</ctlseq>
                <p>
                    Fills the entire screen
                    with the NUL character staying within the scroll region.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes should
                        be preserved. K95 resets attributes normal.
                    </p>
                </section>
            </section>
        </section>
        <section role="ctlseq" mnemonic="PFS" title="Page Format Selection"
                 not-implemented="true" todo="true">
            <ref src="e48:66"/>
            <ctlseq>CSI <param-single/> SP J</ctlseq>
        </section>
        <section role="ctlseq" id="decsed" mnemonic="DECSED" title="Selective Erase in Display" >
            <ref src="070:417"/>
            <ref src="wy370:124"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-J.1CF6"/>
            <ref src="vt220:S4.12"/>
            <ref src="vt340:138"/>
            <ref src="vt420:178"/>
            <ref src="vt510:DECSED.html"/>
            <ref src="vt52x:283"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <ctlseq>CSI ? <param-single/> J</ctlseq>
            <p>Erases only characters that do not have the protected attribute
                set. Any existing visual attributes set by <a href="#sgr">SGR</a>,
                protection attributes, and line attributes are unaffected.
            </p>
            <section role="parameter" id="decsed-0" title="Selective erase to end of screen">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="wy370:124"/>
                <ref src="070:417"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-J:Ps-=-0.1E48"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:138"/>
                <ref src="vt420:178"/>
                <ref src="vt510:DECSED.html"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            </section>
            <section role="parameter" id="decsed-1" title="Selective erase to beginning of screen">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="wy370:124"/>
                <ref src="070:417"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-J:Ps-=-1.1E49"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:138"/>
                <ref src="vt420:178"/>
                <ref src="vt510:DECSED.html"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            </section>
            <section role="parameter" id="decsed-2" title="Selective erase all">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="wy370:124"/>
                <ref src="070:417"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-J:Ps-=-2.1E4A"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:138"/>
                <ref src="vt420:178"/>
                <ref src="vt510:DECSED.html"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            </section>
            <section role="parameter" id="decsed-3xt" badges="k95 xterm"
                     title="Selective Erase Saved Lines">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-J:Ps-=-3.1E4B"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    While the Xterm documentation calls this selective erase,
                    the actual implementation in xterm-409b is the same as for
                    <a href="#ed-3xt">ED-3</a> and K95 does the same.
                </p>
            </section>
        </section>
        <section role="ctlseq" id="SGF" mnemonic="SGF"
                 title="Set Graphic Foreground Color (ANSI)" groups="isansi">
            <ctlseq>CSI = <param-single/> J</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>
                Set Graphic Foreground Color to <param-single/>
            </p>
        </section>

        <section role="ctlseq" id="tt-era"
                 title="Erase rectangular area"
                 not-implemented="true" todo="true">
            <ctlseq>CSI &gt; 3 ;
                <param-single symbol="Ps1"/> ;
                <param-single symbol="Ps2"/> ;
                <param-single symbol="Ps3"/> ;
                <param-single symbol="Ps4"/> J
            </ctlseq>
            <termsupp first="tt" series="tt" additional="tt"/>
            <p>Tera-Term Extension? Ps1..Ps4 define rectangle: top-line border,
                left-column border, bottom line border, right-column border</p>
        </section>

        <section role="ctlseq" id="ba80-sson" title="Screen Saver On" badges="ba80" not-implemented="true">
            <ctlseq>CSI = ? J</ctlseq>
            <ctlseq>CSI ? = J</ctlseq>
            <p>Screen Saver On</p>
        </section>

        <!-- ######################### K ######################### -->
        <section role="ctlseq" id="el" mnemonic="EL" title="Erase in Line">
            <ref src="e48:42"/>
            <ref src="070:409"/>
            <ref src="wy370:125"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-K.1C8B"/>
            <ref src="vt100:EL"/>
            <ref src="vt132:92"/>
            <ref src="vt220:S4.12"/>
            <ref src="vt340:137"/>
            <ref src="vt420:176"/>
            <ref src="vt510:EL.html"/>
            <ref src="vt52x:334"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> K</ctlseq>
            <p>Erase in Line. Erases within a single line.</p>
            <p>Resets the <a href="#lcf">Last Column Flag</a> for all emulations
                except VT100/VT102.</p>
            <section role="parameter" id="el-0" title="Clear to end of line with space">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-K:Ps-=-0.1DDD"/>
                <ref src="wy370:125"/>
                <ref src="070:409"/>
                <ref src="e48:42"/>
                <ref src="vt100:EL"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:137"/>
                <ref src="vt420:176"/>
                <ref src="vt510:EL.html"/>
                <ref src="vt52x:334"/>
                <termsupp first="vt100" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt sco putty dtterm wt"/>
                <p>
                    Clears to the end of the line with the space character, and clears attributes.
                </p>
            </section>
            <section role="parameter" id="el-1" title="Clear to beginning of line with Space">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-K:Ps-=-1.1DDE"/>
                <ref src="wy370:125"/>
                <ref src="070:409"/>
                <ref src="e48:42"/>
                <ref src="vt100:EL"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:137"/>
                <ref src="vt420:176"/>
                <ref src="vt510:EL.html"/>
                <ref src="vt52x:334"/>
                <termsupp first="vt100" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>
                    Clears to the beginning of the line with the space character, and clears attributes.
                </p>
            </section>
            <section role="parameter" id="el-2" title="Clear whole cursor line with Space">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-K:Ps-=-2.1DDF"/>
                <ref src="wy370:125"/>
                <ref src="070:409"/>
                <ref src="e48:42"/>
                <ref src="vt100:EL"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:137"/>
                <ref src="vt420:176"/>
                <ref src="vt510:EL.html"/>
                <ref src="vt52x:334"/>
                <termsupp first="vt100" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>
                    Clears the entire current line with the space character, and clears attributes.
                </p>
            </section>
            <section role="parameter" id="el-3" title="Clear to end of line with NUL (SNI-97801)">
                <ctlseq><param-single/> = 3</ctlseq>
                <p>
                    Clears to the end of the line with the NUL character, and clears attributes.
                </p>
            </section>
            <section role="parameter" id="el-4" title="Clears to beginning of line with NUL (SNI-97801)">
                <ctlseq><param-single/> = 4</ctlseq>
                <p>
                    Clears to the beginning of the line with the NUL character, and clears attributes.
                </p>
            </section>
            <section role="parameter" id="el-5" title="Clears entire line with NUL (SNI-97801)">
                <ctlseq><param-single/> = 5</ctlseq>
                <p>
                    Clears the entire line with the NUL character, and clears attributes.
                </p>
            </section>
            <section role="parameter" id="el-6" title="Clear to end of line with Space (SNI-97801)">
                <ctlseq><param-single/> = 6</ctlseq>
                <p>
                    Clear to the end of the line with the space character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preset to the last valid SGR attribute (if attributes are not
                        stored). K95 instead clears attributes giving the same behaviour
                        <param-single/> = 0
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-7" title="Clear to beginning of line with Space (SNI-97801)">
                <ctlseq><param-single/> = 7</ctlseq>
                <p>
                    Clears to the beginning of the line with the Space character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preset to the last valid SGR attribute (if attributes are not
                        stored). K95 instead clears attributes giving the same behavior
                        as <param-single/> = 1
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-8" title="Clear entire line with Space (SNI-97801)">
                <ctlseq><param-single/> = 8</ctlseq>
                <p>
                    Clears the entire line with the Space character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preset to the last valid SGR attribute (if attributes are not
                        stored). K95 instead clears attributes giving the same behavior
                        as <param-single/> = 2
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-9" title="Clear to end of line with NUL (SNI-97801)">
                <ctlseq><param-single/> = 9</ctlseq>
                <p>
                    Clear to the end of the line with the NUL character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preset to the last valid SGR attribute (if attributes are not
                        stored). K95 instead clears attributes.
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-10" title="Clear to beginning of line with NUL (SNI-97801)">
                <ctlseq><param-single/> = 10</ctlseq>
                <p>
                    Clears to the beginning of the line with the NUL character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preset to the last valid SGR attribute (if attributes are not
                        stored). K95 instead clears attributes.
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-11" title="Clear entire line with NUL (SNI-97801)">
                <ctlseq><param-single/> = 11</ctlseq>
                <p>
                    Clears the entire line with the NUL character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preset to the last valid SGR attribute (if attributes are not
                        stored). K95 instead clears attributes.
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-12" title="Clear to end of line with Space (SNI-97801)">
                <ctlseq><param-single/> = 12</ctlseq>
                <p>
                    Clear to the end of the line with the Space character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preserved. K95 instead clears attributes resulting in the same
                        behavior as <param-single/> = 0.
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-13" title="Clear to beginning of line with Space (SNI-97801)">
                <ctlseq><param-single/> = 13</ctlseq>
                <p>
                    Clear to the beginning of the line with the Space character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preserved. K95 instead clears attributes resulting in the same
                        behavior as <param-single/> = 1.
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-14" title="Clears the entire line with Space (SNI-97801)">
                <ctlseq><param-single/> = 14</ctlseq>
                <p>
                    Clear the entire line with the Space character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preserved. K95 instead clears attributes resulting in the same
                        behavior as <param-single/> = 2.
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-15" title="Clear to end of line with NUL (SNI-97801">
                <ctlseq><param-single/> = 15</ctlseq>
                <p>
                    Clear to the end of the line with the NUL character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preserved. K95 instead clears attributes.
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-16" title="Clear to beginning of line with NUL (SNI-97801)">
                <ctlseq><param-single/> = 16</ctlseq>
                <p>
                    Clear to the beginning of the line with the NUL character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preserved. K95 instead clears attributes.
                    </p>
                </section>
            </section>
            <section role="parameter" id="el-17" title="Clear the entire line with NUL (SNI-97801)">
                <ctlseq><param-single/> = 17</ctlseq>
                <p>
                    Clear the entire line with the NUL character.
                </p>
                <section role="text" not-implemented="true">
                    <p>
                        Additionally, attributes
                        should be preserved. K95 instead clears attributes.
                    </p>
                </section>
            </section>
        </section>
        <section role="ctlseq" mnemonic="SHS" title="Select Character Spacing"
                 not-implemented="true" todo="true">
            <ref src="e48:77"/>
            <ctlseq>CSI <param-single/> SP K</ctlseq>
        </section>
        <section role="ctlseq" id="ba80-rfkl" ctlseq="CSI = K" title="Begin reading function key labels (BA80)" badges="ba80">
            <p>Begin reading function key labels</p>
        </section>
        <section role="ctlseq" id="sgb" mnemonic="SGB"
                 title="Set Graphic Background Color (ANSI)" groups="isansi">
            <ctlseq>CSI = <param-single/> K</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>Set Graphic Background Color to <param-single/></p>
        </section>
        <section role="ctlseq" id="tt-ech" not-implemented="true" todo="true"
                 title="Erase columns">
            <ctlseq>CSI &gt; 3 ; <param-single symbol="Ps1"/> ; <param-single symbol="Ps2"/> K</ctlseq>
            <termsupp first="tt" series="tt" additional="tt"/>
            <p>Tera-Term extension? Erase characters from Ps1 column through Ps2 column</p>
        </section>
        <section role="ctlseq" id="tt-dl" not-implemented="true" todo="true"
                 title="Draw line/set FG">
            <ctlseq>CSI &gt; 5 ; <param-single symbol="Ps1"/> K</ctlseq>
            <termsupp first="tt" series="tt" additional="tt"/>
            <p>Tera-Term extension? PS 3..6 draw line, 12=set FG color</p>
        </section>
        <section role="ctlseq" id="decsel" mnemonic="DECSEL" title="Selective Erase in Line" groups="isvt220">
            <ref src="070:414"/>
            <ref src="wy370:125"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-K.1CF7"/>
            <ref src="vt220:S4.12"/>
            <ref src="vt340:139"/>
            <ref src="vt420:179"/>
            <ref src="vt510:DECSEL.html"/>
            <ref src="vt52x:285"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <ctlseq>CSI ? <param-single/> K</ctlseq>
            <p>Erases only characters that do not have the protected attribute
                set. Any existing visual attributes set by <a href="#sgr">SGR</a>,
                protection attributes, and line attributes are unaffected.
            </p>
            <section role="parameter" id="decsel-0" title="Selective erase to end of line">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-K:Ps-=-0.1E49"/>
                <ref src="wy370:125"/>
                <ref src="070:414"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:139"/>
                <ref src="vt420:179"/>
                <ref src="vt510:DECSEL.html"/>
                <ref src="vt52x:285"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            </section>
            <section role="parameter" id="decsel-1" title="Selective erase to beginning of line">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-K:Ps-=-1.1E4A"/>
                <ref src="wy370:125"/>
                <ref src="070:414"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:139"/>
                <ref src="vt420:179"/>
                <ref src="vt510:DECSEL.html"/>
                <ref src="vt52x:285"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            </section>
            <section role="parameter" id="decsel-2" title="Selective erase entire line">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-K:Ps-=-2.1E4B"/>
                <ref src="wy370:125"/>
                <ref src="070:414"/>
                <ref src="vt220:S4.12"/>
                <ref src="vt340:139"/>
                <ref src="vt420:179"/>
                <ref src="vt510:DECSEL.html"/>
                <ref src="vt52x:285"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            </section>
        </section>

        <!-- ######################### L ######################### -->
        <section role="ctlseq" id="il" mnemonic="IL" title="Insert Line" groups="isvt102 isansi">
            <ref src="e48:61"/>
            <ref src="070:401"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-L.1C8C"/>
            <ref src="vt102:S2.2.13"/>
            <ref src="vt132:93"/>
            <ref src="vt220:S4.11"/>
            <ref src="vt340:135"/>
            <ref src="vt420:173"/>
            <ref src="vt510:IL.html"/>
            <ref src="vt52x:338"/>
            <ref src="wy370:126"/>
            <termsupp first="vt102" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> L</ctlseq>
            <p>Insert <param-single/> empty lines at the cursors location and
                send the cursor to the left margin. Lines below the cursor
                scroll down. If the cursor is outside the page margins, IL is
                ignored.
            </p>
        </section>
        <section role="ctlseq" mnemonic="SVS" title="Select Line Spacing"
                 not-implemented="true" todo="true">
            <ref src="e48:85"/>
            <ctlseq>CSI <param-single/> SP L</ctlseq>
        </section>
        <section role="ctlseq" id="ansi-fe" title="Fill mode on (ANSI)" groups="isansi" exclude-badges="scoansi">
            <ctlseq>CSI = <param-single/> L</ctlseq>
            <termsupp first="sco" series="sco" additional="putty"/>
            <p>Turn fill (erase?) mode on (use normal color) or off (use current color).</p>
        </section>
        <section role="ctlseq" id="sef" mnemonic="SEF"
                 title="Set Emulation Feature (SCO)" badges="scoansi">
            <ctlseq>CSI = <param-single/> L</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>
                Only two of these are currently implemented.
                <param-single/> = 6 turns off backwards compatibility mode,
                while <param-single/> = 7 turns it on. AT this time when
                enabled, backwards compatibility mode causes colors to be reset
                by SGR Select Primary Font and Display GL Control Characters as Graphic
                Characters.
            </p>
            <section style="group" role="group">
                <section role="parameter" not-implemented="true" title="New regions filled with the current attribute (default)">
                    <ctlseq><param-single/> = 0</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="New regions filled with the normal attribute">
                    <ctlseq><param-single/> = 1</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Disable iBCS2 compliance (default)">
                    <ctlseq><param-single/> = 2</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Enable iBCS2 compliance">
                    <ctlseq><param-single/> = 3</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Disable ANSI SGR0 interpretation (default)">
                    <ctlseq><param-single/> = 4</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Enable ANSI SGR0 interpretation">
                    <ctlseq><param-single/> = 5</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" id="sco-emu-6" title="Disable backwards compatibility mode (default)">
                    <ctlseq><param-single/> = 6</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" id="sco-emu-7" title="Enable backwards compatibility mode (resets margins too)">
                    <ctlseq><param-single/> = 7</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Cursor motion bound by region (default)">
                    <ctlseq><param-single/> = 8</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Cursor motion unbound">
                    <ctlseq><param-single/> = 9</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Enable 8-bit keyboard meta mode (default)">
                    <ctlseq><param-single/> = 10</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Disable 8-bit keyboard meta mode">
                    <ctlseq><param-single/> = 11</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Disable debugging for this screen (default)">
                    <ctlseq><param-single/> = 12</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Enable debugging for this screen (do not use)">
                    <ctlseq><param-single/> = 13</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Disable global video loop debugging (default)">
                    <ctlseq><param-single/> = 14</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Enable global video loop debugging (do not use)">
                    <ctlseq><param-single/> = 15</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Enable M6845 frame buffer optimization (default)">
                    <ctlseq><param-single/> = 16</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Disable M6845 frame buffer optimization (debugging only)">
                    <ctlseq><param-single/> = 17</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Disable using ESC for meta (high) bit">
                    <ctlseq><param-single/> = 20</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
                <section role="parameter" not-implemented="true" title="Enable using ESC for meta (high) bit">
                    <ctlseq><param-single/> = 21</ctlseq>
                    <termsupp series="sco" first="sco"/>
                </section>
            </section>
        </section>

        <!-- ######################### M ######################### -->
        <section role="ctlseq" id="dl" mnemonic="DL" title="Delete line" groups="isvt102 isansi">
            <ref src="e48:39"/>
            <ref src="070:403"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-M.1C8D"/>
            <ref src="vt102:S2.2.13"/>
            <ref src="vt132:91"/>
            <ref src="vt220:S4.11"/>
            <ref src="vt340:134"/>
            <ref src="vt420:172"/>
            <ref src="vt510:DL.html"/>
            <ref src="vt52x:326"/>
            <ref src="wy370:126"/>
            <termsupp first="vt102" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> M</ctlseq>
            <p>Delete <param-single/> line at the cursors location, and send the
                cursor to the left margin. Lines below the cursor scroll up. If
                the cursor is outside the page margins, DL is ignored.
            </p>
        </section>
        <section role="ctlseq" mnemonic="IGS" title="Identify Graphic Subrepertoire"
                 not-implemented="true" todo="true">
            <ref src="e48:61"/>
            <ctlseq>CSI <param-single/> SP M</ctlseq>
        </section>
        <section role="ctlseq" id="ba80-sl" ctlseq="CSI = M" title="Go to status line (BA80)" badges="ba80">
            <p>Go to status line</p>
        </section>
        <section role="ctlseq" id="ras" mnemonic="RAS" title="Report Color Attributes (ANSI)"
                 groups="isansi">
            <ctlseq>CSI = <param-single/> M</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>
                The response is the default background and foreground colors
                numbers separated by a space. The value of <param-single/>
                should be 0, 1 or 2. <param-single/> = 1 for the reverse color
                attribute, 0 or 2 for the normal attribute (2 should probably be
                the graphic attribute, but K95 doesn't do that currently).
            </p>
            <p>
                In versions of Kermit 95 supporting color palettes larger than
                16 colors, the current palette index will be returned exactly,
                so if a color > 15 is set, then a color > 15 will be returned.
                It is assumed that any application that sets a color outside the
                16-color range will handle receiving a color outside this range.
                Otherwise, for the best compatibility stick to 16-color or RGB values
                for <tt>SET TERMINAL COLOR TERMINAL</tt> when using ANSI emulation.
            </p>
            <p>
                In versions of Kermit 95 supporting 24-bit RGB color, if the
                default foreground or background color is a 24-bit RGB value,
                then the nearest color from the 16-color palette is returned
                regardless of the current palette setting.
            </p>
        </section>

        <!-- ######################### N ######################### -->
        <section role="ctlseq" id="hft-ef" mnemonic="EF" title="Erase Field" groups="ishft" badges="linux aaa">
            <ref src="e48:41"/>
            <ctlseq>CSI <param-single/> N</ctlseq>
            <p>Erase Field</p>
            <section style="group" role="group">
                <section role="parameter" id="hft-ef-0" title="Erase to End of Field (Cursor to tab stop)">
                    <ctlseq><param-single/> = 0</ctlseq>
                </section>
                <section role="parameter" id="hft-ef-1" title="Erase from Field Start (tab stop to cursor)">
                    <ctlseq><param-single/> = 1</ctlseq>
                </section>
                <section role="parameter" id="hft-ef-2" title="Erase All of the field (tab stop to tab stop)">
                    <ctlseq><param-single/> = 2</ctlseq>
                </section>
            </section>
        </section>

        <!-- ######################### O ######################### -->
        <section role="ctlseq" id="hft-ea" mnemonic="EA" title="Erase Area" groups="ishft" badges="linux aaa">
            <ref src="e48:54"/>
            <ctlseq>CSI <param-single/> O</ctlseq>
            <p>Erase Area</p>
            <section style="group" role="group">
                <section role="parameter" id="hft-ea-0" title="Erase to end of area (line)">
                    <ref src="e48:54"/>
                    <ctlseq><param-single/> = 0</ctlseq>
                </section>
                <section role="parameter" id="hft-ea-1" title="Erase from area start (line)">
                    <ref src="e48:54"/>
                    <ctlseq><param-single/> = 1</ctlseq>
                </section>
                <section role="parameter" id="hft-ea-2" title="Erase all of the area (line)">
                    <ref src="e48:54"/>
                    <ctlseq><param-single/> = 2</ctlseq>
                </section>
            </section>
        </section>
        <section role="ctlseq" mnemonic="IDCS" title="Identify Device Control String"
                 not-implemented="true" todo="true">
            <ref src="e48:61"/>
            <ctlseq>CSI <param-single/> SP O</ctlseq>
        </section>
        <section role="ctlseq" id="ba80-ovw" title="Open Virtual Window (BA80)" badges="ba80" not-implemented="true">
            <ctlseq>CSI = O Pa Pn1[:Pn2][;Pa Pn1[:Pn2]][...] O</ctlseq>
            <p>Open virtual window. Parameters are the dimensions, location
                and title of the virtual window
            </p>
            <!-- BA80 only:
                /* Open Virtual Window */
                /* Format is CSI = O Pa Pn1[:Pn2][;Pa Pn1[:Pn2]][...] O */
                /* Pa = 1 - Set Height:Width of virtual window */
                /* Pa = 2 - Set Row:Column of virtual window in relation to */
                /*          physical window */
                /* Pa = 4 - Name of the virtual Window (8 chars) */
                /*          default are 24:80, name is "Lohn    " */
            -->
        </section>

        <!-- ######################### P ######################### -->
        <section role="ctlseq" id="dch" mnemonic="DCH" title="Delete character" groups="isvt102 isansi">
            <ref src="e48:52"/>
            <ref src="070:399"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-P.1C90"/>
            <ref src="vt132:83"/>
            <ref src="vt220:S4.11"/>
            <ref src="vt340:135"/>
            <ref src="vt420:174"/>
            <ref src="vt510:DCH.html"/>
            <ref src="vt52x:167"/>
            <ref src="wy370:126"/>
            <termsupp first="vt102" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> P</ctlseq>
            <p>Delete <param-single/> characters.</p>
            <p>Resets the <a href="#lcf">Last Column Flag</a> for all emulations
                except VT100/VT102.</p>
        </section>

        <section role="ctlseq" id="ppa" mnemonic="PPA"
                 title="Page Position Absolute"
                 groups="isvt330 isvt420">
            <ctlseq>CSI <param-single/> SP P</ctlseq>
            <ref src="e48:67"/>
            <ref src="070:336"/>
            <ref src="vt340:124"/>
            <ref src="vt420:160"/>
            <ref src="vt510:PPA.html"/>
            <ref src="vt52x:346"/>
            <ref src="wy370:111"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>
                Moves the cursor to the specified page without changing the cursors
                position. If the specified page number is greater than the number
                of pages available, the last page is selected. If the page specified
                page number is less than 1, then the first page is selected.
            </p>
            <p>
                If no parameter is specified, PPA moves to page 1.
            </p>
            <p badges="k95">
                Not available while on the alternate screen.
            </p>
        </section>

        <section role="ctlseq" id="wyppa" mnemonic="WYPPA"
                 title="Address cursor to a specific page"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> SP P</ctlseq>
            <ref src="wy370:111"/>
        </section>

        <section role="ctlseq" id="xtpushcolors-a" mnemonic="XTPUSHCOLORS"
                 title="Push current dynamic- and ANSI-palette colors onto stack"
                 not-implemented="true" todo="true">
            <ctlseq>ESC # P</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-pound-P.1DF3"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="xtpushcolors-b" mnemonic="XTPUSHCOLORS"
                 title="Push current dynamic- and ANSI-palette colors onto stack"
                 not-implemented="true" todo="true">
            <ctlseq>ESC <param-multi/> # P</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-pound-Q.1EDE"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>

        <!-- ######################### Q ######################### -->
        <section role="ctlseq" id="aaa-see" mnemonic="SEE" title="Select Editing Extent" badges="aaa" not-implemented="true">
            <ref src="e48:74"/>
            <ctlseq>CSI <param-single/> Q</ctlseq>
            <p>Select Editing Extent</p>
        </section>

        <section role="ctlseq" id="ppr" mnemonic="PPR"
                 title="Page Position Relative"
                 groups="isvt330 isvt420">
            <ctlseq>CSI <param-single/> SP Q</ctlseq>
            <ref src="e48:67"/>
            <ref src="070:337"/>
            <ref src="vt340:125"/>
            <ref src="vt420:161"/>
            <ref src="vt510:PPR.html"/>
            <ref src="vt52x:347"/>
            <ref src="wy370:111"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>
                Moves the cursor forward the specified number of pages, without
                changing the cursors position. Attempts to move past the last
                available page will move to the last available page. The default
                is to move forward one page.
            </p>
            <p badges="k95">
                Not available while on the alternate screen.
            </p>
        </section>

        <section role="ctlseq" id="wyppr" mnemonic="WYPPR"
                 title="Display a following page"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> SP Q</ctlseq>
            <ref src="wy370:111"/>
        </section>

        <section role="ctlseq" id="xtpopcolors-a" mnemonic="XTPOPCOLORS"
                 title="Pop stack to set dynamic- and ANSI-palette colors"
                 not-implemented="true" todo="true">
            <ctlseq>CSI # Q</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-pound-Q.1DF4"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="xtpopcolors-b" mnemonic="XTPOPCOLORS"
                 title="Pop stack to set dynamic- and ANSI-palette colors"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-multi/> # Q</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-pound-Q.1EDE"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>

        <!-- ######################### R ######################### -->
        <section role="ctlseq" id="cpr" ctlseq="CSI R" mnemonic="CPR" title="Cursor Position Report">
            <ref src="e48:49"/>
            <ref src="070:308"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-n:Ps-=-6.1E06"/>
            <ref src="vt132:81"/>
            <ref src="vt510:CPR.html"/>
            <ref src="vt52x:159"/>
            <termsupp first="vt132" series="vt" additional="vt510"/>
            <p>This is sent to the host (see: DSR), not processed by the
                terminal. No action is performed on receipt of CSR R
            </p>
        </section>

        <section role="ctlseq" id="xtreportcolors" mnemonic="XTREPORTCOLORS"
                 title="Report current and number of entries on the palette stack"
                 not-implemented="true" todo="true">
            <ctlseq>CSI # R</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-pound-R.1DF5"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>

        <section role="ctlseq" id="ppb" mnemonic="PPB"
                 title="Page Position Backward"
                 groups="isvt330 isvt420">
            <ctlseq>CSI <param-single/> SP R</ctlseq>
            <ref src="e48:67"/>
            <ref src="070:338"/>
            <ref src="vt340:124"/>
            <ref src="vt420:160"/>
            <ref src="vt510:PPB.html"/>
            <ref src="vt52x:347"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>
                Moves the cursor back the specified number of pages, without
                changing the cursors position. Attempts to move past the first
                page will move to the first page. The default is to move back
                one page.
            </p>
            <p badges="k95">
                Not available while on the alternate screen.
            </p>
        </section>

        <section role="ctlseq" id="wyppb" mnemonic="WYPPB"
                 title="Display a preceding page"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> SP R</ctlseq>
            <ref src="wy370:111"/>
        </section>

        <section role="ctlseq" id="sco-dl" title="Delete lines (SCO)" badges="scoansi">
            <ctlseq>CSI <param-single/> $ R</ctlseq>
            <p>Delete lines—alternate form of <tt><cc>CSI</cc> <param-single/> M</tt></p>
        </section>
        <section role="ctlseq" id="sco-dl2" title="Delete lines (SCO)"
                badges="scoansi" not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> R</ctlseq>
            <p>Delete lines—alternate form of <tt><cc>CSI</cc> <param-single/> M</tt></p>
            <!-- TODO: The CSI Ps $ R variant is not mentioned below, but this is:
                http://osr600doc.xinuos.com/en/man/html.HW/screen.HW.html -->
        </section>
        <section role="ctlseq" id="ba80-rvw" title="Reset virtual window (BA80)" badges="ba80" not-implemented="true">
            <ctlseq>CSI = <param-single/> $ R</ctlseq>
            <p>Reset virtual window to the background</p>
        </section>

        <!-- ######################### S ######################### -->
        <section role="ctlseq" id="sni-su" title="Scroll Up / Pan Down" badges="s97801">
            <ref src="e48:85"/>
            <ctlseq>CSI <param-single/> S</ctlseq>
            <p>
                Scrolls the characters up <param-single/> lines. When not in
                &quot;RollMode&quot; it treats the line the cursor on as the
                bottom margin and scrolls the screen between there and the top
                margin <param-single/> lines.
            </p>
        </section>
        <section role="ctlseq" id="hft-su" title="Scroll Up / Pan Down" groups="ishft isansi">
            <ref src="e48:85"/>
            <ctlseq>CSI <param-single/> S</ctlseq>
            <termsupp first="sco" series="sco" additional=""/>
            <p>
                Scrolls the entire screen (excluding status line) up
                <param-single/> lines ignoring top and bottom margins.
            </p>
            <!-- TODO: This behaviour should only apply in *backwards compatibility*
                    mode. Otherwise it should obey top and bottom margins as below.
              -->
        </section>
        <section role="ctlseq" id="su" mnemonic="SU" title="Scroll Up / Pan Down"
                 groups="isvt320" exclude-badges="s97801">
            <ref src="e48:85"/>
            <ref src="070:346"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-S.1C93"/>
            <ref src="vt340:177"/>
            <ref src="vt420:203"/>
            <ref src="vt510:SU.html"/>
            <ref src="vt52x:361"/>
            <termsupp first="vt22z" series="vt" additional="vt330 vt340 vt420 vt510 tt putty dtterm wt"/>
            <ctlseq>CSI <param-single/> S</ctlseq>
            <p>
                Scrolls the characters up <param-single/> lines.
            </p>
            <p>
                It should be noted that the current implementation is not
                correct and is subject to change in the future. The correct
                behaviour would be more similar to operating the scroll bar - it
                is not supposed to alter any data on screen (like clearing lines).
            </p>
        </section>
        <section role="ctlseq" mnemonic="SPD" title="Select Presentation Directions"
                 not-implemented="true" todo="true">
            <ref src="e48:80"/>
            <ctlseq>CSI <param-single/> ; <param-single/> SP S</ctlseq>
        </section>
        <section role="ctlseq" id="aixterm-sl" ctlseq="CSI ? S" title="Show status line" badges="aixterm">
            <p>Show status line</p>
        </section>
        <section role="ctlseq" id="ba80-rsl" ctlseq="CSI = S" title="Return from Status Line" badges="ba80">
            <p>Return from Status Line</p>
        </section>

        <section role="ctlseq" id="xttitlepos" mnemonic="XTTITLEPOS"
                 title="Report position on title stack"
                 not-implemented="true" todo="true">
            <ctlseq>CSI # S</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-pound-S.1DF6"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="xtsmgraphics" mnemonic="XTSMGRAPHICS"
                 title="Set or request graphics attribute"
                 not-implemented="true" todo="true">
            <ctlseq>CSI ? <param-single symbol="Pi"/> ; <param-single symbol="Pa"/> ; <param-single symbol="Pv"/> S</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pi;Pa;Pv-S.1EE2"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>

        <!-- ######################### T ######################### -->
        <section role="ctlseq" id="sni-sd" title="Scroll Down / Pan Up" badges="s97801">
            <ref src="e48:73"/>
            <ctlseq>CSI <param-single/> T</ctlseq>
            <p>
                If the terminal is in Roll Mode, scroll down <param-single/> lines.
                If in scroll mode, the current cursor position is treated as the
                top margin and the screen between the cursor position and the bottom margin
                is scrolled down <param-single/> lines.
            </p>
        </section>
        <section role="ctlseq" id="hft-sd" title="Scroll Down / Pan Up" groups="ishft isansi">
            <ref src="e48:73"/>
            <ctlseq>CSI <param-single/> T</ctlseq>
            <termsupp first="sco" series="sco" additional=""/>
            <p>
                The entire screen is scrolled down <param-single/> lines
                ignoring top and bottom margins, with the top <param-single/>
                lines cleared to blanks. A comment notes "We don't support
                paged memory so it does nothing"
            </p>
            <!-- TODO: This behaviour should only apply in *backwards compatibility*
                    mode. Otherwise we should obey the top & bottom margins as below -->
        </section>
        <section role="ctlseq" id="sd" mnemonic="SD" title="Scroll Down / Pan Up" groups="isvt320">
            <ref src="e48:73"/>
            <ref src="070:347"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-T.1C94"/>
            <ref src="vt340:177"/>
            <ref src="vt420:204"/>
            <ref src="vt510:SD.html"/>
            <ref src="vt52x:354"/>
            <termsupp first="vt22z" series="vt" additional="vt330 vt340 vt420 vt510 tt putty dtterm wt"/>
            <ctlseq>CSI <param-single/> T</ctlseq>
            <p>
                Scroll down <param-single/> lines. The top
                <param-single/> lines are cleared to blanks.
            </p>
            <p>
                It should be noted that the current implementation is not
                correct and is subject to change in the future. The correct
                behaviour would be more similar to operating the scroll bar - it
                is not supposed to alter any data on screen (like clearing lines).
            </p>
        </section>
        <section role="ctlseq" id="xthimouse" mnemonic="XTHIMOUSE"
                 title="Begin highlight mouse tracking"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> ; <param-single/> ; <param-single/> T</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps;Ps;Ps-T.208C"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" mnemonic="DTA" title="Dimension Text Area"
                 not-implemented="true" todo="true">
            <ref src="e48:54"/>
            <ctlseq>CSI <param-single/> ; <param-single/> SP T</ctlseq>
        </section>
        <section role="ctlseq" id="xtrmtitle" mnemonic="XTRMTITLE"
                 title="Reset title mode features to defaults"
                 not-implemented="true" todo="true">
            <ctlseq>CSI &gt; <param-multi/> T</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Pm-T.1D96"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="aixterm-slc" title="Go to status line column (AIXTERM)" badges="aixterm">
            <ctlseq>CSI ? <param-single/> T</ctlseq>
            <p>Go to column <param-single/> of the status line. The status line
                is switched to host-writable if it isn't already.
            </p>
        </section>

        <!-- ######################### U ######################### -->
        <section role="ctlseq" id="sco-ris" mnemonic="RIS" ctlseq="CSI U" title="Reset Terminal (SCO)"
                 badges="scoansi">
            <p>Reset Terminal</p>
        </section>
        <section role="ctlseq" id="np" mnemonic="NP" title="Next Page"
                 groups="isvt330 isvt420">
            <ctlseq>CSI <param-single/> U</ctlseq>
            <ref src="e48:65"/>
            <ref src="070:332"/>
            <ref src="vt340:123"/>
            <ref src="vt420:158"/>
            <ref src="vt510:NP.html"/>
            <ref src="vt52x:345"/>
            <ref src="wy370:111"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>
                Moves the cursor to the home position on a following page. The
                parameter, <param-single/>, specifies how many pages to move
                forward. If not specified or a value of 0 is given then the
                cursor will move forward to the next page. Attempts to move past
                the last available page will place the cursor on the last page.
            </p>
            <p badges="k95">
                Not available while on the alternate screen.
            </p>
        </section>
        <section role="ctlseq" mnemonic="SLH" title="Set Line Home"
                 not-implemented="true" todo="true">
            <ref src="e48:78"/>
            <ctlseq>CSI <param-single/> SP U</ctlseq>
        </section>

        <!-- ######################### V ######################### -->
        <section role="ctlseq" id="pp" mnemonic="PP" title="Preceding Page"
                 groups="isvt330 isvt420">
            <ctlseq>CSI <param-single/> V</ctlseq>
            <ref src="e48:65"/>
            <ref src="070:334"/>
            <ref src="vt340:123"/>
            <ref src="vt420:159"/>
            <ref src="vt510:PP.html"/>
            <ref src="vt52x:346"/>
            <ref src="wy370:111"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>
                Moves the cursor to the home position on a preceding page. The
                parameter, <param-single/>, specifies how many pages to move
                backward. If not specified or a value of 0 is given then the
                cursor will move backward to the previous page. Attempts to move
                past the first available page will place the cursor on the first
                page.
            </p>
            <p badges="k95">
                Not available while on the alternate screen.
            </p>
        </section>
        <section role="ctlseq" id="er" mnemonic="ER" title="Erase in region (SCO)" badges="scoansi">
            <ctlseq>CSI <param-single/> V</ctlseq>
            <termsupp first="sco" series="sco" additional=""/>
            <p>Erase in region</p>
            <section role="parameter" id="sco-era-0" title="Clear to end of region">
                <ctlseq><param-single/> = 0</ctlseq>
                <p>
                    Clears to the end of the region with the space character and resets
                    attributes
                </p>
            </section>
            <section role="parameter" id="sco-era-1" title="Clear to beginning of region">
                <ctlseq><param-single/> = 1</ctlseq>
                <p>
                    Clears to the beginning of the region with the space character and resets
                    attributes
                </p>
            </section>
            <section role="parameter" id="sco-era-2" title="Clear whole region">
                <ctlseq><param-single/> = 2</ctlseq>
                <p>
                    Clears the whole scroll region with the space character and resets
                    attributes
                </p>
            </section>
        </section>
        <section role="ctlseq" mnemonic="SLL" title="Set Line Limit"
                 not-implemented="true" todo="true">
            <ref src="e48:78"/>
            <ctlseq>CSI <param-single/> SP V</ctlseq>
        </section>

        <!-- ######################### W ######################### -->
        <section role="ctlseq" id="hft-ctc" mnemonic="CTC" title="Cursor Tab Stop Control"  groups="ishft" badges="linux aaa">
            <ref src="e48:50"/>
            <ref src="wy370:126"/>
            <ctlseq>CSI <param-single/> W</ctlseq>
            <p>Cursor Tab Stop Control</p>
        </section>
        <section role="ctlseq" mnemonic="FNK" title="Function Key"
                 not-implemented="true" todo="true">
            <ref src="e48:58"/>
            <ctlseq>CSI <param-single/> SP W</ctlseq>
            <!-- terminal to host -->
        </section>

        <section role="ctlseq" id="decst8c" mnemonic="DECST8C"
                 title="Set Tab at Every 8 Columns" ctlseq="CSI ? 5 W"
                 badges="vt510 vt520 vt525 k95 xterm">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-5-W.1C75"/>
            <ref src="vt510:DECST8C.html"/>
            <ref src="vt52x:303"/>
            <termsupp first="vt510" series="vt" additional="wt"/>
            <p>
                Sets a tab stop every 8 columns starting with column 9. Tab
                stops are set out to 132 columns or the width of the terminal,
                which ever is greater.
            </p>
            <p>
                Note that that while this control sequence is documented as
                being specifically <tt><cc>CSI</cc> ? 5 W</tt> the VT520
                completely ignores the parameter and so Kermit 95 does too.
                Applications should still use the control sequence as documented
                and supply the parameter value of 5 as other terminals may
                behave differently.
            </p>
        </section>

        <!-- ######################### X ######################### -->
        <section role="ctlseq" id="ech" mnemonic="ECH" title="Erase Character"
                 groups="isvt220 ishft isansi" badges="linux aaa">
            <ref src="e48:55"/>
            <ref src="070:407"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-X.1C98"/>
            <ref src="vt220:S4.12"/>
            <ref src="vt340:138"/>
            <ref src="vt420:176"/>
            <ref src="vt510:ECH.html"/>
            <ref src="vt52x:333"/>
            <ref src="wy370:124"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt sco putty dtterm wt"/>
            <ctlseq>CSI <param-single/> X</ctlseq>
            <p>Erase <param-single/> characters</p>
        </section>
        <section role="ctlseq" mnemonic="SPQR" title="Select Print Quality and Rapidity"
                 not-implemented="true" todo="true">
            <ref src="e48:82"/>
            <ctlseq>CSI <param-single/> SP X</ctlseq>
        </section>

        <!-- ######################### Y ######################### -->
        <section role="ctlseq" id="hft-cvt" mnemonic="CVT" ctlseq="CSI Y"
                 title="Cursor Vertical Tab" not-implemented="true" groups="ishft">
            <ref src="e48:51"/>
            <p>Cursor Vertical Tab</p>
        </section>
        <section role="ctlseq" mnemonic="SEF" title="Sheet Eject and Feed"
                 not-implemented="true" todo="true">
            <ref src="e48:74"/>
            <ctlseq>CSI <param-single/> ; <param-single/> SP Y</ctlseq>
        </section>

        <!-- ######################### Z ######################### -->
        <section role="ctlseq" id="cbt" mnemonic="CBT" title="Cursor Backward Tabulation">
            <ref src="e48:48"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-Z.1C9A"/>
            <ref src="vt510:CBT.html"/>
            <ref src="vt52x:157"/>
            <termsupp first="vt510" series="vt" additional="tt sco putty wt"/>
            <ctlseq>CSI <param-single/> Z</ctlseq>
            <p>
                Moves active cursor position back <param-single/> tab stops.
                Clears the <a href="#lcf">Last Column Flag</a>.
            </p>
        </section>
        <section role="ctlseq" mnemonic="PEC" title="Presentation Expand or Contract"
                 not-implemented="true" todo="true">
            <ref src="e48:65"/>
            <ctlseq>CSI <param-single/> SP Z</ctlseq>
        </section>
        <section role="ctlseq" id="ansi-rc" ctlseq="CSI = Z" title="Reset colors (ANSI)" groups="isansi">
            <p>Reset colours</p>
        </section>


        <!-- ######################### [ ######################### -->
        <section role="ctlseq" not-implemented="true" groups="ishft"
                 mnemonic="SRS" id="srs" title="Select Reversed String">
            <ctlseq>CSI <param-single/> [</ctlseq>
            <ref src="e48:83"/>
            <p>
                Ps=0 is End Push,
                Ps=1 is Start Push.
            </p>
        </section>
        <section role="ctlseq" mnemonic="SSW" title="Set Space Width"
                 not-implemented="true" todo="true">
            <ref src="e48:84"/>
            <ctlseq>CSI <param-single/> SP [</ctlseq>
        </section>

        <!-- ######################### \ ######################### -->
        <section role="ctlseq" not-implemented="true" todo="true"
                 mnemonic="PTX" id="ptx" title="Parallel Texts">
            <ctlseq>CSI <param-single/> \</ctlseq>
            <ref src="e48:67"/>
        </section>
        <section role="ctlseq" mnemonic="SACS" title="Set Additional Character Separation"
                 not-implemented="true" todo="true">
            <ref src="e48:70"/>
            <ctlseq>CSI <param-single/> SP \</ctlseq>
        </section>

        <!-- ######################### ] ######################### -->
        <section role="ctlseq" not-implemented="true" groups="ishft" mnemonic="SDS"
                 id="sapv" title="Select Alternate Presentation Variant">
            <ctlseq>CSI <param-multi/> ]</ctlseq>
            <ref src="e48:73"/>
            <p>
                Select Alternate Presentation Variant (BIDI, Arabic
                numeric shapes, Hindi numeric shapes, symmetric swapping mode for
                directional characters, ...).
            </p>
        </section>
        <section role="ctlseq" badges="linux" id="linux-disp"
                 title="Linux display settings">
            <ctlseq>CSI <param-single/> ; <param-single/> ]</ctlseq>

            <section role="parameter" title="Set underline color">
                <ctlseq><param-single/> = 1 ; <param-single symbol="n"/></ctlseq>
                <p>
                    Sets color <param-single symbol="n"/> as the current underline
                    foreground color. In the GUI version of Kermit 95, this only
                    has an effect if true underline has been turned off with
                    <tt>SET TERMINAL ATTRIBUTE UNDERLINE OFF</tt>
                </p>
                <p>
                    Kermit 95 allows any indexed color valid in the current
                    color palette here, while the real linux console (as of
                    linux 6.1 at least) only supports the 16-color palette.
                </p>
            </section>
            <section role="parameter" title="Set dim color">
                <ctlseq><param-single/> = 2 ; <param-single symbol="n"/></ctlseq>
                <p>
                    Sets color <param-single symbol="n"/> as the current dim
                    foreground color. In both the GUI and Console versions
                    of Kermit 95, this only has an effect if the true dim
                    attribute has been turned off and set to a fixed color
                    rather than foreground intensity with <tt>SET TERMINAL
                    ATTRIBUTE DIM OFF COLOR</tt>.
                </p>
                <p>
                    Kermit 95 allows any indexed color valid in the current
                    color palette here, while the real linux console (as of
                    linux 6.1 at least) only supports the 16-color palette.
                </p>
            </section>
            <section role="parameter" title="Set current color pair as the default attribute">
                <ctlseq><param-single/> = 8</ctlseq>
                <p>
                    Makes the current foreground and background color the default
                    foreground and background color (the color that is restored
                    with <a href="#sgr-0">SGR-0</a>).
                </p>
            </section>
            <section role="group" style="group">
                <section role="parameter" not-implemented="true"
                         title="Set screen blank timeout to n minutes">
                    <ctlseq><param-single/> = 9 ; <param-single symbol="n"/></ctlseq>
                </section>
                <section role="parameter" not-implemented="true"
                         title="Set bell frequency in Hz">
                    <ctlseq><param-single/> = 10 ; <param-single symbol="n"/></ctlseq>
                </section>
                <section role="parameter" not-implemented="true"
                         title="Set bell duration in msec">
                    <ctlseq><param-single/> = 11 ; <param-single symbol="n"/></ctlseq>
                </section>
                <section role="parameter" not-implemented="true"
                         title="Bring specified console to the front">
                    <ctlseq><param-single/> = 12 ; <param-single symbol="n"/></ctlseq>
                </section>
                <section role="parameter" not-implemented="true" title="Unblank the screen">
                    <ctlseq><param-single/> = 13</ctlseq>
                </section>
                <section role="parameter" not-implemented="true"
                         title="Set the VESA power-down interval in minutes">
                    <ctlseq><param-single/> = 14 ; <param-single symbol="n"/></ctlseq>
                </section>
                <section role="parameter" not-implemented="true" title="Bring previous console to front">
                    <ctlseq><param-single/> = 15</ctlseq>
                </section>
                <section role="parameter" not-implemented="true"
                         title="Set cursor blink interval in msec">
                    <ctlseq><param-single/> = 16 ; <param-single symbol="n"/></ctlseq>
                </section>
            </section>
        </section>
        <section role="ctlseq" mnemonic="SAPV" title="select Alternative Presentation Variants"
                 not-implemented="true" todo="true">
            <ref src="e48:71"/>
            <ctlseq>CSI <param-multi/> SP ]</ctlseq>
        </section>

        <!-- ######################### ^ ######################### -->
        <section role="ctlseq" id="sd2" mnemonic="SD" title="Scroll Down">
            <ctlseq>CSI <param-single/> ^</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-%5E.1CDF"/>
            <p> Scroll Down <param-single/> lines. This was apparently an error
                in the first printed version of the ECMA-48 fifth edition and
                the initial PDF version from April 1998. The VT420,
                later PDF versions of the standard, and other terminals
                use <a href="#sd">CSI <param-single/> T</a>
            </p>
        </section>
        <section role="ctlseq" id="simd" mnemonic="SIMD" not-implemented="true"
                 todo="true" title="Select Implicit Movement Direction">
            <ctlseq>CSI <param-single/> ^</ctlseq>
            <ref src="e48:77"/>
        </section>
        <section role="ctlseq" mnemonic="STAB" title="Selective Tabulation"
                 not-implemented="true" todo="true">
            <ref src="e48:85"/>
            <ctlseq>CSI <param-single/> SP ^</ctlseq>
        </section>

        <!-- ######################### _ ######################### -->
        <section role="ctlseq" mnemonic="GCC" title="Graphic Character Combination"
                 not-implemented="true" todo="true">
            <ref src="e48:58"/>
            <ctlseq>CSI <param-single/> SP _</ctlseq>
        </section>

        <!-- ######################### ` ######################### -->
        <section role="ctlseq" id="hpa" mnemonic="HPA" title="Horizontal Position Absolute">
            <ctlseq>CSI <param-single/> `</ctlseq>
            <ref src="e48:59"/>
            <ref src="wy370:119"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-%60.1CCB"/>
            <ref src="vt510:HPA.html"/>
            <ref src="vt52x:335"/>
            <termsupp first="vt510" series="vt" additional="tt linux sco putty wt"/>
            <p>
                Moves active position to column <param-single/>.
                Obeys <a href="#decom">DECOM</a>.
                Clears the <a href="#lcf">Last Column Flag</a>.
            </p>
        </section>
        <section role="ctlseq" mnemonic="TATE" title="Tabulation Aligned Trailing Edge"
                 not-implemented="true" todo="true">
            <ref src="e48:86"/>
            <ctlseq>CSI <param-single/> SP `</ctlseq>
        </section>


        <!-- ######################### a ######################### -->
        <section role="ctlseq" id="hpr" mnemonic="HPR" title="Horizontal Position Relative">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-a.1CA1"/>
            <ref src="e48:59"/>
            <ref src="wy370:120"/>
            <ref src="vt510:HPR.html"/>
            <ref src="vt52x:335"/>
            <termsupp first="vt510" series="vt" additional="tt linux sco putty wt"/>
            <ctlseq>CSI <param-single/> a</ctlseq>
            <p>
                Horizontal Position Relative - moves active position
                <param-single/> characters to the right clearing the
                <a href="#lcf">Last Column Flag</a>. Only obeys the right margin
                if <a href="#decom">DECOM</a> is set. When the cursor hits the
                right margin (DECOM set) or right edge of the screen (DECOM
                reset) the cursor stops and does not wrap.
            </p>
        </section>
        <section role="ctlseq" mnemonic="TALE" title="Tabulation Aligned Leading Edge"
                 not-implemented="true" todo="true">
            <ref src="e48:86"/>
            <ctlseq>CSI <param-single/> SP a</ctlseq>
        </section>

        <!-- ######################### b ######################### -->
        <section role="ctlseq" id="rep" mnemonic="REP" title="Repeat" badges="qansi xterm k95">
            <ref src="e48:69"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-b.1CA2"/>
            <termsupp first="xterm" series="vt" additional="tt xterm putty wt"/>
            <ctlseq>CSI <param-single/> b</ctlseq>
            <p>Repeat previous character <param-single/> times.</p>
        </section>
        <section role="ctlseq" id="RCH" mnemonic="RCH" title="Repeat character" badges="scoansi aaa">
            <ctlseq>CSI <param-single symbol="Pc"/> ; <param-single symbol="Pn"/> b </ctlseq>
            <p>Repeat character <param-single symbol="Pc"/> <param-single symbol="Pn"/> times.</p>
        </section>
        <section role="ctlseq" mnemonic="TAC" title="Tabulation Aligned Centred"
                 not-implemented="true" todo="true">
            <ref src="e48:86"/>
            <ctlseq>CSI <param-single/> SP b</ctlseq>
        </section>

        <!-- ######################### c ######################### -->
        <section role="ctlseq" id="sni-ris" ctlseq="CSI c" title="Reset to Initial State" badges="s97801">
            <p>Resets the terminal</p>
        </section>
        <section role="ctlseq" id="ansi-ct" title="Set cursor type" groups="isansi">
            <ctlseq>CSI <param-single/> c</ctlseq>
            <p>
                Sets the cursor type. Cursor types are numbered from 0:
                underline, block, no cursor.
            </p>
        </section>
        <section role="ctlseq" id="da" mnemonic="DA" title="Device Attributes">
            <ref src="e48:51"/>
            <ref src="070:221"/>
            <ref src="wy370:137"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-c.1CA3"/>
            <ref src="vt100:DA"/>
            <ref src="vt132:82"/>
            <ref src="vt220:S4.17.1.1"/>
            <ref src="vt340:211"/>
            <ref src="vt420:251"/>
            <ref src="vt510:DA1.html"/>
            <ref src="vt52x:163"/>
            <ref src="vt1000:190"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            <ctlseq>CSI <param-single/> c</ctlseq>
            <p>
                Device Attributes (Primary). Kermit 95s response depends on the selected
                terminal type. Some of the VT-compatible responses are included below:
            </p>
            <!-- The entries for this table live ckoco3.c, tt_info (third column) -->
            <table>
                <tr>
                    <th>Terminal Type</th>
                    <th>Response</th>
                </tr>
                <tr>
                    <td>HFT, AIXTERM, VT100</td>
                    <td>CSI ? 1 ; 2 c</td>
                </tr>
                <tr>
                    <td>VT102</td>
                    <td>CSI ? 6 c</td>
                </tr>
                <tr>
                    <td>VT220</td>
                    <td>CSI ? 6 2 ; 1 ; 2 ; 6 ; 8 ; 9 ; 1 5 ; 4 4 c</td>
                </tr>
                <tr>
                    <td>VT320</td>
                    <td>CSI ? 6 3 ; 1 ; 2 ; 6 ; 8 ; 9 ; 1 5 ; 4 4 c</td>
                </tr>
                <tr>
                    <td>WY370</td>
                    <td>CSI ? 6 3 ; 1 ; 2 ; 6 ; 8 ; 9 ; 1 5 ; 4 4 c</td>
                </tr>
                <tr>
                    <td>SNI-97801</td>
                    <td>CSI ? 6 2 ; 1 ; 2 ; 6 ; 8 ; 9 ; 1 5 ; 4 4 c</td>
                </tr>
                <tr>
                    <td>K95</td>
                    <td>CSI ? 6 3 ; 1 ; 2 ; 6 ; 8 ; 9 ; 1 5 ; 2 1 ; 2 2 ; 2 8 ; 3 2 ; 4 2 ; 4 3 ; 4 4 ; 5 2 c</td>
                </tr>
            </table>

            <!--
            DECterm on Tru64 5.1B-6 responds with:
                63;1;2;3;4;6;8;9;15;16;18;22;29c
            Windows Terminal responds with:
                61;4;6;7;14;21;22;23;24;28;32;42;52c  (clipboard write enabled)
                61;4;6;7;14;21;22;23;24;28;32;42c     (clipboard write disabled)
            -->

            <!-- dtterm (CDE) responds with 62,1,2,6,7,8,9 when emulating a VT220 -->

            <p>For the VT220 and newer, the first value indicates the device
                class: 61 for VT100, 62 for VT200, 63 for VT300,
                64 for VT400/VT510, and 65 for VT520/VT525. The remaining values
                specify <em>extensions</em> and have the following meanings:</p>
            <dl>
                <dt>1</dt>  <!-- vt510, vt420, vt340, vt320, vt220, xt -->
                <dd>132-columns</dd>

                <dt>2</dt>  <!-- vt510, vt420, vt320, vt220, xt -->
                <dd>Printer</dd>

                <dt not-implemented="true">3</dt> <!-- vt340, vt330, xt -->
                <dd>ReGIS</dd>

                <dt not-implemented="true">4</dt>  <!-- vt510, vt340, vt330, xt -->
                <dd>Sixel</dd>

                <dt not-implemented="true">5</dt>  <!-- vt382-J -->
                <dd>Katakana</dd>

                <dt>6</dt>  <!-- vt510, vt420, vt340, vt330, vt320, vt220, xt -->
                <dd>Selective erase</dd>

                <dt>7</dt>  <!-- vt510, vt420, vt340, vt330, vt320, vt220 -->
                <dd>Soft character sets (DRCS)</dd>

                <dt>8</dt>  <!-- vt510, vt420, vt382, vt340, vt330, vt320, vt220, xt -->
                <dd>User-defined keys</dd>
                <!--
                https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf#page=968
                -->

                <dt>9</dt>  <!-- vt510, vt420, vt340, vt330, vt320, vt220, xt -->
                <dd>National Replacement Character Sets</dd>

                <!--
                    Note: the Greek and Turkish special versions of the VT200
                    and VT300 use parameters 10 and 11 instead of 23 and 24
                    respectively
                -->

                <dt not-implemented="true">10</dt>  <!-- vt382-J -->
                <dd>Kanji</dd>

                <dt>11</dt>  <!-- vt1000 -->
                <dd>Status Display</dd>
                <!-- The status line
                https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf#page=1036
                -->

                <dt not-implemented="true">12</dt>  <!-- vt510 -->
                <dd>Serbo-Croatian (SCS)</dd>

                <dt not-implemented="true">13</dt>  <!-- vt340, vt330 -->
                <dd>Block Mode</dd>

                <dt>14</dt>  <!-- vt1000 -->
                <dd>8-bit Interface Architecture</dd>
                <!--
                See: https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf#page=112
                This is an extension for level 2, and required for level 3.
                -->

                <dt>15</dt>  <!-- vt510, vt420, vt382, vt340, vt330, xt -->
                <dd>Technical Characters</dd>

                <dt not-implemented="true">16</dt>  <!-- vt340, vt330, xt -->
                <dd>Locator Port</dd>           <!-- TODO: we have mouse reporting... -->
                <!-- Related to 29
                https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf#page=1012
                -->

                <dt not-implemented="true">17</dt>  <!-- vt1000, xt -->
                <dd>Terminal state interrogation</dd>
                <!--
                DECRQM, DECRPM, DECNKM, DECRQSS, DECPRPSS, DECRQPSR, DECPSR,
                DECRSPS, DECRQTSR, DECTSR, DECRSTS
                https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf#page=446
                -->

                <dt not-implemented="true">18</dt>  <!-- vt510, vt420, vt340, vt330, xt -->
                <dd>Windowing capability</dd>
                <!-- DECHCCM, DECVCCM, DECPCCM, DECRQDE, DECSNLS, SU, SD
                https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf#page=339
                -->

                <dt not-implemented="true">19</dt>  <!-- vt420, vt340, vt330 -->
                <dd>Dual Sessions</dd>

                <dt not-implemented="true">20</dt>  <!-- ? -->
                <dd>APL</dd>

                <dt>21</dt>  <!-- vt510, vt420, xt -->
                <dd>Horizontal scrolling</dd>

                <dt>22</dt>   <!-- vt525, xt -->
                <dd>ANSI color (eg, VT525)</dd>
                <!-- DECCTR, DECSTGLT
                 https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf#page=361
                 -->

                <dt not-implemented="true">23</dt>  <!-- vt510 -->
                <dd>Greek</dd>

                <dt not-implemented="true">24</dt>  <!-- vt510 -->
                <dd>Turkish</dd>

                <dt not-implemented="true">25</dt>    <!-- ? -->
                <dd>Arabic Bilingual Mode 1</dd>

                <dt not-implemented="true">26</dt>    <!-- ? -->
                <dd>Arabic Bilingual Mode 2</dd>

                <dt not-implemented="true">27</dt>    <!-- ? -->
                <dd>Arabic Bilingual Mode 3</dd>

                <dt>28</dt>                         <!-- xt -->
                <dd>Rectangular editing</dd>

                <dt not-implemented="true">29</dt>  <!-- xt -->
                <dd>ANSI text locator</dd>          <!-- TODO: we have this? -->
                <!-- Related to 15
                https://bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf#page=1012

                Supported by VWS - page 118
                -->

                <dt not-implemented="true">30</dt>    <!-- ? -->
                <dd>Hanzi</dd>

                <dt not-implemented="true">31</dt>    <!-- ? -->
                <dd>Not allocated/used/reserved?</dd>

                <dt>32</dt>                           <!-- ? -->
                <dd>Text Macros</dd>

                <dt not-implemented="true">33</dt>    <!-- ? -->
                <dd>Hangul and Hanja</dd>

                <dt not-implemented="true">34</dt>    <!-- ? -->
                <dd>Icelandic</dd>

                <dt not-implemented="true">35</dt>    <!-- ? -->
                <dd>Arabic Bilingual with Text Controls</dd>

                <dt not-implemented="true">36</dt>    <!-- ? -->
                <dd>Arabic Bilingual with no Text Controls</dd>

                <dt not-implemented="true">37</dt>    <!-- ? -->
                <dd>Thai</dd>

                <dt not-implemented="true">38</dt>    <!-- ? -->
                <dd>Character Outlining</dd>

                <dt not-implemented="true">39</dt>    <!-- VT1000 -->
                <dd>Page Memory Extension</dd>

                <!-- Can't find anything that reports these. Perhaps one of the
                     DEC X Terminals (like above)? -->
                <dt not-implemented="true">40</dt>    <!-- ? -->
                <dd>unknown</dd>
                <dt not-implemented="true">41</dt>    <!-- ? -->
                <dd>unknown</dd>

                <dt>42</dt>  <!-- vt510 -->
                <dd>ISO Latin-2 character set</dd>

                <dt>43</dt>    <!-- DECterm -->
                <dd>Ruled Lines</dd>

                <dt>44</dt>  <!-- vt510 -->
                <dd>PCTerm</dd>

                <dt not-implemented="true">45</dt>  <!-- vt510 -->
                <dd>Soft key map</dd>

                <dt not-implemented="true">46</dt>   <!-- vt510 -->
                <dd>ASCII emulation</dd>     <!-- TODO: What is this? -->

                <dt>52</dt>                          <!-- Windows Terminal -->
                <dd>(some terminal emulators, recent)
                    Support for write subset of <a href="#osc-52">OSC-52</a>.
                    K95 only includes this in its DA response for the K95 terminal
                    type, and only if writing to the clipboard is enabled.
                </dd>
            </dl>
            <!--
                For a certain device class, support for particular extensions
                may be implicit. For example, all level 3 or higher terminals
                (VT320 and up, device class 63 or higher) support
                extensions 11, 14 and 17 so they don't need to be reported in
                the DA response. A level 3 or higher terminal emulating a
                level 2 (eg, VT220) terminal may choose to report these
                extensions though.
            -->

            <p>A real VT100 terminal (or Kermit 95 when it is emulating a real
                VT100) produces responses in a different format:</p>
            <table>
                <tr>
                    <th>Response</th>
                    <th>Option Present</th>
                </tr>
                <tr not-implemented="true">
                    <td><tt><cc>CSI</cc> ? 1 ; 0 c</tt></td>
                    <td>No options</td>
                </tr>
                <tr not-implemented="true">
                    <td><tt><cc>CSI</cc> ? 1 ; 1 c</tt></td>
                    <td>Processor option (STP)</td>
                </tr>
                <tr>
                    <td><tt><cc>CSI</cc> ? 1 ; 2 c</tt></td>
                    <td>Advanced video option (AVO)</td>
                </tr>
                <tr not-implemented="true">
                    <td><tt><cc>CSI</cc> ? 1 ; 3 c</tt></td>
                    <td>AVO and STP</td>
                </tr>
                <tr not-implemented="true">
                    <td><tt><cc>CSI</cc> ? 1 ; 4 c</tt></td>
                    <td>Graphics option (GPO)</td>
                </tr>
                <tr not-implemented="true">
                    <td><tt><cc>CSI</cc> ? 1 ; 5 c</tt></td>
                    <td>GPO and STP</td>
                </tr>
                <tr not-implemented="true">
                    <td><tt><cc>CSI</cc> ? 1 ; 6 c</tt></td>
                    <td>GPO and AVO</td>
                </tr>
                <tr not-implemented="true">
                    <td><tt><cc>CSI</cc> ? 1 ; 7 c</tt></td>
                    <td>AGPO, STP and AVO</td>
                </tr>
            </table>

            <p>
                The DEC VT102 uses a different format again, just responding
                with <tt><cc>CSI</cc> ? 6 c</tt>
            </p>
        </section>
        <section role="ctlseq" mnemonic="TCC" title="Tabulation Centred on Character"
                 not-implemented="true" todo="true">
            <ref src="e48:87"/>
            <ctlseq>CSI <param-single/> ; <param-single/> SP c</ctlseq>
        </section>
        <section role="ctlseq" id="da3" mnemonic="DA3" title="Tertiary Device Attributes" groups="isvt220">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-=-Ps-c.1D0D"/>
            <ref src="070:230"/>
            <ref src="vt420:255"/>
            <ref src="vt510:DA3.html"/>
            <ref src="vt52x:166"/>
            <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
            <ctlseq>CSI = <param-single/> c</ctlseq>
            <!--
                TODO: If K95 is emulating some terminal that is not ISVT220(),
                    and that terminal switches into a mode that *is* ISVT220(),
                    this section is still ignored. This escape is guarded on
                    ISVT220(tt_type) *not* ISVT220(tt_type_mode)
            -->
            <p>
                Tertiary Device Attributes Report Request. If <param-single/>
                is 0 then K95 responds with <tt><cc>DCS</cc> ~ | 0 0 0 0 0 0 0 0 <cc>ESC</cc></tt>
            </p>

        </section>
        <section role="ctlseq" id="da2" mnemonic="DA2" title="Secondary Device Attributes" groups="isvt220">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Ps-c.1DAB"/>
            <ref src="wy370:138"/>
            <ref src="070:228"/>
            <ref src="vt220:S4.17.1.2"/>
            <ref src="vt340:213"/>
            <ref src="vt420:254"/>
            <ref src="vt510:DA2.html"/>
            <ref src="vt52x:165"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 tt putty wt"/>
            <ctlseq>CSI &gt; <param-single/> c</ctlseq>
            <!--
                TODO: If K95 is emulating some terminal that is not ISVT220(),
                    and that terminal switches into a mode that *is* ISVT220(),
                    this section is still ignored. This escape is guarded on
                    ISVT220(tt_type) *not* ISVT220(tt_type_mode)
            -->
            <!-- TODO: This will need changing when we get support for more
                 VT420 or VT520 escapes
                 The first parameter is the Product ID:
                         1 - VT220
                         2 - VT240
                        18 - VT330
                        19 - VT340
                        24 - VT320
                        28 - DECterm
                        32 - VT382J
                        41 - VT420
                        42 - VT1000 terminal emulator
                        44 - VT382T
                        61 - VT510
                        64 - VT520
                        65 - VT525
                        66 - VTStar
            -->
            <p>
                Secondary Device Attributes Report Request. If <param-single/>
                is 0 then K95 reports one of the following:
            </p>
            <table>
                <tr>
                    <th>Terminal Type</th>
                    <th>Report</th>
                    <th>Description</th>
                </tr>
                <tr>
                    <td>K95</td>
                    <td><tt><cc>CSI</cc> > 41 ; 0 ; 0 c</tt></td>
                    <td>VT420 with firmware version 0 and no options</td>
                </tr>
                <tr>
                    <td>VT220</td>
                    <td><tt><cc>CSI</cc> > 1 ; 0 ; 0 c</tt></td>
                    <td>VT220 with firmware version 0 and no options</td>
                </tr>
                <tr>
                    <td>All other emulations</td>
                    <td><tt><cc>CSI</cc> > 2 4 ; 0 ; 0 c</tt></td>
                    <td>VT320 with firmware version 0 and ROM
                        cartridge registration number 0</td>
                </tr>
            </table>
            <!-- Windows Terminal responds as xterm does: 0;10;1c -->
        </section>
        <section role="ctlseq" id="hsc" mnemonic="HSC" title="Set cursor type (SCO)" badges="scoansi">
            <ctlseq>CSI = <param-single/> c</ctlseq>
            <termsupp series="sco" first="sco" additional="putty"/>
            <!-- TODO The OpenServer documentations description of this is quite
                    different:
                    http://web.archive.org/web/20220523211603/http://osr600doc.xinuos.com/en/man/html.HW/screen.HW.html
                -->
            <section style="group" role="group">
                <section role="parameter" id="sco-ct-0" title="Underline"><ctlseq><param-single/> = 0</ctlseq></section>
                <section role="parameter" id="sco-ct-1" title="Block"><ctlseq><param-single/> = 1</ctlseq></section>
                <section role="parameter" id="sco-ct-2" title="No cursor"><ctlseq><param-single/> = 2</ctlseq></section>
            </section>
        </section>
        <section role="ctlseq" id="linux-cursor" title="Set cursor appearance (LINUX)" badges="linux">
            <ctlseq>CSI ? <param-single/> ; <param-single symbol="Pa"/> ;
                <param-single symbol="Pc" /> c</ctlseq>
            <p>
                Set Cursor appearance. Parameter <param-single/>
                sets the cursor size and other settings, while <param-single symbol="Pa"/>
                and <param-single symbol="Pc" /> specify character attributes.
                Kermit 95 only supports setting the cursor size and visibiltiy—the other
                bits in <param-single/> are ignored, while the
                <param-single symbol="Pa"/> and <param-single symbol="Pc" /> parameters
                are ignored entirely.
            </p>
            <table>
                <tr>
                    <th><param-single/> (lower four bits)</th>
                    <th>Cursor</th>
                </tr>
                <tr>
                    <td>0 or 2</td>
                    <td>Cursor enabled, underline</td>
                </tr>
                <tr>
                    <td>3, 4, 5, 6 or 7</td>
                    <td>Cursor enabled, half</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Cursor enabled, block</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Cursor disabled</td>
                </tr>
            </table>
        </section>

        <!-- ######################### d ######################### -->
        <section role="ctlseq" id="vpa" mnemonic="VPA" title="Vertical Line Position Absolute">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-d.1CA4"/>
            <ref src="e48:88"/>
            <ref src="wy370:120"/>
            <ref src="vt510:VPA.html"/>
            <ref src="vt52x:362"/>
            <termsupp first="vt510" series="vt" additional="tt linux sco putty wt"/>
            <ctlseq>CSI <param-single/> d</ctlseq>
            <p>Vertical Position Absolute: Moves active position to row <param-single/>.
                Affected by <a href="#decom">DECOM</a>.
                Clears the <a href="#lcf">Last Column Flag</a>.</p>
        </section>
        <section role="ctlseq" mnemonic="TSR" title="Tabulation Stop Remove"
                 not-implemented="true" todo="true">
            <ref src="e48:87"/>
            <ctlseq>CSI <param-single/> SP d</ctlseq>
        </section>

        <!-- ######################### e ######################### -->
        <section role="ctlseq" id="vpr" mnemonic="VPR" title="Vertical Position Relative">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-e.1CA5"/>
            <ref src="e48:88"/>
            <ref src="wy370:119"/>
            <ref src="vt510:VPR.html"/>
            <ref src="vt52x:362"/>
            <ref src="wy370:119"/>
            <termsupp first="vt510" series="vt" additional="tt linux sco putty wt"/>
            <ctlseq>CSI <param-single/> e</ctlseq>
            <p>Vertical Position Relative—moves active position <param-single/>
                rows down. Affected by <a href="#decom">DECOM</a>.</p>
        </section>
        <section role="ctlseq" mnemonic="SCO" title="Select Character Orientation"
                 not-implemented="true" todo="true">
            <ref src="e48:72"/>
            <ctlseq>CSI <param-single/> SP e</ctlseq>
        </section>

        <!-- ######################### f ######################### -->
        <section role="ctlseq" id="hvp" mnemonic="HVP" title="Horizontal and Vertical Position">
            <ref src="e48:60"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps-f.1DA4"/>
            <ref src="070:306"/>
            <ref src="wy370:120"/>
            <ref src="vt100:HVP"/>
            <ref src="vt132:93"/>
            <ref src="vt220:S4.7"/>
            <ref src="vt340:176"/>
            <ref src="vt420:200"/>
            <ref src="vt510:HVP.html"/>
            <ref src="vt52x:337"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
            <implchk std070="true"/>
            <ctlseq>CSI <param-single/> ; <param-single/> f</ctlseq>
            <p>Send cursor to row;column. Default is 1;1. Clears the
                <a href="#lcf">Last Column Flag</a>. This control sequence is
                implemented for compatibility with printing terminals.
                Applications should use <a href="#cup">CUP</a> instead.
            </p>
            <p>Resets the <a href="#lcf">Last Column Flag</a> for all emulations
                except VT100/VT102.</p>
            <p badges="s97801">
                If DECSASD is set to the status line, it is reset to terminal.
            </p>
        </section>
        <section role="ctlseq" mnemonic="SRCS" title="Set reduced Character Separation"
                 not-implemented="true" todo="true">
            <ref src="e48:82"/>
            <ctlseq>CSI <param-single/> SP f</ctlseq>
        </section>

        <!-- ######################### g ######################### -->
        <section role="ctlseq" id="dgc" mnemonic="DGC" title="Display Graphic Character" badges="scoansi">
            <ctlseq>CSI <param-single/> g</ctlseq>
            <termsupp first="sco" series="sco" additional=""/>
            <p>
                Displays the character <param-single/> in G2. This should
                only occur when not in SCO ANSI BCS2 mode, but as there is no
                way to turn SCO ANSI BCS2 mode on currently this is always true.
            </p>
            <p>
                This allows displaying character codes outside the normal
                printable range (eg, the C0 control codes) as graphic
                characters. For example, if the current remote character set
                is CP437 then <tt><cc>CSI</cc> 26 g</tt> would display the right arrow
                character (→).
            </p>
        </section>
        <section role="ctlseq" id="tbc" mnemonic="TBC" title="Tab clear">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-g.1CA7"/>
            <ref src="e48:87"/>
            <ref src="070:321"/>
            <ref src="wy370:126"/>
            <ref src="vt100:TBC"/>
            <ref src="vt132:96"/>
            <ref src="vt220:S4.8"/>
            <ref src="vt340:259"/>
            <ref src="vt420:312"/>
            <ref src="vt510:TBC.html"/>
            <ref src="vt52x:361"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            <ctlseq>CSI <param-single/> g</ctlseq>
            <p>Tab clear at position <param-single/></p>

            <section role="parameter" id="tbc-0" title="Clear tab stop at cursor">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="e48:87"/>
                <ref src="070:321"/>
                <ref src="wy370:126"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-g:Ps-=-0.1DF9"/>
                <ref src="vt100:TBC"/>
                <ref src="vt132:96"/>
                <ref src="vt220:S4.8"/>
                <ref src="vt420:312"/>
                <ref src="vt510:TBC.html"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt420 vt510 tt"/>
            </section>
            <section role="parameter" id="tbc-3" title="Clear all tab stops">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="e48:87"/>
                <ref src="070:321"/>
                <ref src="wy370:126"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-g:Ps-=-3.1DFC"/>
                <ref src="vt100:TBC"/>
                <ref src="vt132:96"/>
                <ref src="vt220:S4.8"/>
                <ref src="vt420:312"/>
                <ref src="vt510:TBC.html"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt420 vt510 tt linux"/>
                <!-- TODO: Ps = 2 will also clear all tab stops for any terminal
                     not in the ISVT100 group. Not sure *which* terminal that
                     would be though as most if not all of the ANSI-like terminals
                     are ISVT100. -->
            </section>

        </section>
        <section role="ctlseq" mnemonic="SCS" title="Set Character Spacing"
                 not-implemented="true" todo="true">
            <ref src="e48:73"/>
            <ctlseq>CSI <param-single/> SP g</ctlseq>
        </section>
        <section role="ctlseq" id="prc" mnemonic="PRC" title="Display character in G2 (ANSI)" groups="isansi">
            <ctlseq>CSI = <param-single/> g</ctlseq>
            <termsupp series="sco" first="sco"/>
            <!-- TODO: The OpenServer documentation describes additional parameters we
                    don't support: http://osr600doc.xinuos.com/en/man/html.HW/screen.HW.html -->
            <p>Displays the character <param-single/> in G2</p>
        </section>

        <!-- ######################### h ######################### -->
        <section role="ctlseq" id="sm" mnemonic="SM" title="Set Mode">
            <ref src="e48:79"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h.1CA2"/>
            <ref src="070:388"/>
            <ref src="wy370:25"/>
            <ref src="vt100:SM"/>
            <ref src="vt132:96"/>
            <ref src="vt220:S4.6.1"/>
            <ref src="vt420:285"/>
            <ref src="vt510:SM.html"/>
            <ref src="vt52x:360"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt420 vt510 tt linux sco putty dtterm wt"/>
            <ctlseq>CSI <param-multi/> h</ctlseq>
            <p>Non-private / ANSI Set Mode</p>

            <section role="parameter" id="gatm" mnemonic="GATM" title="Guarded Area Transfer Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt132:86"/>
                <ref src="vt340:155"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" mnemonic="KAM" id="sm-2"
                     title="Keyboard lock">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="e48:79"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h:Ps-=-2.1DF6"/>
                <ref src="vt220:S4.6.3"/>
                <ref src="vt340:184"/>
                <ref src="vt420:210"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:339"/>
                <ref src="wy370:31"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt sco dtterm"/>
                <p>Locks the keyboard</p>
            </section>
            <section role="parameter" badges="scoansi" id="sm-3-sco" title="132 Column Mode">
                <ctlseq><param-single/> = 3</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p> Switches to 132 Column Mode.
                    Clears the <a href="#lcf">Last Column Flag</a>.</p>
            </section>
            <section role="parameter" mnemonic="CRM" id="sm-3" title="Controls Mode On">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:160"/>
                <ref src="wy370:33"/>
                <termsupp first="vt510" series="vt" additional="vt510 linux"/>
                <p>Controls Mode On</p>
            </section>
            <section role="parameter" badges="scoansi" id="sm-4-sco"
                     title="Enable Smooth Scrolling">
                <ctlseq><param-single/> = 4</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>
                    Enable Smooth Scrolling.
                </p>
            </section>
            <section role="parameter" mnemonic="IRM" id="sm-4"
                     groups="isvt102 isansi" exclude-badges="scoansi" title="ANSI Insert Mode">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="e48:79"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h:Ps-=-4.1DF8"/>
                <ref src="070:393"/>
                <ref src="vt102:S2.2"/>
                <ref src="vt132:94"/>
                <ref src="vt220:S4.6.4"/>
                <ref src="vt340:133"/>
                <ref src="vt420:171"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:339"/>
                <ref src="wy370:28"/>
                <termsupp first="vt102" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>
                    Enable insert mode
                </p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="SRTM"
                     title="Status Report Transfer Mode">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" badges="scoansi" id="sm-6-sco" title="Relative Origin">
                <ctlseq><param-single/> = 6</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Homes the cursor within set margins, and clears the
                    <a href="#lcf">Last Column Flag</a>.</p>
            </section>
            <section role="parameter" mnemonic="ERM" id="sm-6" title="Erasure Mode Set">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt132:92"/>
                <ref src="vt340:133"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340 vt510"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="VEM"
                     title="Line Editing Mode">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" badges="scoansi" id="sm-7" title="Auto Wrap Mode">
                <ctlseq><param-single/> = 7</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Enables auto wrap mode</p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="BDSM"
                     title="Bi-Directional Support Mode">
                <ctlseq><param-single/> = 8</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="DCSM"
                     title="Device Component Select Mode">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="HEM"
                     title="Character Editing Mode">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="PUM"
                     title="Positioning Unit Mode">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="e48:79"/>
                <p>Deprecated in ECMA-48 5th edition</p>
            </section>
            <section role="parameter" mnemonic="SRM" id="sm-12"
                     title="Send Receive ON">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="e48:79"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h:Ps-=-1-2.1E54"/>
                <ref src="070:390"/>
                <ref src="vt220:S4.6.5"/>
                <ref src="vt340:200"/>
                <ref src="vt420:238"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:358"/>
                <ref src="wy370:32"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt putty dtterm"/>
                <p>Switches to full duplex mode</p>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="FEAM" not-implemented="true" id="sm-13"
                     title="Format Effector Action Mode">
                <ref src="e48:79"/>
                <ref src="wy370:33"/>
                <ctlseq><param-single/> = 13</ctlseq>
                <p>display control codes</p>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="FETM"
                     title="Format Effector Transfer Mode">
                <ctlseq><param-single/> = 14</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" mnemonic="MATM" id="sm-15" todo="true"
                     title="Multiple Area Transfer Mode" not-implemented="true">
                <ctlseq><param-single/> = 15</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt340:157"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" mnemonic="TTM" id="sm-16"
                     not-implemented="true" title="Send through cursor position">
                <ctlseq><param-single/> = 16</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt132:96"/>
                <ref src="vt340:153"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340 vt510"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="SATM" id="sm-17" todo="true"
                     title="Selected Area Transfer Mode" not-implemented="true">
                <ctlseq><param-single/> = 17</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt340:156"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="TSM"
                     title="Tabulation Stop Mode">
                <ctlseq><param-single/> = 18</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="EBM"
                     title="Formerly: Editing Boundary Mode">
                <ctlseq><param-single/> = 19?</ctlseq>
                <ref src="e48:79"/>
                <p>Deprecated in ECMA-48 4th edition, removed in 5th.</p>
            </section>
            <section role="parameter" mnemonic="LNM" id="sm-20" title="Line Feed / new line mode">
                <ctlseq><param-single/> = 20</ctlseq>
                <ref src="e48:79"/>
                <ref src="e48:102"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h:Ps-=-2-0.1E53"/>
                <ref src="070:312"/>
                <ref src="vt100:LNM"/>
                <ref src="vt132:94"/>
                <ref src="vt220:S4.6.6"/>
                <ref src="vt340:185"/>
                <ref src="vt420:211"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:340"/>
                <ref src="wy370:29"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Turns on terminal new line and display crlf
                    (equivalent to <tt>set terminal cr-display crlf</tt> and
                    <tt>set terminal newline on</tt>
                </p>
                <p>This mode was deprecated in ECMA-48 4th edition and removed
                    in the 5th edition.</p>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="GRCM"
                     title="Graphic Rendition Combination">
                <ctlseq><param-single/> = 21</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="ZDM"
                     title="Zero Default Mode">
                <ctlseq><param-single/> = 22</ctlseq>
                <ref src="e48:79"/>
                <p>Deprecated in ECMA-48 5th edition</p>
            </section>
            <section role="parameter" badges="scoansi" id="sm-25" title="Cursor On">
                <ctlseq><param-single/> = 25</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Turns on the cursor</p>
            </section>
            <section role="parameter" badges="wy370" mnemonic="WYDSCM" id="sm-30" title="Turn display off">
                <ctlseq><param-single/> = 30</ctlseq>
                <ref src="wy370:26"/>
                <p>Turns the screen off</p>
            </section>
            <section role="parameter" badges="scoansi" id="sm-30-sco"
                     not-implemented="true" title="Scrollbars On">
                <termsupp first="sco" series="sco" additional=""/>
                <ctlseq><param-single/> = 30</ctlseq>
            </section>
            <section role="parameter" mnemonic="WYLINM" id="sm-31"
                     not-implemented="true" title="Display status line">
                <ctlseq><param-single/> = 31</ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="WYCRTSAVM" id="sm-32"
                     not-implemented="true" title="Screen Saver off">
                <ctlseq><param-single/> = 32</ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="WYSTCURM" id="sm-33"
                     not-implemented="true" title="Cursor steady">
                <ctlseq><param-single/> = 33</ctlseq>
                <ref src="wy370:26"/>
                <termsupp first="wy370" series="wyse" additional="tt"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="WYULCURM" id="sm-34"
                     groups="wy370" title="Underline cursor">
                <ctlseq><param-single/> = 34</ctlseq>
                <ref src="wy370:26"/>
                <termsupp first="wy370" series="wyse" additional="tt putty"/>
                <p>Changes to the underline cursor</p>
            </section>
            <section role="parameter" mnemonic="WYCLRM" id="sm-35"
                     not-implemented="true" title="Width change clear off">
                <ctlseq><param-single/> = 35</ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="WYDELKM" id="sm-36"
                     not-implemented="true" title="Set delete key to BS/DEL">
                <ctlseq><param-single/> = 36</ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="WYGATM" id="sm-37"
                     not-implemented="true" title="Send all characters">
                <ctlseq><param-single/> = 37 </ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="WYTEXM" id="sm-38"
                     not-implemented="true" title="Send full page">
                <ctlseq><param-single/> = 38 </ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="WYEXTDM" id="sm-40"
                     not-implemented="true" title="Extra data line">
                <ctlseq><param-single/> = 40</ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="WYASCII" id="sm-42"
                     not-implemented="true" title="Select Wyse 350 personality">
                <ctlseq><param-single/> = 42</ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" badges="scoansi" id="sm-44" title="Margin Bell On">
                <ctlseq><param-single/> = 44</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Enables the margin bell</p>
            </section>
            <section role="parameter" badges="scoansi" id="sm-48" title="Cursor On">
                <ctlseq><param-single/> = 48</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Turns on the cursor</p>
            </section>
            <section role="parameter" not-implemented="true" id="sm-50"
                     badges="s97801" title="Compose key table on">
                <ctlseq><param-single/> = 50</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" id="sm-51"
                     badges="s97801" title="Dead key table on">
                <ctlseq><param-single/> = 51</ctlseq>
            </section>
            <section role="parameter" badges="s97801" id="sm-53" title="132-character mode">
                <ctlseq><param-single/> = 53</ctlseq>
                <p>Switches to 132-character mode.
                    Clears the <a href="#lcf">Last Column Flag</a>.</p>
            </section>
            <!-- TODO: The VT510 manual shows this as being DEC Private ( ? 81 h )
                    while the VT420 and VT520 manuals disagree. Need to test. -->
            <section role="parameter" id="sm-81" mnemonic="DECKPM" title="Key Position Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 81</ctlseq>
                <ref src="vt420:217"/>
                <ref src="vt510:DECKPM.html"/>
                <ref src="vt52x:220"/>
                <termsupp first="vt420" series="vt" additional="vt510"/>
                <p>
                    When set, the terminal sends key position reports along with
                    the state of modifier keys. When reset, the terminal sends
                    character codes as normal.
                </p>
            </section>
            <section role="parameter" badges="scoansi" id="sm-1048" title="Cursor On">
                <ctlseq><param-single/> = 1048</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Turns on the cursor</p>
            </section>
        </section>
        <section role="ctlseq" mnemonic="SLS" title="Set Line Spacing"
                 not-implemented="true" todo="true">
            <ref src="e48:78"/>
            <ctlseq>CSI <param-single/> SP h</ctlseq>
        </section>
        <section role="ctlseq" id="decsm" mnemonic="DECSET" title="DEC Private Mode Set">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h.1D0E"/>
            <ref src="wy370:25"/>
            <ref src="070:388"/>
            <ref src="vt510:SM.html"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt320 vt420 vt510 vt520 tt putty dtterm wt"/>
            <ctlseq>CSI ? <param-multi/> h</ctlseq>
            <p>DEC Private Mode Set</p>

            <section role="parameter" id="decckm" mnemonic="DECCKM" title="Application Cursor Keys">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1.1E61"/>
                <ref src="vt100:DECCKM"/>
                <ref src="vt132:83"/>
                <ref src="vt220:S4.6.8"/>
                <ref src="vt340:187"/>
                <ref src="vt420:214"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:186"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            </section>
            <section role="parameter" id="decanm" mnemonic="DECANM" title="Return from VT52 emulation">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2.1E62"/>
                <ref src="wy370:26"/>
                <ref src="vt100:DECANM"/>
                <ref src="vt220:S4.6.9"/>
                <ref src="vt340:271"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:172"/>
                <termsupp first="vt100" series="vt" additional="vt220 vt330 vt340 vt510 putty wt"/>
                <p>Returns to whichever ANSI mode K95 was in before switching to
                    VT52 emulation.
                </p>
                <p badges="h19">If the current terminal type is H19, then K95
                    switches from VT52 mode back ot H19 emulation</p>
                <!-- TODO: xterm - Designate USASCII for character sets G0-G3 -->
            </section>
            <section role="parameter" id="deccolm" mnemonic="DECCOLM" title="132 column mode">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:326"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-3.1E63"/>
                <ref src="vt100:DECCOLM"/>
                <ref src="vt132:84"/>
                <ref src="vt220:S4.6.10"/>
                <ref src="vt340:120"/>
                <ref src="vt420:153"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:188"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Switches the screen to 132 columns, clears margins, disables
                    <a href="#decvssm">DECVSSM/DECLRMM</a>, and homes the
                    cursor clearing the <a href="#lcf">Last Column Flag</a>.
                </p>
            </section>
            <section role="parameter" id="decsclm" mnemonic="DECSCLM" title="Smooth scroll">
                <ctlseq><param-single/> = 4 </ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4.1E64"/>
                <ref src="vt100:DECSCLM"/>
                <ref src="vt132:89"/>
                <ref src="vt220:S4.6.11"/>
                <ref src="vt340:201"/>
                <ref src="vt420:239"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:277"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 dtterm"/>
                <p>Enable smooth (slow) scrolling mode.</p>
                <p>In the console versions of K95 for Windows and OS/2 this just
                    inserts a brief pause on each scroll.
                </p>
                <p>
                    In K95G this enables proper smooth scroll. On VT100 and
                    higher emulations as well as the K95 terminal type, changing
                    DECSCLM does not take effect until after the next scroll
                    event. For terminals supporting multiple speeds, this sets
                    the slow speed (SMOOTH-2).
                </p>
            </section>
            <section role="parameter" id="decscnm" mnemonic="DECSCNM" title="Reverse screen">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-5.1E65"/>
                <ref src="wy370:26"/>
                <ref src="070:349"/>
                <ref src="vt100:DECSCNM"/>
                <ref src="vt132:89"/>
                <ref src="vt220:S4.6.12"/>
                <ref src="vt340:201"/>
                <ref src="vt420:238"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:277"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt150 tt linux putty dtterm wt"/>
                <p>Switches to reverse video</p>
            </section>
            <section role="parameter" id="decom" mnemonic="DECOM" title="Relative origin">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-6.1E66"/>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="vt100:DCOM"/>
                <ref src="vt132:86"/>
                <ref src="vt220:S4.6.13"/>
                <ref src="vt340:122"/>
                <ref src="vt420:157"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:231"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Switches to relative origin mode</p>
            </section>
            <section role="parameter" id="decawm" mnemonic="DECAWM" title="Auto Wrap mode">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-7.1E67"/>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="vt100:DECAWM"/>
                <ref src="vt132:83"/>
                <ref src="vt220:S4.6.14"/>
                <ref src="vt340:186"/>
                <ref src="vt420:213"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:179"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Turns auto-wrap mode on</p>
            </section>
            <section role="parameter" id="decarm" mnemonic="DECARM" title="Autorepeat">
                <ctlseq><param-single/> = 8</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-8.1E68"/>
                <ref src="wy370:26"/>
                <ref src="070:528"/>
                <ref src="vt100:DECARM"/>
                <ref src="vt132:83"/>
                <ref src="vt220:S4.6.15"/>
                <ref src="vt340:186"/>
                <ref src="vt420:212"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:173"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty wt"/>
                <p>Enable auto-repeat mode. Setting/resetting DECARM is only
                    supported on Windows. On OS/2, DECARM is permanently set.
                </p>
            </section>
            <section role="parameter" id="x10mr" title="X10 mouse reporting"
                     groups="isansi" badges="linux k95 xterm">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-9.1E69"/>
                <termsupp first="xterm" series="xt" additional="tt linux"/>
                <p>
                    Send mouse X &amp; Y on button press (X10 mouse reporting).
                </p>
            </section>
            <section role="parameter" id="decinlm" mnemonic="DECINLM" title="Interlace"
                     not-implemented="true">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="vt100:DECINLM"/>
                <ref src="vt132:85"/>
                <termsupp first="vt100" series="vt" additional="vt132 linux"/>
                <p>Enable interlaced video mode</p>
            </section>
            <section role="parameter" id="decedm" not-implemented="true" mnemonic="DECEDM" title="Block Mode On">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="wy370:26"/>
                <ref src="vt132:84"/>
                <ref src="vt340:150"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block editing mode</p>
            </section>
            <section role="parameter" id="rxvt-show-toolbar" mnemonic=""
                     title="Show Toolbar (rxvt)" badges="k95 xterm">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0.1EBE"/>
                <termsupp first="xterm" series="rxvt" additional=""/>
                <p>
                    K95G Only: Shows the toolbar if it is currently hidden.
                </p>
            </section>
            <section role="parameter" id="decltm" mnemonic="DECLTM" title="Line Transmit Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="vt132:86"/>
                <ref src="vt340:152"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" id="deckanam" mnemonic="DECKANAM" title="Katakana Shift Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="vt382:142"/>
                <termsupp first="vt382" series="vt" additional=""/>
            </section>
            <section role="parameter" id="att610-sbc" mnemonic=""
                     title="Start blinking cursor (AT&amp;T 610)">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-2.1EC0"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>
                    Turns on cursor blinking without affecting the cursor shape.
                    Both cursor shape and blink can be set with
                    <a href="#decscusr">DECSCUSR</a>.
                </p>
            </section>
            <section role="parameter" id="decscfdm" mnemonic="DECSCFDM" title="Space Compression/Field Delimiting Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 13</ctlseq>
                <ref src="vt132:89"/>
                <ref src="vt340:161"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" id="dectem" mnemonic="DECTEM" title="Transmit Execution Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 14</ctlseq>
                <ref src="vt132:90"/>
                <ref src="vt340:162"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" id="decekem" mnemonic="DECEKEM" title="Edit Key Execution Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 16</ctlseq>
                <ref src="vt132:85"/>
                <ref src="vt340:150"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" id="decpff" mnemonic="DECPFF" title="Print Form Feed">
                <ctlseq><param-single/> = 18</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-8.1EC6"/>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="vt102:SC.2.2"/>
                <ref src="vt220:S4.6.16"/>
                <ref src="vt420:233"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:237"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt420 vt510"/>
                <p>Enables print form-feed (sends a form-feed to the printer after printing some
                    or all of the screen)</p>
            </section>
            <section role="parameter" id="decpex" mnemonic="DECPEX" title="Printer extent">
                <ctlseq><param-single/> = 19</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-9.1EC7"/>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="vt102:SC.2.2"/>
                <ref src="vt220:S4.6.17"/>
                <ref src="vt340:195"/>
                <ref src="vt420:232"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:237"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt"/>
                <p>Set print extent to print the entire screen</p>
            </section>
            <section role="parameter" id="ov1" mnemonic="OV1" title="Overstrike"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 20</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" id="ba1" mnemonic="BA1" title="Local BASIC"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 21</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" id="ba2" mnemonic="BA2" title="Host BASIC"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 22</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" id="pk" mnemonic="PK" title="Programmed Keypad"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 23</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" id="ah" mnemonic="AH" title="Auto Hardcopy"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 24</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" title="Low Density Printing"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 24</ctlseq>
                <ref src="tphb87:688"/>
                <!--<termsupp first="" series="print" additional=""/>-->
            </section>
            <section role="parameter" id="dectcem" mnemonic="DECTCEM" title="Cursor On">
                <ctlseq><param-single/> = 25</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-5.1EC4"/>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="vt220:S4.6.7"/>
                <ref src="vt340:175"/>
                <ref src="vt420:198"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:311"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Turn on the cursor</p>
            </section>
            <section role="parameter" id="decpsp" mnemonic="DECPSP" title="Proportional Spacing"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 27</ctlseq>
                <ref src="tphb87:759"/>
                <!--<termsupp first="" series="print" additional=""/>-->
            </section>
            <section role="parameter" id="decpsm" mnemonic="DECPSM" title="Pitch Select Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 29</ctlseq>
                <ref src="tphb87:710"/>
                <!--<termsupp first="" series="print" additional=""/>-->
            </section>
            <section role="parameter" id="rxvt-show-scrollbar" mnemonic=""
                     title="Show scrollbar (rxvt)"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 30</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-3-0.1EC0"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="decrlm" mnemonic="DECRLM" title="Right to Left Mode">
                <ctlseq><param-single/> = 34</ctlseq>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:247"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>right-to-left mode</p>
            </section>
            <section role="parameter" id="dechebm" mnemonic="DECHEBM" title="Hebrew Keyboard Mode">
                <ctlseq><param-single/> = 35</ctlseq>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:212"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>Switches the keyboard mode to Hebrew</p>
            </section>
            <section role="parameter" id="rxvt-font-shifting" mnemonic=""
                     title="Enable font-shifting functions (rxvt)"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 35</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-3-5.1EC5"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="dechem" mnemonic="DECHEM" title="Hebrew Encoding Mode">
                <ctlseq><param-single/> = 36</ctlseq>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:211"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>Enter hebrew encoding mode</p>
            </section>
            <section role="parameter" not-implemented="true" id="dectek" mnemonic="DECTEK" title="Enter Tektronix 4010/4014 mode">
                <ctlseq><param-single/> = 38</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-3-8.1EC8"/>
                <ref src="vt340g:234"/>
                <termsupp first="vt330" series="vt" additional="vt340 xt tt"/>
                <p>Not Implemented: K95 does not (yet) support the Tektronix mode</p>
            </section>
            <section role="parameter" id="deccrnlm" mnemonic="DECCRNLM"
                     title="Carriage Return/New Line Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 40</ctlseq>
                <ref src="dap:112"/>
                <termsupp first="la30" series="print" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" title="XTERM - Allow 80 - 132 Mode">
                <ctlseq><param-single/> = 40</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-0.1EC1"/>
                <termsupp first="xterm" series="xt" additional="dtterm wt"/>
            </section>
            <section role="parameter" id="decupm" mnemonic="DECUPM"
                     title="Unidirectional Print Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 41</ctlseq>
                <ref src="dap:145"/>
                <termsupp first="la30" series="print" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" title="XTERM - more(1) fix">
                <ctlseq><param-single/> = 41</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-1.1EC2"/>
                <termsupp first="xterm" series="xt" additional="dtterm"/>
            </section>
            <section role="parameter" id="decnrcm" mnemonic="DECNRCM" title="Use 7-bit National Replacement Character Sets">
                <ctlseq><param-single/> = 42</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-2.1EC3"/>
                <ref src="wy370:26"/>
                <ref src="070:381"/>
                <ref src="vt220:S4.6.19"/>
                <ref src="vt340:84"/>
                <ref src="vt420:111"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:229"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510"/>
                <p>Switch to using 7-bit national replacement character sets</p>
            </section>
            <section role="parameter" not-implemented="true" id="decgepm" mnemonic="DECGEPM" title="Graphics Expanded Print mode">
                <ctlseq><param-single/> = 43</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-3.1EC4"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>VT340 Graphics Expanded Print Mode</p>
            </section>
            <section role="parameter" not-implemented="true" id="decgpcm"
                     mnemonic="DECGPCM" title="Graphics Print Color mode">
                <ctlseq><param-single/> = 44</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-4.1EC5"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>VT340 Graphics Print Color Mode</p>
                <!-- TODO: tterm and some versions of xterm: turn on margin bell? -->
            </section>
            <section role="parameter" not-implemented="true" id="decgpcs"
                     mnemonic="DECGPCS" title="Graphics Print Color syntax = RGB">
                <ctlseq><param-single/> = 45</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-5.1EC6"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <p>Graphics Print Color syntax = RGB</p>
                <!-- todo: dtterm, xterm - reverse-wraparound mode -->
            </section>
            <section role="parameter" not-implemented="true" id="decgpbm"
                     mnemonic="DECGPBM" title="Graphics Print Background mode">
                <ctlseq><param-single/> = 46</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-6.1EC7"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <!-- todo: dtterm, xterm - start logging (XTLOGGING) -->
            </section>
            <section role="parameter" not-implemented="true" id="decgrcm"
                     mnemonic="DECGRCM" title="Graphics Rotated Print mode">
                <ctlseq><param-single/> = 47</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-7.1EC8"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" not-implemented="true" id="xtaltbuf"
                     title="Use alternate screen buffer (xterm)">
                <ctlseq><param-single/> = 47</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-7.1EC8"/>
                <termsupp first="xterm" series="xt" additional="tt putty"/>
                <p>
                    Not currently implemented as it conflicts with DECGRCM which
                    Kermit 95 may someday prefer to implement for the K95
                    terminal type.
                </p>
            </section>
            <!-- TODO: Mode 49 - DECTHAIM - Thai Input Mode -->
            <!-- TODO: Mode 50 - DECTHAICM - Thai Cursor Mode -->
            <section role="parameter" id="decbwrm" mnemonic="DECBWRM"
                     title="Black/White Reversal Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 51</ctlseq>
                <ref src="tphb87:790"/>
                <termsupp first="lgp01" series="print" additional=""/>
            </section>
            <section role="parameter" id="decopm" mnemonic="DECOPM"
                     title="Origin Placement Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 52</ctlseq>
                <ref src="tphb87:777"/>
                <termsupp first="ln03" series="print" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="dec131tm"
                     mnemonic="DEC131TM" title="VT131 Transmit">
                <ctlseq><param-single/> = 53</ctlseq>
                <ref src="vt340:154"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" id="decbpm" mnemonic="DECBPM"
                     title="Bold Page Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 55</ctlseq>
                <ref src="tphb87:790"/>
                <termsupp first="lgp01" series="print" additional=""/>
            </section>
            <section role="parameter" id="decnakb" mnemonic="DECNAKB"
                     title="Greek/N-A Keyboard Mapping Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 57</ctlseq>
                <ref src="vt510:DECNAKB.html"/>
                <ref src="vt52x:228"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decipem" mnemonic="DECIPEM"
                     title="Enter/Return from IBM ProPrinter Emulation Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 58</ctlseq>
                <ref src="vt510:DECIPEM.html"/>
                <ref src="vt52x:216"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="deckkdm" mnemonic="DECKKDM"
                     title="Kanji terminal mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 59</ctlseq>
                <termsupp first="vt382" series="vt" additional="tt"/>
            </section>
            <section role="parameter" not-implemented="true" id="dechccm" mnemonic="DECHCCM" title="Horizontal cursor coupling">
                <ctlseq><param-single/> = 60</ctlseq>
                <ref src="070:340"/>
                <ref src="wy370:26"/>
                <ref src="vt340:179"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt510"/>
            </section>
            <section role="parameter" not-implemented="true" id="decvccm" mnemonic="DECVCCM" title="Vertical cursor coupling">
                <ctlseq><param-single/> = 61</ctlseq>
                <ref src="070:341"/>
                <ref src="wy370:26"/>
                <ref src="vt340:179"/>
                <ref src="vt420:205"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:324"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
            </section>
            <section role="parameter" id="decpccm" mnemonic="DECPCCM"
                     title="Page cursor coupling" groups="isvt330 isvt420">
                <ctlseq><param-single/> = 64</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:342"/>
                <ref src="vt340:180"/>
                <ref src="vt420:206"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:234"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
                <p>
                    Enable Page Cursor Coupling. When the cursor moves to another
                    page, the display will follow to keep the cursor visible.
                </p>
                <p>
                    If the cursor is on a different page from the one on screen
                    when DECPCCM is turned on, the display switches to the page
                    the cursor is on.
                </p>
            </section>
            <section role="parameter" id="decbcmm" mnemonic="DECBCMM"
                     title="Business Color Matching Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 65</ctlseq>
                <ref src="lj250:130"/>
                <termsupp first="lj250" series="print" additional=""/>
            </section>
            <section role="parameter" id="decnkm" mnemonic="DECNKM" title="Numeric Keyboard - Application">
                <ctlseq><param-single/> = 66</ctlseq>
                <ref src="wy370:26"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-6-6.1EC9"/>
                <ref src="vt340:188"/>
                <ref src="vt420:215"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:229"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt wt"/>
                <p>Switches the numeric keypad to application mode</p>
            </section>
            <section role="parameter" id="decbkm" mnemonic="DECBKM" title="Backarrow key sends BS">
                <ctlseq><param-single/> = 67</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-6-7.1ECA"/>
                <ref src="wy370:26"/>
                <ref src="vt340:184"/>
                <ref src="vt420:210"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:180"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt wt"/>
                <p>Adjusts the keymap so that the backarrow key sends backspace. The previous
                    key definition is saved so it can be restored later.</p>
            </section>
            <section role="parameter" not-implemented="true" id="deckbum" mnemonic="DECKBUM" title="Keyboard Usage - Data Processing">
                <ctlseq><param-single/> = 68</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="vt340:189"/>
                <ref src="vt420:216"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:219"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                <p>K95 stores this setting, but does not currently use it for anything</p>
            </section>
            <section role="parameter" id="decvssm" mnemonic="DECVSSM"
                     title="Vertical Split Screen Mode (DECLRMM)"
                     groups="isvt420" badges="k95 xterm">
                <ctlseq><param-single/> = 69</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-6-9.1ECC"/>
                <ref src="070:284"/>
                <ref src="vt420:157"/>
                <ref src="vt510:DECLRMM.html"/>
                <ref src="vt52x:226"/>
                <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
                <implchk std070="true" xt="407"/>
                <p>Called DECVSSM (Vertial Split Screen Mode) in the VT420
                    manual, and DECLRMM (Left Right Margin Mode) in the VT5xx.
                    Whatever you call it, this enables or disables the
                    <a href="#decslrm">DECSLRM</a> control sequence. When
                    DECSLRMM is enabled, <a href="#decdhl-top">DECDHL</a> and
                    <a href="#decdwl">DECDWL</a> are disabled and all lines on
                    all pages are reset to single width, single height.
                </p>
                <p badges="k95 xterm">
                    When this mode is enabled, the <a href="#scosc">SCOSC</a>
                    control sequence is unavaialble.
                </p>
            </section>
            <section role="parameter" id="decfpm" mnemonic="DECFPM"
                     title="Force Plot Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 70</ctlseq>
                <ref src=""/>
                <termsupp first="lg06" series="print" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="decxrlm" mnemonic="DECXRLM" title="Transmit rate limiting">
                <ctlseq><param-single/> = 73</ctlseq>
                <ref src="070:389"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:325"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>

            <!-- VWS page 119 gives some more details on these. Transparent copy
            appears to be equivalent to \Kcopyclip, while transparent paste
            would be equivalent to \Kpaste, and these enable/disable those
            features. I guess an application using "programmed" copy/paste
            (using the escape sequences to get/set the clipboard) would turn the
            "transparent" copy/paste features off so that they don't interfere.
             -->
            <section role="parameter" id="dectpm" mnemonic="DECTPM" todo="true"
                     title="Transparent Paste Mode" not-implemented="true">
                <ctlseq><param-single/> = 76</ctlseq>
                <ref src="vws:109"/>
            </section>
            <section role="parameter" id="dectcm" mnemonic="DECTCM" todo="true"
                     title="Transparent Copy Mode" not-implemented="true">
                <ctlseq><param-single/> = 77</ctlseq>
                <ref src="vws:109"/>
            </section>
            <section role="parameter" not-implemented="true" id="decsdm" mnemonic="DECSDM" title="Enable Sixel Display Mode">
                <ctlseq><param-single/> = 80</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-8-0.1EC5"/>
                <termsupp first="vt330" series="vt" additional="vt340 xt wt"/>
            </section>
            <section role="parameter" id="wy161" badges="wy370" mnemonic="WY161" title="161-column mode">
                <ctlseq><param-single/> = 80</ctlseq>
                <ref src="wy370:26"/>
                <p>Switch to 161-column mode</p>
            </section>
            <!-- TODO: Mode 81 - DECKPM - Key Position Mode
                        Currently down as non-private as thats what the VT420 and VT520
                        manuals say, while the VT510 manual claims its private. Need to test.-->
            <section role="parameter" id="wy52" badges="wy370" mnemonic="WY52" title="52 line mode ">
                <ctlseq><param-single/> = 83</ctlseq>
                <ref src="wy370:26"/>
                <p>Switch to 52 line mode</p>
            </section>
            <section role="parameter" id="wyenat" not-implemented="true" mnemonic="WYENAT" title="Erasable/non-erasable attribute select">
                <ctlseq><param-single/> = 84</ctlseq>
                <ref src="wy370:26"/>
                <p>
                    enable separate assignment of SGR attributes to erasable
                    and non-erasable characters
                </p>
            </section>
            <section role="parameter" id="wyrepl" not-implemented="true"
                     mnemonic="WYREPL" title="Replacement character color">
                <ref src="wy370:26"/>
                <ctlseq><param-single/> = 85</ctlseq>
                <p>
                    set replacement character to current character background
                    color
                </p>
            </section>
            <!-- TODO: Mode 90 - DECTHAISCM - Thai Space Compensating Mode -->
            <section role="parameter" id="decncsm" mnemonic="DECNCSM"
                     title="No Clearing Screen on Column Change Mode"
                     groups="isvt520 isxterm">
                <ctlseq><param-single/> = 95</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-9-5.1ECB"/>
                <ref src="vt510:DECNCSM.html"/>
                <ref src="vt52x:228"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>
                    Disables clearing of the terminal screen when the size is
                    changed. This is equivalent to
                    <tt>SET TERM CLEAR-ON-RESIZE OFF</tt>
                </p>
            </section>
            <section role="parameter" id="decrlcm" mnemonic="DECRLCM"
                     title="Right-to-Left Copy Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 96</ctlseq>
                <ref src="vt510:DECRLCM.html"/>
                <ref src="vt52x:246"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="deccrtsm" mnemonic="DECCRTSM"
                     title="Set/Reset CRT Saver Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 97</ctlseq>
                <ref src="vt510:DECCRTSM.html"/>
                <ref src="vt52x:191"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decarsm" mnemonic="DECARSM"
                     title="Set/Reset Auto Resize Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 98</ctlseq>
                <ref src="vt510:DECARSM.html"/>
                <ref src="vt52x:175"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decmcm" mnemonic="DECMCM"
                     title="Modem Control Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 99</ctlseq>
                <ref src="vt510:DECMCM.html"/>
                <ref src="vt52x:227"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decaam" mnemonic="DECAAM"
                     title="Set/Reset Auto Answerback Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 100</ctlseq>
                <ref src="vt510:DECAAM.html"/>
                <ref src="vt52x:169"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="deccansm" mnemonic="DECCANSM"
                     title="Conceal Answerback Message Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 101</ctlseq>
                <ref src="vt510:DECCANSM.html"/>
                <ref src="vt52x:181"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decnulm" mnemonic="DECNULM"
                     title="Null Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 102</ctlseq>
                <ref src="vt510:DECNULM.html"/>
                <ref src="vt52x:230"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="dechdpxm" mnemonic="DECHDPXM"
                     title="Set/Reset Half-Duplex Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 103</ctlseq>
                <ref src="vt510:DECHDPXM.html"/>
                <ref src="vt52x:210"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="deceskm" mnemonic="DECESKM"
                     title="Enable Secondary Keyboard Language Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 104</ctlseq>
                <ref src="vt510:DECESKM.html"/>
                <ref src="vt52x:207"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decoscnm" mnemonic="DECOSCNM"
                     title="Set/Reset Overscan Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 106</ctlseq>
                <ref src="vt510:DECOSCNM.html"/>
                <ref src="vt52x:231"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decnumlk" mnemonic="DECNUMLK"
                     title="Num Lock Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 108</ctlseq>
                <ref src="vt510:DECNUMLK.html"/>
                <ref src="vt52x:230"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="deccapslk" mnemonic="DECCAPSLK"
                     title="Caps Lock Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 109</ctlseq>
                <ref src="vt510:DECCAPSLK.html"/>
                <ref src="vt52x:182"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decklhim" mnemonic="DECKLHIM"
                     title="Keyboard LED's Host Indicator Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 110</ctlseq>
                <ref src="vt510:DECKLHIM.html"/>
                <ref src="vt52x:219"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decfwm" mnemonic="DECFWM"
                     title="Set/Reset Framed Windows Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 111</ctlseq>
                <ref src="vt52x:210"/>
                <termsupp first="vt520" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decrpl" mnemonic="DECRPL"
                     title="Review Previous Lines Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 112</ctlseq>
                <ref src="vt52x:251"/>
                <termsupp first="vt520" series="vt" additional=""/>
            </section>
            <section role="parameter" id="dechwum" mnemonic="DECHWUM"
                     title="Host Wake-Up Mode (CRT and Energy Saver)"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 113</ctlseq>
                <ref src="vt52x:213"/>
                <termsupp first="vt520" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decatcum" mnemonic="DECATCUM"
                     title="Set/Reset Alternate Text Underline Mode">
                <ctlseq><param-single/> = 114</ctlseq>
                <ref src="vt52x:177"/>
                <termsupp first="vt525" series="vt" additional=""/>
                <p>
                    Enables true underline when in <a href="#decstglt-2">DECSTGLT
                    Alternate Color mode</a> allowing underlined text combined with
                    the underline color set via <a href="#decatc">DECATC</a>.
                </p>
            </section>
            <section role="parameter" id="decatcbm" mnemonic="DECATCBM"
                     title="Set/Reset Alternate Text Color Blink Mode">
                <ctlseq><param-single/> = 115</ctlseq>
                <ref src="vt52x:177"/>
                <termsupp first="vt525" series="vt" additional=""/>
                <p>
                    Enables true blink when in <a href="#decstglt-2">DECSTGLT
                    Alternate Color mode</a> allowing blinking text combined with
                    the blink color set via <a href="#decatc">DECATC</a>.
                </p>
            </section>
            <section role="parameter" id="decbbsm" mnemonic="DECBBSM"
                     title="Bold and Blink Style Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 116</ctlseq>
                <ref src="vt52x:179"/>
                <termsupp first="vt525" series="vt" additional=""/>
            </section>
            <section role="parameter" id="dececm" mnemonic="DECECM"
                     title="Erase Color Mode" groups="isvt525" badges="k95">
                <ctlseq><param-single/> = 117</ctlseq>
                <ref src="vt52x:202"/>
                <termsupp first="vt525" series="vt" additional="wt"/>
                <p>
                    Causes the default attribute as set by <tt>SET TERMINAL COLOR TERMINAL-SCREEN</tt>
                    to be used when clearing parts of the screen. This setting
                    can also be enabled with <tt>SET TERMINAL COLOR ERASE DEFAULT-COLOR</tt>.
                </p>
            </section>
            <section role="parameter" id="xt-sxym" title="XTERM - Send Mouse X&amp;Y on button press and release">
                <ctlseq><param-single/> = 1000</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-0.1F78"/>
                <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                <p>Sends mouse X &amp; Y on button press and release</p>
            </section>
            <section role="parameter" id="xt-hilite" not-implemented="true" title="XTERM - Use Hilite Mouse Tracking">
                <ctlseq><param-single/> = 1001</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-1.1F79"/>
            </section>
            <section role="parameter" id="xt-cmt" title="XTERM - Cell Motion Mouse Tracking">
                <ctlseq><param-single/> = 1002</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-2.1F7A"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Enables button event mouse reporting</p>
            </section>
            <section role="parameter" id="xt-ammt" title="XTERM - All Motion Mouse Tracking">
                <ctlseq><param-single/> = 1003</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-3.1F7B"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Enables all motion mouse tracking</p>
            </section>
            <section role="parameter" id="xt-sf" title="XTERM - Send FocusIn / FocusOut events">
                <ctlseq><param-single/> = 1004</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-4.1F7C"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>
                    K95G (Windows) only: send Focus-In and Focus-Out events.
                    When the Kermit terminal window is given focus, K95 will
                    transmit <tt><cc>CSI</cc> I</tt>, and when it looses focus it will
                    transmit <tt><cc>CSI</cc> O</tt>
                </p>
            </section>
            <section role="parameter" id="xt-utf8m" title="XTERM - Enable UTF-8 Mouse Mode">
                <ctlseq><param-single/> = 1005</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-5.1F7D"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
            </section>
            <section role="parameter" id="xt-sgrm" title="XTERM - Enable SGR Mouse Mode">
                <ctlseq><param-single/> = 1006</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-6.1F7E"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Enables SGR mouse reporting</p>
            </section>
            <section role="parameter" id="xt-asm" not-implemented="true"
                     title="XTERM - Enable Alternate Scroll Mode">
                <ctlseq><param-single/> = 1007</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-7.1F7F"/>
                <termsupp first="xterm" series="xt" additional="wt"/>
            </section>
            <section role="parameter" id="rxvt-stbt" not-implemented="true"
                     title="RXVT - Scroll to bottom on tty output">
                <ctlseq><param-single/> = 1010</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-0.1F79"/>
                <!-- TODO: but we could fairly support this feature. I don't see
                     a SET TERMINAL setting for it, but we could probably add
                     something under SET TERMINAL ROLL-MODE and do the same thing
                     that tt_rkeys[VTERM] does whenever a character arrives if
                     the user is currently viewing scrollback.
                     -->
            </section>
            <section role="parameter" id="rxvt-stbk"
                     title="RXVT - Scroll to bottom on key press">
                <ctlseq><param-single/> = 1011</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-1.1F7A"/>
                <p>
                    Causes the terminal screen to scroll to the bottom on keypress,
                    equivalent to <tt>set terminal roll-mode keystrokes restore-and-send</tt>.
                </p>
            </section>
            <section role="parameter" id="xt-fastscroll" mnemonic=""
                     title="Enable fastScroll resource"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1014</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-4.1F7D"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="urxvt-mm" title="URXVT - Enable URXVT Mouse Mode">
                <ctlseq><param-single/> = 1015</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-5.1F7E"/>
                <termsupp first="xterm" series="xt" additional="tt putty"/>
                <p>Enables URXVT mouse reporting</p>
            </section>
            <section role="parameter" id="xt-sgr-mouse-pixelmode" mnemonic=""
                     title="Enable SGR mouse PixelMode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1016</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-6.1F7F"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-interpret-meta" mnemonic=""
                     title="Interpret &quot;meta&quot; key">
                <ctlseq><param-single/> = 1034</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-4.1F7F"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Switches to the <tt>XTERM-META</tt> special keyboard mode, equivalent
                    to typing <tt>SET TERMINAL KEYBOARD-MODE XTERM-META</tt>. Causes
                    the meta key (Alt) to set the 8th bit on printable and control
                    characters shifting them into the 127-255 range.
                </p>
            </section>
            <section role="parameter" id="xt-ena-alt-numlk-mod" mnemonic=""
                     title="Enable special modifiers for alt and numlock keys"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1035</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-5.1F80"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-send-esc-meta" mnemonic=""
                     title="Send Esc when meta modifies a key">
                <ctlseq><param-single/> = 1036</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-6.1F81"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Switches to the <tt>META</tt> special keyboard mode, equivalent
                    to typing <tt>SET TERMINAL KEYBOARD-MODE META</tt>. Causes
                    the meta key (Alt) to send ESC. For example, Alt+x becomes ESC x.
                </p>
            </section>
            <!-- TODO: xterm -  -  -->
            <section role="parameter" id="xt-edit-keypad-delete-sends-del" mnemonic=""
                     title="Send DEL from the editing-keypad delete key"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1037</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-7.1F82"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-send-esc-alt" mnemonic=""
                     title="Send ESC when Alt modifies a key"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1039</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-9.1F84"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-keep-sel-not-highlighted" mnemonic=""
                     title="Keep selection even if not highlighted"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1040</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-0.1F7C"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-clip-sel" mnemonic=""
                     title="Use the CLIPBOARD selection"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1041</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-1.1F7D"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-urgency" mnemonic=""
                     title="Enable Urgency window hint when Ctrl+G is received">
                <ctlseq><param-single/> = 1042</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-2.1F7E"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Windows, GUI only:
                    When a bell is received causes the title bar and taskbar
                    button to flash. Depending on Windows version
                    the taskbar may remain highlighted until the window is
                    given focus.
                </p>
            </section>
            <section role="parameter" id="xt-raise-window" mnemonic=""
                     title="Enable raising of the window when Ctrl+G is received">
                <ctlseq><param-single/> = 1043</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-3.1F7F"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Windows, GUI only:
                    Windows does not allow an application to steal focus from
                    other applications (at least not without their cooperation).
                    Instead, this has the same behavior as mode 1042; it
                    causes the window to be flashed on a bell. This is inline
                    with the observed behavior of xterm under some window
                    managers on Linux, which enforce similar restrictions on
                    focus-stealing.
                </p>
                <p>
                    While the behavior of modes 1042 and 1043 may currently be
                    the same, Kermit 95 still treats them as separate
                    independent modes.
                </p>
            </section>
            <section role="parameter" id="xt-reuse-clip" mnemonic=""
                     title="Reuse the most recent data copied to CLIPBOARD"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1044</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-4.1F80"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-ext-rev-wrap" mnemonic=""
                     title="Extended reverse-wraparound mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1045</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-5.1F81"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-ena-altbuf" mnemonic=""
                     title="Enable switching to/from alternate screen buffer"
                     badges="k95" groups="isxterm">
                <ctlseq><param-single/> = 1046</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-6.1F82"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Enables switching to the alternate screen - equivalent to
                    <tt>SET TERM ALTERNATE-BUFFER ENABLED</tt>.
                </p>
            </section>
            <section role="parameter" id="xt-use-altbuf" mnemonic="" groups="isxterm"
                     title="Use alternate screen buffer" badges="k95">
                <ctlseq><param-single/> = 1047</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-7.1F83"/>
                <termsupp first="xterm" series="xt" additional="tt putty"/>
                <p>
                    Switch to the alternate screen
                </p>
            </section>
            <section role="parameter" id="xt-1048" mnemonic="" badges="k95"
                     title="Save cursor as in DECSC" groups="isxterm">
                <ctlseq><param-single/> = 1048</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-8.1F84"/>
                <termsupp first="xterm" series="xt" additional="tt putty"/>
                <p>
                    Identical behavior to <a href="#decsc">DECSC</a>. You can
                    restore the saved cursor by either resetting this mode, or
                    using <a href="#decrc">DECRC</a>.
                </p>
            </section>
            <section role="parameter" id="xt-1049" mnemonic="" badges="k95" groups="isxterm"
                     title="Use alternate screen buffer, saving and clearing">
                <ctlseq><param-single/> = 1049</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-9.1F85"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>
                    Saves the cursor using <a href="#decsc">DECSC</a>, switches
                    to the alternate screen, and clears the alternate screen.
                </p>
            </section>
            <section role="parameter" id="xt-1050" mnemonic=""
                     title="Set terminfo/termcap function-key mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1050</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-5-0.1F7D"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-1051" mnemonic=""
                     title="Set sun function-key mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1051</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-5-1.1F7E"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-1052" mnemonic=""
                     title="Set HP function-key mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1052</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-5-2.1F7F"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-1053" mnemonic=""
                     title="Set SCO function-key mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1053</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-5-3.1F80"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-1060" mnemonic=""
                     title="set legacy keyboard emulation, i.e, X11R6"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1060</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-6-0.1F7E"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-1061" mnemonic=""
                     title="Set VT220 keyboard emulation"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1061</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-6-1.1F7F"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-2001" mnemonic=""
                     title="Enable readline mouse button-1"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2001</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-1.1F7A"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-2002" mnemonic=""
                     title="Enable readline mouse button-2"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2002</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-2.1F7B"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-2003" mnemonic=""
                     title="Enable readline mouse button-3"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2003</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-3.1F7C"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-bpm" title="XTERM - Enable Bracketed Paste Mode">
                <ctlseq><param-single/> = 2004</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-4.1F7D"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Enables bracketed paste mode. <tt><cc>ESC</cc> [ 2 0 0 ~</tt> will be sent before the
                    pasted text, and <tt><cc>ESC</cc> [ 2 0 1 ~</tt> after it.
                </p>
            </section>
            <section role="parameter" id="xt-2005" mnemonic=""
                     title="Enable readline character-quoting"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2005</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-5.1F7E"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="xt-2006" mnemonic=""
                     title="Enable readline newline pasting"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2006</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-6.1F7F"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="bsu" mnemonic="BSU"
                     title="Begin Synchronized Output" badges="k95">
                <termsupp first="wt" series="xt" additional=""/>
                <ctlseq><param-single/> = 2026</ctlseq>
                <p>
                    Disables scheduled updating of the terminal screen from the
                    terminal buffer. While disabled, the terminal screen can
                    still be manually updated via
                    <a href="#xtwinops-refresh">XTWINOPS Refresh</a>. Screen
                    updates are re-enabled with <a href="#esu">ESU</a>. Only
                    available on Windows in the GUI version of Kermit 95 (K95G).
                </p>
                <p>
                    A timeout applies to this mode to prevent a crashed or
                    malicious application, or a lost network connection, from
                    keeping screen updates disabled forever. Synchronized
                    Output Mode will end automatically when the timeout
                    expires. Setting the mode repeatedly does not extend the
                    timeout, but the XTWINOPS Refresh control sequence does.
                </p>
            </section>
            <section role="parameter" id="decset-2027" mnemonic=""
                     title="Enable Grapheme Cluster Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2027</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
                <!-- This might be the spec:
                https://github.com/contour-terminal/terminal-unicode-core -->
            </section>
            <section role="parameter" id="tt-7727" mnemonic=""
                     title="Enable Application Escape mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 7727</ctlseq>
                <termsupp first="tt" series="tt" additional="tt"/>
            </section>
            <section role="parameter" id="tt-7786" mnemonic=""
                     title="Enable mouse wheel - cursor key translation"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 7786</ctlseq>
                <termsupp first="tt" series="tt" additional="tt"/>
            </section>
            <section role="parameter" id="tt-8200" mnemonic="TTCH"
                     title="Move cursor home when display is erased"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 8200</ctlseq>
                <termsupp first="tt" series="tt" additional="tt"/>
            </section>
            <section role="parameter" id="decset-9001" mnemonic=""
                     title="Enable Win32 Input Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 9001</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
                <!-- This is the spec:
                https://github.com/microsoft/terminal/blob/main/doc/specs/%234999%20-%20Improved%20keyboard%20handling%20in%20Conpty.md
                 -->
            </section>
        </section>
        <section role="ctlseq" id="zha-sm" title="Zenith, Heath and AnnArbor set mode">
            <ctlseq>CSI &gt; <param-multi/> h</ctlseq>
            <p>AnnArbor values 25 and up are parsed but not implemented.</p>

            <section role="parameter" id="zha-sm-1" title="Enable 25th line">
                <ctlseq><param-single/> = 1</ctlseq>
                <p>Disables the status line</p>
            </section>
            <section role="parameter" id="zha-sm-2" title="No Key Click">
                <ctlseq><param-single/> = 2</ctlseq>
                <p>Disables key click</p>
            </section>
            <section role="parameter" id="zha-sm-3" not-implemented="true" title="Hold Screen Mode">
                <ctlseq><param-single/> = 3</ctlseq>
            </section>
            <section role="parameter" id="zha-sm-4" title="Block Cursor">
                <ctlseq><param-single/> = 4</ctlseq>
                <p>Switches the cursor to a block</p>
            </section>
            <section role="parameter" id="zha-sm-5" title="Cursor Off">
                <ctlseq><param-single/> = 5</ctlseq>
                <p>Turns off the cursor</p>
            </section>
            <section role="parameter" id="zha-sm-6" not-implemented="true" title="Keypad Shifted">
                <ctlseq><param-single/> = 6</ctlseq>
                <p>
                    While K95 stores the keypad shifted setting, it does not
                    currently use this value for anything
                </p>
            </section>
            <section role="parameter" id="zha-sm-7" title="Alternate keypad mode">
                <ctlseq><param-single/> = 7</ctlseq>
                <p>Switches the keypad to application mode</p>
            </section>
            <section role="parameter" id="zha-sm-8" title="Auto Line Feed on receipt of CR">
                <ctlseq><param-single/> = 8</ctlseq>
                <p>Enables automatic line feed on receipt of CR</p>
            </section>
            <section role="parameter" id="zha-sm-9" title="Auto CR on receipt of LF">
                <ctlseq><param-single/> = 9</ctlseq>
                <p>Enables automatic carriage return on receipt of LF</p>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zMDM" title="Margin Bell Mode">
                <ctlseq><param-single/> = 25</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zKCM" title="Key Click Mode">
                <ctlseq><param-single/> = 26</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zKPCM" title="Key Pad Control Mode">
                <ctlseq><param-single/> = 27</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zKRM" title="Key Repeat Mode">
                <ctlseq><param-single/> = 28</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zRLM" title="Return Line Feed Mode">
                <ctlseq><param-single/> = 29</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zDBM" title="Destructive Backspace Mode">
                <ctlseq><param-single/> = 30</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zBKCM" title="Block Cursor Mode">
                <ctlseq><param-single/> = 31</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zBNCM" title="Blinking Cursor Mode">
                <ctlseq><param-single/> = 32</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zWFM" title="Wrap Forward Mode">
                <ctlseq><param-single/> = 33</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zWBM" title="Wrap Backward Mode">
                <ctlseq><param-single/> = 34</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zDDM" title="DEL character Display Mode">
                <ctlseq><param-single/> = 35</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zSPM" title="Scroll Page Mode">
                <ctlseq><param-single/> = 36</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zAXM" title="Auto Xoff/Xon Mode">
                <ctlseq><param-single/> = 37</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zAPM" title="Auto Pause Mode">
                <ctlseq><param-single/> = 38</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zSSM" title="Slow Scroll Mode">
                <ctlseq><param-single/> = 39</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zHDM" title="Half-Duplex Mod">
                <ctlseq><param-single/> = 40</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zTPDM" title="Transfer Pointer Display Mode">
                <ctlseq><param-single/> = 41</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zLTM" title="Line Transfer Mode">
                <ctlseq><param-single/> = 42</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zCSTM" title="Column Separator Transfer Mode">
                <ctlseq><param-single/> = 43</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zFSTM" title="Field Separator Transfer Mode">
                <ctlseq><param-single/> = 44</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zGRTM" title="Graphic Rendition Transfer Mode">
                <ctlseq><param-single/> = 45</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zAKDM" title="Auto Keyboard Disable Mode">
                <ctlseq><param-single/> = 46</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zFRM" title="Fast Repeat Mode">
                <ctlseq><param-single/> = 47</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zHAM" title="Hold in Area Mode">
                <ctlseq><param-single/> = 48</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zGAPM" title="Guarded Area Print Mode">
                <ctlseq><param-single/> = 49</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zACM" title="Alternate Cursor Mode">
                <ctlseq><param-single/> = 51</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zMKM" title="Meta Key Mode">
                <ctlseq><param-single/> = 52</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zCLIM" title="Caps Lock Invert Mode">
                <ctlseq><param-single/> = 53</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zINM" title="Ignore NUL Mode">
                <ctlseq><param-single/> = 54</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zCNM" title="CR New-Line Mode">
                <ctlseq><param-single/> = 55</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zICM" title="Invisible Cursor Mode">
                <ctlseq><param-single/> = 56</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zMMM" title="Meta Monitor Mode">
                <ctlseq><param-single/> = 57</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zIVM" title="Inverse Video Mode">
                <ctlseq><param-single/> = 59</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="Z8RCM" title="8-bit Remote Copy Mode">
                <ctlseq><param-single/> = 61</ctlseq>
            </section>
        </section>

        <!-- ######################### i ######################### -->
        <section role="ctlseq" id="mc" mnemonic="MC" title="Media Copy">
            <ctlseq>CSI <param-single/> i</ctlseq>
            <ref src="e48:64"/>
            <ref src="wy370:132"/>
            <ref src="070:713"/>
            <ref src="vt102:SC.2.2.14"/>
            <ref src="vt220:S4.14"/>
            <ref src="vt340:196"/>
            <ref src="vt420:233"/>
            <ref src="vt510:MC.html"/>
            <ref src="vt52x:342"/>
            <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt sco putty"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-i.1CA9"/>

            <section role="parameter" id="mc-0" title="Print whole screen (default)">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="vt102:SC.2.2.14"/>
                <ref src="vt220:S4.14"/>
                <ref src="vt340:197"/>
                <ref src="vt420:234"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:342"/>
                <ref src="wy370:131"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-i:Ps-=-0.1DFB"/>
                <!-- New in cko190. Apparently caused stack overflow on 16-bit OS/2 -->
                <p>
                    Prints the page that has the cursor.
                </p>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Initiate transfer from a primary auxiliary device">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="e48:64"/>
            </section>

            <section role="parameter" id="mc-2" title="Transmit Screen">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="e48:64"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:342"/>
                <ref src="wy370:131"/>
                <termsupp first="vt510" series="vt" additional="sco"/>
                <!-- For the WY370, MC-2 sends the current page data to the host
                    so it might not be related to DOUBLEVISION. The VT520 manual
                    also says this "Sends screen data through host port".

                <p>This is <em>possibly</em> to support the &quot;Instant Screen Read&quot;
                    feature of <a href="https://web.archive.org/web/19961110065943/http://www.maxtech.com/doublevision/index.html">
                        DOUBLEVISION</a> v1.x by Maxim Computer Technologies. This looks to be
                    a kind of remote control package - like TeamViewer but for terminals.
                </p>-->
                <p>If send-data is enabled (<tt>set terminal send-data on</tt>), every character
                    on the screen is transmitted to the host. If send-data is off, it sends
                    space characters instead. Attributes are not sent.
                </p>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Initiate transfer from a secondary auxiliary device">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="e48:64"/>
            </section>
            <section role="parameter" id="mc-4" title="Turn off Printer Controller (Transparent Print)">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-i:Ps-=-4.1DFF"/>
                <ref src="070:713"/>
                <ref src="vt102:SC.2.2.14"/>
                <ref src="vt220:S4.14"/>
                <ref src="vt340:197"/>
                <ref src="vt420:234"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:342"/>
                <ref src="wy370:131"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt putty"/>
                <p>Turns off Printer Controller (Transparent Print) mode</p>
            </section>
            <section role="parameter" id="mc-5" title="Printer Controller (Transparent Print)">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-i:Ps-=-5.1E00"/>
                <ref src="070:713"/>
                <ref src="vt102:SC.2.2.14"/>
                <ref src="vt220:S4.14"/>
                <ref src="vt340:197"/>
                <ref src="vt420:234"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:342"/>
                <ref src="wy370:131"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt putty"/>
                <p>Sends every character received to the configured printer</p>
            </section>
            <section role="parameter" id="mc-6" not-implemented="true"
                     title="Disable printer port receive" todo="true">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="e48:64"/>
                <ref src="wy370:131"/>
            </section>
            <section role="parameter" id="mc-7" not-implemented="true"
                     title="Enable printer port receive" todo="true">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="e48:64"/>
                <ref src="wy370:131"/>
            </section>
            <section role="parameter" id="mc-6dec" title="Turn off screen display">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:343"/>
            </section>
            <section role="parameter" id="mc-7dec" title="Turn on screen display">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:343"/>
                <p>Described in the VT125 manual, these are really ANSI Media Copy sequences
                    that should control the flow of data from the printer port to the host. In
                    Kermit 95, they just turn the screen off and on.</p>
            </section>
            <section role="parameter" id="mc-10" mnemonic=""
                     title="HTML screen dump"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-i:Ps-=-1-0.1E59"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="mc-11" mnemonic=""
                     title="SVG screen dump"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-i:Ps-=-1-1.1E5A"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
        </section>
        <section role="ctlseq" id="decmc" mnemonic="MC" title="Media Copy (DEC Private)">
            <ctlseq>CSI ? <param-single/> i</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-i.1D15"/>
            <ref src="vt220:S4.14"/>
            <ref src="vt340:196"/>
            <ref src="vt510:MC.html"/>
            <ref src="vt52x:342"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt510"/>
            <section role="parameter" id="decmc-1" title="Print cursor line">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="vt102:SC.2.2.14"/>
                <ref src="vt220:S4.14"/>
                <ref src="vt340:198"/>
                <ref src="vt420:235"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:343"/>
                <ref src="wy370:132"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt"/>
                <p>Sends the line the cursor is currently on to the configured printer</p>
                <!-- New in cko190. Apparently caused stack overflow on 16-bit OS/2 -->
            </section>
            <section role="parameter" id="decmc-3" title="Send line" todo="true"
                     not-implemented="true">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="wy370:132"/>
            </section>
            <section role="parameter" id="decmc-4" title="Turn off Auto-print">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="070:714"/>
                <ref src="vt102:SC.2.2.14"/>
                <ref src="vt340:197"/>
                <ref src="vt420:234"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:343"/>
                <termsupp first="vt102" series="vt" additional="vt330 vt340 vt420 vt510 tt"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-i:Ps-=-4.1DFF"/>
                <p>Turns off Auto-print</p>
                <!-- New in cko191 -->
            </section>
            <section role="parameter" id="decmc-5" title="Auto-print">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="070:714"/>
                <ref src="vt102:SC.2.2.14"/>
                <ref src="vt220:S4.14"/>
                <ref src="vt340:197"/>
                <ref src="vt420:234"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:343"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-i:Ps-=-5.1E00"/>
                <p>Enables Auto-print mode - sends each line to the configured printer as the
                    cursor leaves it (line feed, form feed, vertical tab, wrap)</p>
                <!-- New in cko191 -->
            </section>
            <section role="parameter" id="decmc-8" title="Stop Printer-to-Host Session"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 8</ctlseq>
                <ref src="vt340:198"/>
                <ref src="vt420:236"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:343"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                <p>Related to multiple-session support</p>
            </section>
            <section role="parameter" id="decmc-9" title="Start Printer-to-Host Session"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="vt340:198"/>
                <ref src="vt420:235"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:343"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                <p>Related to multiple-session support</p>
            </section>
            <section role="parameter" id="decmc-10" groups="isvt420 isvt330"
                     title="Print Composed Main Display">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-i:Ps-=-1-0.1EC5"/>
                <ref src="vt340:198"/>
                <ref src="vt420:235"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:343"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                <p>
                    Prints the visible screen regardless of which page the
                    cursor is on. Not affected by printer extent mode
                    (<a href="#decpex">DECPEX</a>).
                </p>
            </section>
            <section role="parameter" id="decmc-11" title="Print All Pages"
                     groups="isvt420 isvt330">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-i:Ps-=-1-1.1EC6"/>
                <ref src="vt340:198"/>
                <ref src="vt420:235"/>
                <ref src="vt510:MC.html"/>
                <ref src="vt52x:344"/>
                <ref src="070:709"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                <p>
                    Prints all pages. Affected by <a href="#decpex">DECPEX</a>.
                </p>
            </section>
            <section role="parameter" id="decmc-18"
                     title="Assign Printer to Active Host Session"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 18</ctlseq>
                <ref src="vt340:199"/>
                <ref src="vt420:236"/>
                <ref src="vt52x:344"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt520"/>
                <p>Related to multiple-session support</p>
            </section>
            <section role="parameter" id="decmc-19" title="Release Printer"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 19</ctlseq>
                <ref src="vt340:199"/>
                <ref src="vt420:236"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420"/>
                <p>Related to multiple-session support</p>
            </section>
        </section>

        <!-- ######################### j ######################### -->

        <section role="ctlseq" id="hpb" mnemonic="HPB"
                 title="Horizontal Position Backward"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> j</ctlseq>
            <ref src="e48:59"/>
            <termsupp first="ansi" series="vt" additional="tt"/>
        </section>

        <!-- ######################### k ######################### -->
        <section role="ctlseq" id="edk" mnemonic="EDK" title="Set Key Click">
            <ctlseq>CSI <param-single/> k</ctlseq>
            <termsupp first="sco" series="sco" additional=""/>
            <p>Turns key click off (<param-single/> = 1) or on (<param-single/> = 0)</p>
        </section>

        <section role="ctlseq" id="vpb" mnemonic="VPB"
                 title="Vertical Position Backward"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> k</ctlseq>
            <ref src="e48:59"/>
            <termsupp first="ansi" series="vt" additional="tt"/>
        </section>
        <section role="ctlseq" mnemonic="SCP" title="Select Character Path"
                 not-implemented="true" todo="true">
            <ref src="e48:72"/>
            <ctlseq>CSI <param-single/> ; <param-single/> SP k</ctlseq>
        </section>

        <!-- ######################### l ######################### -->
        <section role="ctlseq" id="ilu" title="Insert line up">
            <ctlseq>CSI = ? l</ctlseq>
            <ctlseq>CSI ? = l</ctlseq>
            <p>Insert line up.</p>
            <p>It is currently unknown which terminal this control sequence
                comes from, but its not anything from DEC. As such it does not
                obey <a href="#decvssm">DECVSSM/DECLRMM</a>.
            </p>
        </section>
        <section role="ctlseq" id="rm" mnemonic="RM" title="Reset Mode">
            <ctlseq>CSI <param-multi/> l</ctlseq>
            <ref src="e48:56"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-l.1CA6"/>
            <ref src="wy370:25"/>
            <ref src="070:388"/>
            <ref src="vt100:RM"/>
            <ref src="vt132:95"/>
            <ref src="vt220:S4.6.2"/>
            <ref src="vt420:286"/>
            <ref src="vt510:RM.html"/>
            <ref src="vt52x:349"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt420 vt510 tt linux sco putty dtterm wt"/>

            <section role="parameter" id="r-gatm" mnemonic="GATM" title="Guarded Area Transfer Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt132:86"/>
                <ref src="vt340:155"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" mnemonic="KAM" id="rm-2"
                     title="Keyboard unlocked">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="e48:56"/>
                <ref src="070:388"/>
                <ref src="wy370:26"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-l:Ps-=-2.1DFA"/>
                <ref src="vt220:S4.5.1"/>
                <ref src="vt340:184"/>
                <ref src="vt420:210"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:339"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt sco dtterm"/>
                <p>unlocks the keyboard</p>
            </section>
            <section role="parameter" badges="scoansi" id="rm-3-sco"
                     title="80 columns">
                <ctlseq><param-single/> = 3</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Switch to 80 column mode, clear screen, home cursor, and
                    clear the <a href="#lcf">Last Column Flag</a>.</p>
            </section>
            <section role="parameter" mnemonic="CRM" id="rm-3"
                     title="Controls Mode off">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="e48:56"/>
                <ref src="wy370:26"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:160"/>
                <termsupp first="vt510" series="vt" additional="linux"/>
            </section>
            <section role="parameter" badges="scoansi" id="rm-4-sco"
                     title="Jump Scroll">
                <ctlseq><param-single/> = 4</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>
                    Switch to Jump scrolling. Only has an effect in the console version of K95,
                    the GUI version (K95G) doesn't support smooth scrolling so is always in
                    jump scrolling mode.
                </p>
            </section>
            <section role="parameter" mnemonic="IRM" id="rm-4"
                     title="ANSI Insert Mode" groups="isvt102 isansi putty">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="e48:56"/>
                <ref src="070:393"/>
                <ref src="wy370:26"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-l:Ps-=-4.1DFC"/>
                <ref src="vt102:S2.2"/>
                <ref src="vt132:94"/>
                <ref src="vt220:S4.6.4"/>
                <ref src="vt340:133"/>
                <ref src="vt420:171"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:339"/>
                <termsupp first="vt102" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux dtterm wt"/>
                <p>
                    Turn off insert mode
                </p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="SRTM"
                     title="Status Report Transfer Mode">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" badges="scoansi" id="rm-6-sco"
                     title="Absolute Origin">
                <ctlseq><param-single/> = 6</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Clears the screen, homes the cursor and clears the
                    <a href="#lcf">Last Column Flag</a>.</p>
            </section>
            <section role="parameter" mnemonic="ERM" id="rm-6"
                     title="Erasure Mode Reset">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="e48:56"/>
                <ref src="vt132:92"/>
                <ref src="vt340:133"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Erasure mode reset</p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="VEM"
                     title="Line Editing Mode">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" badges="scoansi" id="rm-7"
                     title="Auto Wrap">
                <ctlseq><param-single/> = 7</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Turns off auto-wrap</p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="BDSM"
                     title="Bi-Directional Support Mode">
                <ctlseq><param-single/> = 8</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="DCSM"
                     title="Device Component Select Mode">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="HEM"
                     title="Character Editing Mode">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="PUM"
                     title="Positioning Unit Mode">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="e48:79"/>
                <p>Deprecated in ECMA-48 5th edition</p>
            </section>
            <section role="parameter" mnemonic="SRM" id="rm-12"
                     title="Send Receive Off">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="e48:56"/>
                <ref src="070:390"/>
                <ref src="wy370:26"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-l:Ps-=-1-2.1E58"/>
                <ref src="vt220:S4.6.5"/>
                <ref src="vt340:200"/>
                <ref src="vt420:238"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:358"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt putty dtterm"/>
                <p>Turns on local echo</p>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" not-implemented="true" id="rm-13"
                     mnemonic="FEAM" title="Format Effector Action Mode">
                <ref src="e48:79"/>
                <ctlseq><param-single/> = 13</ctlseq>
                <ref src="e48:56"/>
                <ref src="wy370:26"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="FETM"
                     title="Format Effector Transfer Mode">
                <ctlseq><param-single/> = 14</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" mnemonic="MATM" id="rm-15" todo="true"
                     title="Multiple Area Transfer Mode" not-implemented="true">
                <ctlseq><param-single/> = 15</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt340:157"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" not-implemented="true" id="rm-16"
                     mnemonic="TTM" title="Send through EOL or EOS">
                <ctlseq><param-single/> = 16</ctlseq>
                <ref src="e48:56"/>
                <ref src="wy370:26"/>
                <ref src="vt132:96"/>
                <ref src="vt340:153"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340 vt510"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" mnemonic="SATM" id="rm-17" todo="true"
                     title="Selected Area Transfer Mode" not-implemented="true">
                <ctlseq><param-single/> = 17</ctlseq>
                <ref src="e48:79"/>
                <ref src="vt340:156"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="TSM"
                     title="Tabulation Stop Mode">
                <ctlseq><param-single/> = 18</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="EBM"
                     title="Formerly: Editing Boundary Mode">
                <ctlseq><param-single/> = 19?</ctlseq>
                <ref src="e48:79"/>
                <p>Deprecated in ECMA-48 4th edition, removed in 5th.</p>
            </section>
            <section role="parameter" mnemonic="LNM" id="rm-20"
                     title="linefeed / newline mode">
                <ctlseq><param-single/> = 20</ctlseq>
                <ref src="e48:79"/>
                <ref src="e48:102"/>
                <ref src="070:312"/>
                <ref src="wy370:26"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-l:Ps-=-2-0.1E57"/>
                <ref src="vt100:LNM"/>
                <ref src="vt132:94"/>
                <ref src="vt220:S4.6.6"/>
                <ref src="vt340:185"/>
                <ref src="vt420:211"/>
                <ref src="vt510:DECRQM.html#T5-7"/>
                <ref src="vt52x:340"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Turns off terminal new line and display crlf</p>
                <p>This mode was deprecated in ECMA-48 4th edition and removed
                    in the 5th edition.</p>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="GRCM"
                     title="Graphic Rendition Combination">
                <ctlseq><param-single/> = 21</ctlseq>
                <ref src="e48:79"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true" mnemonic="ZDM"
                     title="Zero Default Mode">
                <ctlseq><param-single/> = 22</ctlseq>
                <ref src="e48:79"/>
                <p>Deprecated in ECMA-48 5th edition</p>
            </section>
            <section role="parameter" title="Cursor off" id="rm-25">
                <ctlseq><param-single/> = 25</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Disable cursor</p>
            </section>
            <section role="parameter" badges="wy370" id="rm-30"
                     mnemonic="WYDSCM" title="Turn display on">
                <ctlseq><param-single/> = 30</ctlseq>
                <ref src="wy370:26"/>
            </section>
            <section role="parameter" not-implemented="true" id="rm-30-sco"
                     badges="scoansi" title="Scrollbars Off">
                <termsupp first="sco" series="sco" additional=""/>
                <ctlseq><param-single/> = 30</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" id="rm-31"
                     mnemonic="WYSTLINM" title="Turn off status line">
                <ctlseq><param-single/> = 31</ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" not-implemented="true" id="rm-32"
                     mnemonic="WYCTRSAVM" title="Screen Saver on">
                <ctlseq><param-single/> = 32</ctlseq>
                <ref src="wy370:26"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" not-implemented="true" id="rm-33"
                     mnemonic="WYSTCURM" title="Cursor blinking">
                <ctlseq><param-single/> = 33</ctlseq>
                <ref src="wy370:26"/>
                <termsupp first="wy370" series="wyse" additional="tt"/>
                <p badges="scoansi">Ignored</p>
            </section>
            <section role="parameter" badges="wy370" mnemonic="WYULCURM" id="rm-34"
                     title="Block cursor">
                <ctlseq><param-single/> = 34</ctlseq>
                <ref src="wy370:26"/>
                <termsupp first="wy370" series="wyse" additional="tt putty"/>
                <p>Switch to block cursor</p>
            </section>
            <section role="parameter" not-implemented="true" id="rm-35"
                     mnemonic="WYCLRM" title="Width change clear on">
                <ctlseq><param-single/> = 35</ctlseq>
                <ref src="wy370:26"/>
            </section>
            <section role="parameter" not-implemented="true" id="rm-36"
                     mnemonic="WYDELKM" title="Set delete key to DEL/CAN">
                <ctlseq><param-single/> = 36</ctlseq>
                <ref src="wy370:26"/>
            </section>
            <section role="parameter" not-implemented="true" id="rm-37"
                     mnemonic="WHGATM" title="Send erasable characters">
                <ctlseq><param-single/> = 37</ctlseq>
                <ref src="wy370:26"/>
            </section>
            <section role="parameter" not-implemented="true" id="rm-38"
                     mnemonic="WYTEXM" title="Send scrolling region">
                <ctlseq><param-single/> = 38</ctlseq>
                <ref src="wy370:26"/>
            </section>
            <section role="parameter" not-implemented="true" id="rm-40"
                     mnemonic="WYEXTDM" title="Extra data line">
                <ctlseq><param-single/> = 40</ctlseq>
                <ref src="wy370:26"/>
            </section>
            <section role="parameter" badges="scoansi" id="rm-44"
                     title="Margin Bell Off">
                <ctlseq><param-single/> = 44</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Turn margin bell off</p>
            </section>
            <section role="parameter" badges="scoansi" id="rm-48"
                     title="Cursor off">
                <ctlseq><param-single/> = 48</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Disable cursor</p>
            </section>
            <section role="parameter" not-implemented="true" id="rm-50"
                     title="97801-5XX - Compose key table off">
                <ctlseq><param-single/> = 50</ctlseq>
                <p>Make compose key send Compose Key String</p>
            </section>
            <section role="parameter" id="rm-51" title="97801-5XX - Dead key table off">
                <ctlseq><param-single/> = 51</ctlseq>
            </section>
            <section role="parameter" badges="wy370" id="rm-53" title="80-character mode">
                <ctlseq><param-single/> = 53</ctlseq>
            </section>
            <section role="parameter" id="rm-81" mnemonic="DECKPM" title="Key Position Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 81</ctlseq>
                <ref src="vt420:217"/>
                <ref src="vt510:DECKPM.html"/>
                <ref src="vt52x:220"/>
                <termsupp first="vt420" series="vt" additional="vt510"/>
            </section>
            <section role="parameter" badges="scoansi" id="rm-1048" title="Cursor off">
                <ctlseq><param-single/> = 1048</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Disable cursor</p>
            </section>
        </section>
        <section role="ctlseq" id="decrst" mnemonic="DECRST" title="DEC Private Mode Reset">
            <ctlseq>
                CSI ? <param-multi/> l
            </ctlseq>
            <ref src="wy370:25"/>
            <ref src="070:388"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l.1D12"/>
            <ref src="vt100:S3.3.4"/>
            <ref src="vt132:95"/>
            <ref src="vt220:S4.6.2"/>
            <ref src="vt420:287"/>
            <ref src="vt510:RM.html"/>
            <ref src="vt52x:349"/>
            <termsupp first="vt100" series="vt" additional="tt linux putty dtterm wt"/>

            <p>DEC Private Mode Reset</p>
            <section role="parameter" id="r-decckm" mnemonic="DECCKM" title="Cursor key mode">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1.1E65"/>
                <ref src="vt100:DECCKM"/>
                <ref src="vt132:83"/>
                <ref src="vt220:S4.6.8"/>
                <ref src="vt340:187"/>
                <ref src="vt420:214"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:186"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Sets the arrow keys to normal</p>
            </section>
            <section role="parameter" id="r-decanm" mnemonic="DECANM" title="ANSI/VT52">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="wy370:26"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-2.1E66"/>
                <ref src="vt100:DECANM"/>
                <ref src="vt132:83"/>
                <ref src="vt220:S4.6.9"/>
                <ref src="vt420:349"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:172"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt420 vt510 putty wt"/>
                <p>Switches to VT52 mode</p>
            </section>
            <section role="parameter" id="r-deccolm" mnemonic="DECCOLM" title="80 Columns">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:326"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-3.1E67"/>
                <ref src="vt100:DECCOLM"/>
                <ref src="vt132:84"/>
                <ref src="vt220:S4.6.10"/>
                <ref src="vt420:153"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:188"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Switches the screen to 80 columns, clears margins, disables
                    <a href="#decvssm">DECVSSM/DECLRMM</a>, and homes the
                    cursor clearing the <a href="#lcf">Last Column Flag</a>.
                </p>
            </section>
            <section role="parameter" id="r-decsclm" mnemonic="DECSCLM" title="Jump scrolling">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4.1E68"/>
                <ref src="vt100:DECSCLM"/>
                <ref src="vt132:89"/>
                <ref src="vt220:S4.6.11"/>
                <ref src="vt340:201"/>
                <ref src="vt420:239"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:277"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 dtterm"/>
                <p>
                    Switches to Jump (fast) scrolling.
                </p>
                <p>
                    In K95G for VT220 and higher emulations this does not take
                    effect until after the next scroll event.
                </p>
            </section>
            <section role="parameter" mnemonic="DECSCNM" id="r-decscnm" title="Normal screen">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:349"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-5.1E69"/>
                <ref src="vt100:DECSCNM"/>
                <ref src="vt132:89"/>
                <ref src="vt220:S4.6.12"/>
                <ref src="vt340:201"/>
                <ref src="vt420:238"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:277"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Normal screen</p>
            </section>
            <section role="parameter" mnemonic="DECOM" id="r-decom" title="Absolute origin">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-6.1E6A"/>
                <ref src="vt100:DECOM"/>
                <ref src="vt132:86"/>
                <ref src="vt220:S4.6.13"/>
                <ref src="vt340:122"/>
                <ref src="vt420:157"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:231"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Normal cursor mode. Homes the cursor and clears the
                    <a href="#lcf">Last Column Flag</a>.</p>
            </section>
            <section role="parameter" mnemonic="DECAWM" id="r-decawm" title="Auto wrap">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-7.1E6B"/>
                <ref src="vt100:DECAWM"/>
                <ref src="vt132:83"/>
                <ref src="vt220:S4.6.14"/>
                <ref src="vt340:186"/>
                <ref src="vt420:213"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:179"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Turn off autowrap</p>
            </section>
            <section role="parameter" mnemonic="DECARM"
                     id="r-decarm" title="Auto repeat">
                <ctlseq><param-single/> = 8</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:528"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-8.1E6C"/>
                <ref src="vt100:DECARM"/>
                <ref src="vt132:83"/>
                <ref src="vt220:S4.6.15"/>
                <ref src="vt340:186"/>
                <ref src="vt420:212"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:173"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty wt"/>
                <p>Windows only: Turn off auto-repeat. Not supported on OS/2 as
                    the console does not supply key-up events.
                </p>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="DECINLM" id="r-decinlm" title="Interlace">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="vt100:DECINLM"/>
                <ref src="vt132:85"/>
                <termsupp first="vt100" series="vt" additional="vt132"/>
                <p>Turn off interlaced video</p>
            </section>
            <section role="parameter" title="Turn off X10 mouse reporting"
                     id="decrst-9-x10" groups="isansi" badges="linux k95 xterm">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-9.1E6D"/>
                <termsupp first="xterm" series="xt" additional="tt linux"/>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="DECEDM" id="r-decedm" title="Block mode off">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="wy370:26"/>
                <ref src="vt132:84"/>
                <ref src="vt340:150"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
            </section>
            <section role="parameter" id="decrst-10" mnemonic=""
                     title="Hide toolbar (rxvt)" badges="xterm k95">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0.1EC2"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    K95G only: hides the toolbar if it is currently visible
                </p>
            </section>
            <section role="parameter" id="r-decltm" mnemonic="DECLTM" title="Line Transmit Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="vt132:86"/>
                <ref src="vt340:152"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" id="r-deckanam" mnemonic="DECKANAM" title="Katakana Shift Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="vt382:142"/>
                <termsupp first="vt382" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decrst-12" mnemonic=""
                     title="Stop blinking cursor (AT&amp;T 610)">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-2.1EC4"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>
                    Turns off cursor blinking without affecting the cursor shape.
                    Both cursor shape and blink can be set with
                    <a href="#decscusr">DECSCUSR</a>.
                </p>
            </section>
            <section role="parameter" id="r-decscfdm" mnemonic="DECSCFDM" title="Space Compression/Field Delimiting Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 13</ctlseq>
                <ref src="vt132:89"/>
                <ref src="vt340:161"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" id="r-dectem" mnemonic="DECTEM" title="Transmit Execution Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 14</ctlseq>
                <ref src="vt132:90"/>
                <ref src="vt340:162"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" id="decrst-16" mnemonic="TTM"
                     title="Transfer Termination Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 16</ctlseq>
                <ref src="vt132:96"/>
                <termsupp first="vt132" series="vt" additional=""/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" id="r-decekem" mnemonic="DECEKEM" title="Edit Key Execution Mode"
                     not-implemented="true" todo="true" >
                <ctlseq><param-single/> = 16</ctlseq>
                <ref src="vt132:85"/>
                <ref src="vt340:150"/>
                <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                <p>Not Implemented: K95 does not support the VT132 block mode</p>
            </section>
            <section role="parameter" mnemonic="DECPFF" id="r-decpff" title="Print Form Feed">
                <ctlseq><param-single/> = 18</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-8.1ECA"/>
                <ref src="vt102:SC.2.2"/>
                <ref src="vt220:S4.6.16"/>
                <ref src="vt340:195"/>
                <ref src="vt420:233"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:237"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510"/>
                <p>Don't send form feed after printing screen</p>
            </section>
            <section role="parameter" mnemonic="DECPEX" id="r-decpex" title="Print extent">
                <ctlseq><param-single/> = 19</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-9.1ECB"/>
                <ref src="vt102:SC.2.2"/>
                <ref src="vt220:S4.6.17"/>
                <ref src="vt420:232"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:237"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt420 vt510 tt"/>
                <p>Print scrolling region, not full screen</p>
            </section>
            <section role="parameter" id="r-ov1" mnemonic="OV1" title="Overstrike"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 20</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-ba1" mnemonic="BA1" title="Local BASIC"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 21</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-ba2" mnemonic="BA2" title="Host BASIC"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 22</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-pk" mnemonic="PK" title="Programmed Keypad"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 23</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-ah" mnemonic="AH" title="Auto Hardcopy"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 24</ctlseq>
                <ref src="vk100:92"/>
                <termsupp first="vk100" series="vt" additional=""/>
            </section>
            <section role="parameter" title="High Density Printing"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 24</ctlseq>
                <ref src="tphb87:688"/>
                <!--<termsupp first="" series="print" additional=""/>-->
            </section>
            <section role="parameter" mnemonic="DECTCEM" id="r-dectcem" title="Cursor Off">
                <ctlseq><param-single/> = 25</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-2-5.1EC8"/>
                <ref src="vt220:S4.6.7"/>
                <ref src="vt340:175"/>
                <ref src="vt420:198"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Turn off cursor</p>
            </section>
            <section role="parameter" id="r-decpsp" mnemonic="DECPSP" title="Proportional Spacing"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 27</ctlseq>
                <ref src="tphb87:759"/>
                <!--<termsupp first="" series="print" additional=""/>-->
            </section>
            <section role="parameter" id="r-decpsm" mnemonic="DECPSM" title="Pitch Select Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 29</ctlseq>
                <ref src="tphb87:710"/>
                <!--<termsupp first="" series="print" additional=""/>-->
            </section>
            <section role="parameter" id="decrst-30" mnemonic=""
                     title="Don't show scrollbar (rxvt)"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 30</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-3-0.1EC4"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="DECRLM" id="r-decrlm" title="Right to Left Mode">
                <ctlseq><param-single/> = 34</ctlseq>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:247"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decrst-35" title="Enter english keyboard mode">
                <ctlseq><param-single/> = 35</ctlseq>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:212"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decrst-35-xt" mnemonic=""
                     title="Disable font-shifting functions (rxvt)"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 35</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-3-5.1EC9"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="DECHEM" id="r-dechem" title="Hebrew Encoding Mode">
                <ctlseq><param-single/> = 36</ctlseq>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:211"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" mnemonic="DECTEK" id="r-dectek" title="Exit Tektronix 4010/4014 mode">
                <ctlseq><param-single/> = 38</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="vt340g:234"/>
                <termsupp first="vt330" series="vt" additional="vt340 xt tt"/>
                <p>
                    Exits tektronix mode.
                    Tektronix mode doesn't currently do anything in K95.
                </p>
            </section>
            <section role="parameter" id="r-deccrnlm" mnemonic="DECCRNLM"
                     title="Carriage Return/New Line Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 40</ctlseq>
                <ref src="dap:112"/>
                <termsupp first="la30" series="print" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-40"
                     title="XTERM - Disallow 80 - 132 mode switch">
                <ctlseq><param-single/> = 40</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-0.1EC5"/>
                <termsupp first="xterm" series="xt" additional="dtterm wt"/>
            </section>
            <section role="parameter" id="r-decupm" mnemonic="DECUPM"
                     title="Unidirectional Print Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 41</ctlseq>
                <ref src="dap:145"/>
                <termsupp first="la30" series="print" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-41"
                     title="XTERM - No more(1) fix">
                <ctlseq><param-single/> = 41</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-1.1EC6"/>
                <termsupp first="xterm" series="xt" additional="dtterm"/>
            </section>
            <section role="parameter" mnemonic="DECNRCM" id="decrst-42"
                     title="8-bit multinational character set">
                <ctlseq><param-single/> = 42</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:381"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-2.1EC7"/>
                <ref src="vt220:S4.6.19"/>
                <ref src="vt420:111"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:229"/>
                <termsupp first="vt220" series="vt" additional="vt420 vt510"/>
                <p>Use 8-bit multinational character set</p>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-43"
                     mnemonic="DECGEPM" title="Graphics Normal Print mode">
                <ctlseq><param-single/> = 43</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-3.1EC8"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-44"
                     mnemonic="DECGPCM" title="Graphics Print Monochrome mode">
                <ctlseq><param-single/> = 44</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-4.1EC9"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <!-- TODO: dtterm, XTERM - Turn off margin bell -->
            </section>
            <section role="parameter" not-implemented="true" id="decrst-45"
                     mnemonic="DECGPCS" title="Graphics Print Color syntax = HLS">
                <ctlseq><param-single/> = 45</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-5.1ECA"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <!-- TODO: dtterm, XTERM - No Reverse-wraparound mode -->
            </section>
            <section role="parameter" not-implemented="true" id="decrst-46"
                     mnemonic="DECGPBM" title="Graphics Print No-Background mode">
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
                <ctlseq><param-single/> = 46</ctlseq>
                <!-- TODO: dtterm, XTERM - stop logging -->
            </section>
            <section role="parameter" id="decrst-46-xt" mnemonic=""
                     title="Stop Logging (xterm)"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 46</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-6.1ECB"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-47"
                     mnemonic="DECGRCM" title="Graphics Unrotated Print mode">
                <ctlseq><param-single/> = 47</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-7.1ECC"/>
                <ref src="vt340:235"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" not-implemented="true" id="xtnormbuf"
                     title="Use normal screen buffer (xterm)">
                <ctlseq><param-single/> = 47</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-7.1ECC"/>
                <termsupp first="xterm" series="xt" additional="tt putty"/>
                <p>
                    Not currently implemented as it conflicts with DECGRCM which
                    Kermit 95 may someday prefer to implement for the K95
                    terminal type.
                </p>
            </section>
            <section role="parameter" id="r-decbwrm" mnemonic="DECBWRM"
                     title="Black/White Reversal Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 51</ctlseq>
                <ref src="tphb87:790"/>
                <termsupp first="lcg01" series="print" additional=""/>
            </section>
            <section role="parameter" id="r-decopm" mnemonic="DECOPM"
                     title="Origin Placement Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 52</ctlseq>
                <ref src="tphb87:777"/>
                <termsupp first="ln03" series="print" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-53"
                     mnemonic="DEC131TM" title="VT131 Transmit">
                <ctlseq><param-single/> = 53</ctlseq>
                <ref src="vt340:154"/>
                <termsupp first="vt330" series="vt" additional="vt340"/>
            </section>
            <section role="parameter" id="r-decbpm" mnemonic="DECBPM"
                     title="Bold Page Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 55</ctlseq>
                <ref src="tphb87:790"/>
                <termsupp first="lgp01" series="print" additional=""/>
            </section>
            <section role="parameter" id="decrst-57" mnemonic="DECNAKB"
                     title="Greek keyboard mapping"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 57</ctlseq>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:264"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decipem" mnemonic="DECIPEM"
                     title="Enter/Return from IBM ProPrinter Emulation Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 58</ctlseq>
                <ref src="vt510:DECIPEM.html"/>
                <ref src="vt52x:216"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="rst-deckkdm" mnemonic="DECKKDM"
                     title="Katakana terminal mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 59</ctlseq>
                <termsupp first="vt382" series="vt" additional="tt"/>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-60"
                     mnemonic="DECHCCM" title="Horizontal cursor coupling">
                <ctlseq><param-single/> = 60</ctlseq>
                <ref src="070:340"/>
                <ref src="vt340:179"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt510"/>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-61"
                     mnemonic="DECVCCM" title="Vertical cursor coupling">
                <ctlseq><param-single/> = 61</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:341"/>
                <ref src="vt340:179"/>
                <ref src="vt420:205"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:324"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt520 vt510"/>
            </section>
            <section role="parameter" id="decrst-64" mnemonic="DECPCCM"
                     title="Page cursor coupling" groups="isvt330 isvt420">
                <ctlseq><param-single/> = 64</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:342"/>
                <ref src="vt340:180"/>
                <ref src="vt420:206"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:234"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
                <p>
                    Disable Page Cursor Coupling. When the cursor moves to another
                    page, the display stays where it is. Any updates to the screen
                    made while the cursor is on another page will not be visible
                    as that page will not be on screen.
                </p>
            </section>
            <section role="parameter" id="r-decbcmm" mnemonic="DECBCMM"
                     title="Business Color Matching Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 65</ctlseq>
                <ref src="lj250:130"/>
                <termsupp first="lj250" series="print" additional=""/>
            </section>
            <section role="parameter" mnemonic="DECNKM" id="decrst-66"
                     title="Numeric Keyboard - Numeric">
                <ctlseq><param-single/> = 66</ctlseq>
                <ref src="wy370:26"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-6-6.1ECD"/>
                <ref src="vt340:188"/>
                <ref src="vt420:215"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:229"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt wt"/>
                <p>Sets the keypad to normal</p>
            </section>
            <section role="parameter" mnemonic="DECBKM" id="decrst-67"
                     title="Backarrow sends DEL">
                <ctlseq><param-single/> = 67</ctlseq>
                <ref src="wy370:26"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-6-7.1ECE"/>
                <ref src="vt340:184"/>
                <ref src="vt420:210"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:180"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt wt"/>
                <p>Changes the keymap so that backarrow sends DEL. </p>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-68"
                     mnemonic="DECKBUM" title="Keyboard Usage - Typewriter mode">
                <ctlseq><param-single/> = 68</ctlseq>
                <ref src="wy370:26"/>
                <ref src="070:389"/>
                <ref src="vt340:189"/>
                <ref src="vt420:216"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:219"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                <p>
                    While K95 stores this setting, it doesn't do anything with it
                </p>
            </section>
            <section role="ctlseq" id="r-decvssm" mnemonic="DECVSSM"
                     title="Vertical Split Screen Mode (DECLRMM)"
                     groups="isvt420" badges="k95 xterm">
                <ctlseq>CSI <param-single/> 69</ctlseq>
                <ref src="070:284"/>
                <ref src="vt420:157"/>
                <ref src="vt510:DECLRMM.html"/>
                <ref src="vt52x:226"/>
                <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
                <implchk std070="true"/>
                <p>Called DECVSSM (Vertial Split Screen Mode) in the VT420
                    manual, and DECLRMM (Left Right Margin Mode) in the VT5xx.
                    Whatever you call it, this enables or disables the
                    <a href="#decslrmm">DECSLRMM</a> control sequence. When
                    DECSLRMM is enabled, <a href="#decdhl-top">DECDHL</a> and
                    <a href="#decdwl">DECDWL</a> are disabled.
                </p>
            </section>
            <section role="parameter" id="r-decfpm" mnemonic="DECFPM"
                     title="Force Plot Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 70</ctlseq>
                <ref src=""/>
                <termsupp first="lg06" series="print" additional=""/>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-73"
                     mnemonic="DECXRLM" title="Transmit rate limiting">
                <ctlseq><param-single/> = 73</ctlseq>
                <ref src="070:389"/>
                <ref src="vt510:DECRQM.html#T5-8"/>
                <ref src="vt52x:325"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="decrst-76" mnemonic="DECTPM" todo="true"
                     title="Transparent Paste Mode" not-implemented="true">
                <ctlseq><param-single/> = 76</ctlseq>
                <ref src="vws:109"/>
            </section>
            <section role="parameter" id="decrst-77" mnemonic="DECTCM" todo="true"
                     title="Transparent Copy Mode" not-implemented="true">
                <ctlseq><param-single/> = 77</ctlseq>
                <ref src="vws:109"/>
            </section>
            <section role="parameter" id="decrst-80" mnemonic="DECSDM"
                     title="Disable sixel display mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 80</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-8-0.1EC9"/>
                <termsupp first="vt330" series="vt" additional="vt340 xt wt"/>
                <!-- TODO: Disable Sixel Display Mode (DECSDM), VT330,
                        VT340, VT382.  Turns on "Sixel Scrolling" -->
            </section>
            <section role="parameter" badges="wy370" id="decrst-80-wy161"
                     mnemonic="WY161" title="80-column mode">
                <ctlseq><param-single/> = 80</ctlseq>
                <ref src="wy370:26"/>
            </section>
            <section role="parameter" badges="wy370" id="decrst-83"
                     mnemonic="WY52" title="24 line mode">
                <ctlseq><param-single/> = 83</ctlseq>
                <ref src="wy370:26"/>
                <p>Switches to 24 line mode</p>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-84"
                     badges="wy370" mnemonic="WYENAT" title="">
                <ctlseq><param-single/> = 84</ctlseq>
                <ref src="wy370:26"/>
                <p>Enable attribute assignment (SGR) to extend to both eraseable and
                    nonerasable characters</p>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-85"
                     badges="wy370" mnemonic="WYREPL" title="">
                <ctlseq><param-single/> = 85</ctlseq>
                <ref src="wy370:26"/>
                <p>
                    Set replacement character to color map background color
                </p>
            </section>
            <section role="parameter" id="r-decncsm" mnemonic="DECNCSM"
                     title="No Clearing Screen on Column Change Mode"
                     groups="isvt520 isxterm">
                <ctlseq><param-single/> = 95</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-9-5.1ECF"/>
                <ref src="vt510:DECNCSM.html"/>
                <ref src="vt52x:228"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>
                    Enables clearing of the screen when the terminal size is
                    changed. This does not affect <a href="#decscpp">DECSCPP</a>.
                    This is equivalent to <tt>SET TERM CLEAR-ON-RESIZE ON</tt>
                </p>
            </section>
            <section role="parameter" id="r-decrlcm" mnemonic="DECRLCM"
                     title="Right-to-Left Copy Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 96</ctlseq>
                <ref src="vt510:DECRLCM.html"/>
                <ref src="vt52x:246"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-deccrtsm" mnemonic="DECCRTSM"
                     title="Set/Reset CRT Saver Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 97</ctlseq>
                <ref src="vt510:DECCRTSM.html"/>
                <ref src="vt52x:191"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decarsm" mnemonic="DECARSM"
                     title="Set/Reset Auto Resize Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 98</ctlseq>
                <ref src="vt510:DECARSM.html"/>
                <ref src="vt52x:175"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decmcm" mnemonic="DECMCM"
                     title="Modem Control Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 99</ctlseq>
                <ref src="vt510:DECMCM.html"/>
                <ref src="vt52x:227"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decaam" mnemonic="DECAAM"
                     title="Set/Reset Auto Answerback Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 100</ctlseq>
                <ref src="vt510:DECAAM.html"/>
                <ref src="vt52x:169"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-deccansm" mnemonic="DECCANSM"
                     title="Conceal Answerback Message Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 101</ctlseq>
                <ref src="vt510:DECCANSM.html"/>
                <ref src="vt52x:181"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decnulm" mnemonic="DECNULM"
                     title="Null Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 102</ctlseq>
                <ref src="vt510:DECNULM.html"/>
                <ref src="vt52x:230"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-dechdpxm" mnemonic="DECHDPXM"
                     title="Set/Reset Half-Duplex Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 103</ctlseq>
                <ref src="vt510:DECHDPXM.html"/>
                <ref src="vt52x:210"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-deceskm" mnemonic="DECESKM"
                     title="Enable Secondary Keyboard Language Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 104</ctlseq>
                <ref src="vt510:DECESKM.html"/>
                <ref src="vt52x:207"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decoscnm" mnemonic="DECOSCNM"
                     title="Set/Reset Overscan Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 106</ctlseq>
                <ref src="vt510:DECOSCNM.html"/>
                <ref src="vt52x:231"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decnumlk" mnemonic="DECNUMLK"
                     title="Num Lock Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 108</ctlseq>
                <ref src="vt510:DECNUMLK.html"/>
                <ref src="vt52x:230"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-deccapslk" mnemonic="DECCAPSLK"
                     title="Caps Lock Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 109</ctlseq>
                <ref src="vt510:DECCAPSLK.html"/>
                <ref src="vt52x:182"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decklhim" mnemonic="DECKLHIM"
                     title="Keyboard LED's Host Indicator Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 110</ctlseq>
                <ref src="vt510:DECKLHIM.html"/>
                <ref src="vt52x:219"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decfwm" mnemonic="DECFWM"
                     title="Set/Reset Framed Windows Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 111</ctlseq>
                <ref src="vt52x:210"/>
                <termsupp first="vt520" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decrpl" mnemonic="DECRPL"
                     title="Review Previous Lines Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 112</ctlseq>
                <ref src="vt52x:251"/>
                <termsupp first="vt520" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-dechwum" mnemonic="DECHWUM"
                     title="Host Wake-Up Mode (CRT and Energy Saver)"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 113</ctlseq>
                <ref src="vt52x:213"/>
                <termsupp first="vt520" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-decatcum" mnemonic="DECATCUM"
                     title="Set/Reset Alternate Text Underline Mode">
                <ctlseq><param-single/> = 114</ctlseq>
                <ref src="vt52x:177"/>
                <termsupp first="vt525" series="vt" additional=""/>
                <p>
                    Disables true underline when in <a href="#decstglt-2">DECSTGLT
                    Alternate Color mode</a> causing the underline attribute to only
                    change the text color to that set via <a href="#decatc">DECATC</a>.
                </p>
            </section>
            <section role="parameter" id="r-decatcbm" mnemonic="DECATCBM"
                     title="Set/Reset Alternate Text Color Blink Mode">
                <ctlseq><param-single/> = 115</ctlseq>
                <ref src="vt52x:177"/>
                <termsupp first="vt525" series="vt" additional=""/>
                <p>
                    Disables true blink when in <a href="#decstglt-2">DECSTGLT
                    Alternate Color mode</a> causing the blink attribute to only
                    change the text color to that set via <a href="#decatc">DECATC</a>.
                </p>
            </section>
            <section role="parameter" id="r-decbbsm" mnemonic="DECBBSM"
                     title="Bold and Blink Style Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 116</ctlseq>
                <ref src="vt52x:179"/>
                <termsupp first="vt525" series="vt" additional=""/>
            </section>
            <section role="parameter" id="r-dececm" mnemonic="DECECM"
                     title="Erase Color Mode" groups="isvt525" badges="k95">
                <ctlseq><param-single/> = 117</ctlseq>
                <ref src="vt52x:202"/>
                <termsupp first="vt525" series="vt" additional="wt"/>
                <p>
                    Causes the current color as set by <a href="#sgr">SGR</a>
                    to be used when clearing parts of the screen. This setting
                    can also be enabled with
                    <tt>SET TERMINAL COLOR ERASE CURRENT-COLOR</tt>.
                </p>
            </section>
            <section role="parameter" id="decrst-1000"
                     title="XTERM - Don't Send Mouse X&amp;Y on button press and release">
                <ctlseq><param-single/> = 1000</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-0-0.1F7C"/>
                <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                <p>Disable X11 mouse reporting</p>
            </section>
            <section role="parameter" id="decrst-1001"
                     not-implemented="true" title="XTERM - Don't use Hilite Mouse Tracking">
                <ctlseq><param-single/> = 1001</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-0-1.1F7D"/>
            </section>
            <section role="parameter" id="decrst-1002"
                     title="XTERM - Cell Motion Mouse Tracking">
                <ctlseq><param-single/> = 1002</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-0-2.1F7E"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Turns off button-event mouse reporting</p>
            </section>
            <section role="parameter" id="decrst-1003"
                     title="XTERM - All Motion Mouse Tracking">
                <ctlseq><param-single/> = 1003</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-0-3.1F7F"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Turns off all mose reporting</p>
            </section>
            <section role="parameter" id="decrst-1004"
                     title="XTERM - Send FocusIn/FocusOut events">
                <ctlseq><param-single/> = 1004</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-0-4.1F80"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>
                    K95G (Windows) only: stops transmitting Focus-In and
                    Focus-Out events.
                </p>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-1005"
                     title="XTERM - UTF-8 Mouse Mode">
                <ctlseq><param-single/> = 1005</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-0-5.1F81"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
            </section>
            <section role="parameter" id="decrst-1006"
                     title="XTERM - Disable SGR Mouse Mode">
                <ctlseq><param-single/> = 1006</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-0-6.1F82"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Turns off SGR mouse reporting</p>
            </section>
            <section role="parameter" not-implemented="true" id="decrst-1007"
                     title="XTERM - Alternate Scroll Mode">
                <ctlseq><param-single/> = 1007</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-0-7.1F83"/>
                <termsupp first="xterm" series="xt" additional="wt"/>
            </section>
            <section role="parameter" not-implemented="true"  id="decrst-1010"
                     title="RXVT - Scroll to bottom on tty output">
                <ctlseq><param-single/> = 1010</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-1-0.1F7D"/>
            </section>
            <section role="parameter" id="decrst-1011"
                     title="RXVT - Scroll to bottom on key press">
                <ctlseq><param-single/> = 1011</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-1-1.1F7E"/>
                <p>
                    When viewing scrollback, causes the terminal screen to remain
                    where it is rather than scrolling to the bottom on keypress.
                    Equivalent to <tt>set terminal roll-mode keystrokes send</tt>.
                </p>
            </section>
            <section role="parameter" id="decrst-1014" mnemonic=""
                     title="disable fastScroll resource"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1014</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-1-4.1F81"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1015" mnemonic=""
                     title="Disable urxvt mouse mode">
                <ctlseq><param-single/> = 1015</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-1-5.1F82"/>
                <termsupp first="xterm" series="xt" additional="tt putty"/>
            </section>
            <section role="parameter" id="decrst-1016" mnemonic=""
                     title="Disable SGR mouse PixelMode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1016</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-1-6.1F83"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1034" mnemonic=""
                     title="Don't Interpret &quot;meta&quot; key">
                <ctlseq><param-single/> = 1034</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-3-4.1F83"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <!-- This is used for terminfo 'rmm' -->
                <p>
                    Switches the keyboard mode back to normal (english).
                </p>
            </section>
            <section role="parameter" id="decrst-1035" mnemonic=""
                     title="Disable special modifiers for alt and numlock keys"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1035</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-3-5.1F84"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1036" mnemonic=""
                     title="Don't Send Esc when meta modifies a key">
                <ctlseq><param-single/> = 1036</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-3-6.1F85"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Switches the keyboard mode back to normal (english).
                </p>
            </section>
            <section role="parameter" id="decrst-1037" mnemonic=""
                     title="Send VT220 Remove from the editing-keypad Delete key"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1037</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-3-7.1F86"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1039" mnemonic=""
                     title="Don't Send ESC when Alt modifies a key"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1039</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-3-9.1F88"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1040" mnemonic=""
                     title="Do not Keep selection even if not highlighted"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1040</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-0.1F80"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1041" mnemonic=""
                     title="Use the PRIMARY selection"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1041</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-1.1F81"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1042" mnemonic=""
                     title="Disable Urgency window manager hint when Ctrl+G is received">
                <ctlseq><param-single/> = 1042</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-2.1F82"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Windows only: Disables flashing the titlebar and taskbar
                    button when a bell is received.
                </p>
            </section>
            <section role="parameter" id="decrst-1043" mnemonic=""
                     title="Disable raising of the window when Ctrl+G is received">
                <ctlseq><param-single/> = 1043</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-3.1F83"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Windows only: Disables mode 1043 which has the same effect
                    as mode 1042 due to Windows (and usability) limitations.
                    While modes 1042 and 1043 may have the same effect,
                    disabling mode 1043 does <em>not</em> affect mode 1042 if it
                    is also enabled.
                </p>
            </section>
            <section role="parameter" id="decrst-1045" mnemonic=""
                     title="No Extended reverse-wraparound mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1045</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-5.1F85"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1046" mnemonic="" badges="k95" groups="isxterm"
                     title="Disable switching to/from alternate screen buffer">
                <ctlseq><param-single/> = 1046</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-6.1F86"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Disables switching to the alternate screen - equivalent to
                    <tt>SET TERM ALTERNATE-BUFFER DISABLED</tt>.
                </p>
            </section>
            <section role="parameter" id="decrst-1047" mnemonic=""
                     title="Use normal screen buffer" badges="k95" groups="isxterm">
                <ctlseq><param-single/> = 1047</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-7.1F87"/>
                <termsupp first="xterm" series="xt" additional="tt putty"/>
                <p>
                    Clear the alternate screen and switch back to the normal
                    screen, restoring which ever pages were active when
                    switching to the alternate screen.
                </p>
            </section>
            <section role="parameter" id="decrst-1048" mnemonic=""
                     title="Restore cursor as in DECRC" badges="k95" groups="isxterm">
                <ctlseq><param-single/> = 1048</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-8.1F88"/>
                <termsupp first="xterm" series="xt" additional="tt putty"/>
                <p>
                    Identical behavior to <a href="#decrc">DECRC</a>.
                </p>
            </section>
            <section role="parameter" id="decrst-1049" mnemonic=""
                     title="Return from alternate screen and restore cursor"
                     badges="k95" groups="isxterm">
                <ctlseq><param-single/> = 1049</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-4-9.1F89"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>
                    Returns from the alternate screen, and restores
                    the cursor using <a href="#decrc">DECRC</a>. Which ever
                    pages were active when switching to the alternate screen are
                    restored.
                </p>
            </section>
            <section role="parameter" id="decrst-1050" mnemonic=""
                     title="Reset terminfo/termcap function-key mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1050</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-5-0.1F81"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1051" mnemonic=""
                     title="Reset sun function-key mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1051</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-5-1.1F82"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1052" mnemonic=""
                     title="Reset HP function-key mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1052</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-5-2.1F83"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1053" mnemonic=""
                     title="Reset SCO function-key mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1053</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-5-3.1F84"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1060" mnemonic=""
                     title="Reset legacy keyboard emulation, i.e, X11R6"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1060</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-6-0.1F82"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-1061" mnemonic=""
                     title="Reset keyboard keyboard emulation to Sun/PC style"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1061</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0-6-1.1F83"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-2001" mnemonic=""
                     title="Disable readline mouse button-1"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2001</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-2-0-0-1.1F7E"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-2002" mnemonic=""
                     title="Disable readline mouse button-2"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2002</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-2-0-0-2.1F7F"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-2003" mnemonic=""
                     title="Disable readline mouse button-3"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2003</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-2-0-0-3.1F80"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-2004" title="XTERM - Disable Bracketed Paste Mode">
                <ctlseq><param-single/> = 2004</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-2-0-0-4.1F81"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Disable bracketed paste mode</p>
            </section>
            <section role="parameter" id="decrst-2005" mnemonic=""
                     title="Disable readline character-quoting"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2005</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-2-0-0-5.1F82"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="decrst-2006" mnemonic=""
                     title="Disable readline newline pasting"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2006</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-2-0-0-6.1F83"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="esu" mnemonic="ESU"
                     title="End Synchronized Output" badges="k95">
                <termsupp first="wt" series="xt" additional=""/>
                <ctlseq><param-single/> = 2026</ctlseq>
                <p>
                    Resumes scheduled updating of the terminal screen from the
                    terminal buffer.
                </p>
            </section>
            <section role="parameter" id="decrst-2027" mnemonic=""
                     title="Disable Grapheme Cluster Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 2027</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
            </section>
            <section role="parameter" id="r-tt-7727" mnemonic=""
                     title="Disable Application Escape mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 7727</ctlseq>
                <termsupp first="tt" series="tt" additional="tt"/>
            </section>
            <section role="parameter" id="r-tt-7786" mnemonic=""
                     title="Disable mouse wheel - cursor key translation"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 7786</ctlseq>
                <termsupp first="tt" series="tt" additional="tt"/>
            </section>
            <section role="parameter" id="r-tt-8200" mnemonic="TTCH"
                     title="Don't cursor home when display is erased"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 8200</ctlseq>
                <termsupp first="tt" series="tt" additional="tt"/>
            </section>
            <section role="parameter" id="decrst-9001" mnemonic=""
                     title="Disable Win32 Input Mode"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 9001</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
            </section>
        </section>
        <section role="ctlseq" id="crm" title="Zenith/Heath Mode Reset">
            <ctlseq>CIS &gt; <param-multi/> l</ctlseq>
            <p>AnnArbor values from 25 are not implemented</p>

            <section role="parameter" id="crm-1" title="Disable 25th line">
                <ctlseq><param-single/> = 1</ctlseq>
                <p>Enables the status line</p>
            </section>
            <section role="parameter" id="crm-2" title="Key Click">
                <ctlseq><param-single/> = 2</ctlseq>
                <p>Enables key click</p>
            </section>
            <section role="parameter" id="crm-3" not-implemented="true" title="Exit Hold Screen Mode">
                <ctlseq><param-single/> = 3</ctlseq>
            </section>
            <section role="parameter" id="crm-4" title="Underline Cursor">
                <ctlseq><param-single/> = 4</ctlseq>
            </section>
            <section role="parameter" id="crm-5" title="Cursor On">
                <ctlseq><param-single/> = 5</ctlseq>
            </section>
            <section role="parameter" id="crm-6" title="Keypad Unshifted">
                <ctlseq><param-single/> = 6</ctlseq>
            </section>
            <section role="parameter" id="crm-7" title="Exit Alternate keypad mode">
                <ctlseq><param-single/> = 7</ctlseq>
            </section>
            <section role="parameter" id="crm-8" title="No Auto Line Feed on receipt of CR">
                <ctlseq><param-single/> = 8</ctlseq>
            </section>
            <section role="parameter" id="crm-9" title="No Auto CR on receipt of LF">
                <ctlseq><param-single/> = 9</ctlseq>
            </section>

            <!-- Ann Arbor values -->
            <section role="parameter" not-implemented="true" mnemonic="zMDM" title="Margin Bell Mode">
                <ctlseq><param-single/> = 25</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zKCM" title="Key Click Mode">
                <ctlseq><param-single/> = 26</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zKPCM" title="Key Pad Control Mode">
                <ctlseq><param-single/> = 27</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zKRM" title="Key Repeat Mode">
                <ctlseq><param-single/> = 28</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zRLM" title="Return Line Feed Mode">
                <ctlseq><param-single/> = 29</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zDBM" title="Destructive Backspace Mode">
                <ctlseq><param-single/> = 30</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zBKCM" title="Block Cursor Mode">
                <ctlseq><param-single/> = 31</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zBNCM" title="Blinking Cursor Mode">
                <ctlseq><param-single/> = 32</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zWFM" title="Wrap Forward Mode">
                <ctlseq><param-single/> = 33</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zWBM" title="Wrap Backward Mode">
                <ctlseq><param-single/> = 34</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zDDM" title="DEL character Display Mode">
                <ctlseq><param-single/> = 35</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zSPM" title="Scroll Page Mode">
                <ctlseq><param-single/> = 36</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zAXM" title="Auto Xoff/Xon Mode">
                <ctlseq><param-single/> = 37</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zAPM" title="Auto Pause Mode">
                <ctlseq><param-single/> = 38</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zSSM" title="Slow Scroll Mode">
                <ctlseq><param-single/> = 39</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zHDM" title="Half-Duplex Mode">
                <ctlseq><param-single/> = 40</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zTPDM" title="Transfer Pointer Display Mode">
                <ctlseq><param-single/> = 41</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zLTM" title="Line Transfer Mode">
                <ctlseq><param-single/> = 42</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zCSTM" title="Column Separator Transfer Mode">
                <ctlseq><param-single/> = 43</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zFSTM" title="Field Separator Transfer Mode">
                <ctlseq><param-single/> = 44</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zGRTM" title="Graphic Rendition Transfer Mode">
                <ctlseq><param-single/> = 45</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zAKDM" title="Auto Keyboard Disable Mode">
                <ctlseq><param-single/> = 46</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zFRM" title="Fast Repeat Mode">
                <ctlseq><param-single/> = 47</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zHAM" title="Hold in Area Mode">
                <ctlseq><param-single/> = 48</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zGAPM" title="Guarded Area Print Mode">
                <ctlseq><param-single/> = 49</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zACM" title="Alternate Cursor Mode">
                <ctlseq><param-single/> = 51</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zMKM" title="Meta Key Mode">
                <ctlseq><param-single/> = 52</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zCLIM" title="Caps Lock Invert Mode">
                <ctlseq><param-single/> = 53</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zINM" title="Ignore NUL Mode">
                <ctlseq><param-single/> = 54</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zCNM" title="CR New-Line Mode">
                <ctlseq><param-single/> = 55</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zICM" title="Invisible Cursor Mode">
                <ctlseq><param-single/> = 56</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zMMM" title="Meta Monitor Mode">
                <ctlseq><param-single/> = 57</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="zIVM" title="Inverse Video Mode">
                <ctlseq><param-single/> = 59</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" mnemonic="Z8RCM" title="8-bit Remote Copy Mode">
                <ctlseq><param-single/> = 61</ctlseq>
            </section>

        </section>

        <section role="ctlseq" id="chc" mnemonic="CHC" badges="sco"
                 title="Clear and Home Cursor (SCOANSI)">
            <ctlseq>CSI = l</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>
                Clears the screen, homes the cursor and
                clears the <a href="#lcf">Last Column Flag</a>.
                SCO OpenServer homes the cursor to the top left of the scrolling
                region, but K95 currently homes the cursor to the top left of
                the screen.
            </p>
            <!-- Documented here: http://osr600doc.xinuos.com/en/man/html.HW/screen.HW.html -->
        </section>


        <!-- ######################### m ######################### -->
        <section role="ctlseq" id="sudel" title="Scroll up one line deleting the previous">
            <ctlseq>CSI = ? }</ctlseq>
            <ctlseq>CSI ? = }</ctlseq>
            <ctlseq>CSI = ? m</ctlseq>
            <ctlseq>CSI ? = m</ctlseq>
            <p>It is currently unknown which terminal this control sequence
                comes from, but its not anything from DEC. As such it does not
                obey <a href="#decvssm">DECVSSM/DECLRMM</a>.
            </p>
        </section>
        <section badges="scoansi" role="ctlseq" id="ssm" mnemonic="SSM"
                 title="Set margin to specified value">
            <ctlseq>CSI = <param-single/> ; <param-single/> {</ctlseq>
            <ctlseq>CSI = <param-single/> ; <param-single/> m</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>
                Margins are numbered 0-3 top/bottom/left/right.
            </p>
            <p>The form of this control sequence ending with a `}` (
                <tt><cc>CSI</cc> = <param-single/> ; <param-single/> }</tt>)
                is marked with the comment &quot;why this?&quot; in the K95 source code
                &mdash; it is at this time uncertain if some particular terminal also
                accepts this form (or some particular application expects it), or if it is
                just a mistake/bug. Probably best not to rely on this behavior and instead
                use the one ending with `m`.
            </p>
        </section>
        <section role="ctlseq" id="sgr" mnemonic="SGR" title="Select Graphic Rendition">
            <ctlseq>CSI <param-multi/> m </ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m.1CA7"/>
            <ref src="e48:75"/>
            <ref src="wy370:77"/>
            <ref src="070:358"/>
            <ref src="vt100:SGR"/>
            <ref src="vt132:95"/>
            <ref src="vt220:S4.9.1"/>
            <ref src="vt340:129"/>
            <ref src="vt420:165"/>
            <ref src="vt510:SGR.html"/>
            <ref src="vt52x:355"/>
            <ref src="vws:111"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vws vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>

            <p>Character Attributes (SGR)</p>
            <section role="parameter" id="sgr-0" title="Normal (default), VT100">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="e48:75"/>
                <ref src="070:358"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-0.1DF9"/>
                <ref src="vt100:SGR"/>
                <ref src="vt132:95"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>Sets all attributes to normal (off/false): blinking, italic, bold, invisible,
                    underlined, reversed, graphic, dim, wyse, hyperlink, sco8bit.</p>
                <p groups="isansi">
                    Also sets crm to off/false.
                </p>
            </section>
            <section role="parameter" id="sgr-1" title="Turn on Bold">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="e48:75"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1.1DFA"/>
                <ref src="vt100:SGR"/>
                <ref src="vt132:95"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt340 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>
                    Turns on the Bold attribute. ECMA-48 leaves presentation up
                    to the implementation saying it can be a bold font or
                    increased intensity. <em>Usually</em> it was implemented as
                    increased intensity on hardware terminals, and when color
                    appeared it was often used to gain access to brighter
                    versions of the standard eight colors specified by ECMA-48.
                    <a href="#sgr-90">SGR-90 to 97</a> and
                    <a href="#sgr-100">SGR-100 to 107</a> which provide direct
                    access to these eight brighter colors are a later
                    non-standard extension from IBMs aixterm terminal
                </p>
                <p>
                    In the Console version of Kermit 95 (OS/2, Windows), bold
                    is always shown as a more intense color. The Windows GUI
                    version of Kermit 95 (K95G) by default uses a bold font in
                    addition to the more intense color.
                </p>
            </section>
            <section role="parameter" id="sgr-2-sco" badges="scoansi"
                     title="Set Foreground and Background Colour">
                <ctlseq><param-single/> = 2</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>
                    If processing of SGR colors is enabled (<tt>set term sgr-colors on</tt>),
                    the following two parameters are taken as the foreground (first parameter)
                    and background (second parameter) colors. The current intensity setting is
                    preserved (if the previous foreground color was intense blue, and the new
                    one is green, then the result will be intense green).
                    Valid color codes are:
                </p>
                <table>
                    <tr>
                        <th>Value</th>
                        <th>Color</th>
                    </tr>
                    <tr><td>0</td><td style="color: #000000;">Black</td></tr>
                    <tr><td>1</td><td style="color: #000080;">Blue</td></tr>
                    <tr><td>2</td><td style="color: #008000;">Green</td></tr>
                    <tr><td>3</td><td style="color: #008080;">Cyan</td></tr>
                    <tr><td>4</td><td style="color: #800000;">Red</td></tr>
                    <tr><td>5</td><td style="color: #800080;">Magenta</td></tr>
                    <tr><td>6</td><td style="color: #808000;">Brown</td></tr>
                    <tr><td>7</td><td style="color: #C0C0C0;">Light Grey</td></tr>
                </table>
            </section>
            <section role="parameter" id="sgr-2-dim" title="Turn on Faint/Dim">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="e48:75"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2.1DFB"/>
                <termsupp first="xterm" series="xt" additional="linux putty dtterm wt"/>
                <p>
                    Turns on the Faint/Dim (decreased intensity) attribute. In
                    K95G this reduces each component the foreground color by
                    half.
                </p>
            </section>
            <section role="parameter" id="sgr-3" title="Turn on Italic">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="e48:75"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3.1DFC"/>
                <termsupp first="xterm" series="xt" additional="linux sco wt"/>
                <p>Turns on the Italic attribute.</p>
                <p badges="scoansi"> The following
                    parameter is supposed to indicate blink or bold background.
                    K95 does not handle this so it is skipped.
                    <!-- If colorreset, then colors are reset first -->
                </p>
            </section>
            <section role="parameter" id="sgr-4" title="Turn on Underline">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="e48:75"/>
                <ref src="070:358"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4.1DFD"/>
                <ref src="vt100:SGR"/>
                <ref src="vt132:95"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>Turns on the Underline attribute</p>
                <p badges="at386">
                    If underline support is disabled
                    (In K95G with <tt>set terminal attribute underline off</tt>) or unsupported
                    (in K95.EXE), the color set with <tt>set terminal color underline</tt> is used
                    instead of setting the underline attribute.
                </p>
            </section>
            <section role="parameter" id="sgr-5-b" badges="scoansi" title="Turn on Blink">
                <ctlseq><param-single/> = 5</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>
                    Turns on the Blink attribute.
                </p>
            </section>
            <section role="parameter" id="sgr-5-sb" title="Turn on Slow Blink">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="e48:75"/>
                <ref src="070:358"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-5.1DFE"/>
                <ref src="vt100:SGR"/>
                <ref src="vt132:95"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>
                    K95 does not currently differentiate between Blink and
                    Slow Blink, so this just sets the blink attribute.
                </p>
                <!-- dtterm doesn't support blink, and treats it as a synonym for SGR-7 (inverse video) -->
            </section>
            <section role="parameter" badges="scoansi" id="sgr-6-nb"
                     title="Turn off Blink">
                <ctlseq><param-single/> = 6</ctlseq>
                <termsupp first="sco" series="sco" additional="putty"/>
                <p>Turns off the blink attribute</p>
            </section>
            <section role="parameter" title="Turn on Fast Blink" id="sgr-6-fb">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="e48:75"/>
                <termsupp first="wt" series="wt" additional=""/>
                <p>Sets the blink attribute</p> <!-- Does the same for WT -->
            </section>
            <section role="parameter" badges="at386" id="sgr-7-sc"
                     title="Swap foreground and background colours">
                <ctlseq><param-single/> = 7</ctlseq>
                <p>Swaps the foreground and background colours</p>
            </section>
            <section role="parameter" id="sgr-7-rv" title="Turn on Reverse Video">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="e48:75"/>
                <ref src="070:358"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-7.1E00"/>
                <ref src="vt100:SGR"/>
                <ref src="vt132:95"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>Turns on the Reverse Video attribute.</p>
            </section>
            <section role="parameter" id="sgr-8" title="Turn on Invisible attribute">
                <ctlseq><param-single/> = 8</ctlseq>
                <ref src="e48:75"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-8.1E01"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 sco dtterm wt"/>
                <p>Turns on the Invisible attribute. </p>
            </section>
            <section role="parameter" badges="qansi" id="sgr-9-inv"
                     title="Turn on Invisible attribute">
                <ctlseq><param-single/> = 9</ctlseq>
                <p>Turns on the Invisible attribute.</p>
            </section>
            <section role="parameter" id="sgr-9-co"
                     title="Crossed-out characters">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="e48:75"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9.1E02"/>
                <termsupp first="xterm" series="xt" additional="putty wt"/>
                <p>Turns on the Crossed-out attribute.</p>
            </section>
            <section role="parameter" groups="isansi" badges="beos" id="sgr-10-ansi"
                     title="Select Primary Font">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <termsupp first="vt510" series="sco" additional="sco putty"/>
                <p> The ASCII Character Set is the current 7-bit display character
                    set (SCO Console Emulation).
                    <!--Disables sco8bit and crm modes, turns off the graphic attribute, switches
                    to graphic set G1. If in SCOANSI backwards compatibility mode, colors
                    are reset.-->
                </p>
            </section>

            <!--
            SGR 10-19 are used for selecting fonts in DEC printers
            -->
            <section role="parameter" id="sgr-10-19" title="Select Font"
                    not-implemented="true" todo="true">
                <ctlseq><param-single/> = 10-19</ctlseq>
                <ref src="e48:75"/>
                <ref src="dap:169"/>
                <p>
                    DEC Printers - select a font
                </p>
            </section>

            <section role="parameter" badges="qansi linux" id="sgr-10-linux"
                     title="Select Primary Font">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="e48:75"/>
                <p>
                    Disables display of C0 control codes and shifting of all
                    other characters, restores graphic sets.
                    <!-- Copies QsavedG[] into G[] -->
                </p>
            </section>
            <section role="parameter" groups="isansi" id="sgr-11-ansi"
                     title="Display GL Control Characters as Graphic Characters">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <termsupp first="vt510" series="sco" additional="sco putty"/>
                <p>
                    Hex 00–7F of the PC character set codes are mapped to the
                    current 7-bit display character set. This results in C0
                    control codes being displayed as graphic characters, rather
                    than being interpreted as control codes. For example, if the
                    current remote character set is CP437, then the LF character
                    would be rendered as the '◙' character rather than causing
                    a line feed.
                </p>
                <!--Turns off sco8bit, turns on crm, switches to graphic set G2, and switches
                    colors to the color set with <tt>set term color graphic</tt>. If in SCOANSI
                    backwards compatibility mode, colors are reset.-->
            </section>
            <section role="parameter" badges="linux" id="sgr-11-linux"
                     title="Display GL Control Characters as Graphic Characters">
                <ctlseq><param-single/> = 11</ctlseq>
                <p>Switches to the CP437 character set. C0 control characters are
                    displayed as graphic characters, while all others have their
                    8th bit set.
                </p>
            </section>
            <section role="parameter" badges="qansi" id="sgr-11-qansi"
                     title="Display GL Control Characters as Graphic Characters">
                <ctlseq><param-single/> = 11</ctlseq>
                <p>Sets G1/G2/G3 to IBM C0 Graphics. C0 control characters are
                    displayed as graphic characters, while all others have their
                    8th bit set.</p>
            </section>
            <section role="parameter" badges="linux" id="sgr-12" title="Select null mapping">
                <ctlseq><param-single/> = 12</ctlseq>
                <p>
                    Select null mapping (CP437). Enables display of C0 control
                    codes as graphic characters, all other characters have their
                    8th bit set. Sets G1/G2/G3 to CP437.
                </p>
            </section>
            <section role="parameter" id="sgr-12-vt" title="Map 80-FF"
                not-implemented="true">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <termsupp first="vt510" series="sco" additional="sco putty"/>
                <p>
                    <!-- TODO: Is this the same as above currently flagged for
                            linux only? -->
                    Hex 80-FF of the current character set are mapped to the
                    current 7-bit display character set. This causes the 8th
                    bit to be set for any characters outside the C0 Control
                    character range.
                </p>
            </section>


            <section style="group" role="group">
                <!-- These are all commented with "IBM HFT" -->
                <section role="parameter" id="sgr-13"
                         title="Shift High Bit on before displaying characters">
                    <ctlseq><param-single/> = 13</ctlseq></section>
                    <termsupp first="sco" series="sco" additional=""/>
                <section role="parameter" id="sgr-14"
                         title="Shift High Bit on before displaying characters">
                    <ctlseq><param-single/> = 14</ctlseq></section>
                <section role="parameter" id="sgr-15"
                         title="Shift High Bit on before displaying characters">
                    <ctlseq><param-single/> = 15</ctlseq></section>
                <section role="parameter" id="sgr-16"
                         title="Shift High Bit on before displaying characters">
                    <ctlseq><param-single/> = 16</ctlseq></section>
                <section role="parameter" id="sgr-17" title="Shift High Bit on before displaying characters">
                    <ctlseq><param-single/> = 17</ctlseq>
                    <p groups="isansi" badges="beos">
                        Switches to G3 and sets the 8th bit on all characters
                        outside the C0 range.
                    </p>
                    <p badges="qansi">
                        Switches G1/G2/G3 to CP437 and sets the 8th bit on all
                        characters outside the C0 range.
                    </p>
                </section>
            </section>
            <section role="parameter" id="sgr-20" title="Fraktur (Gothic)"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 20</ctlseq>
                <ref src="e48:75"/>
            </section>
            <section role="parameter" id="sgr-21" title="Set Normal Intensity">
                <ctlseq><param-single/> = 21</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Turns off the Bold and Dim attributes</p>
            </section>
            <section role="parameter" id="sgr-21-ul"
                     badges="linux" title="Set Underlined">
                <ctlseq><param-single/> = 21</ctlseq>
                <termsupp first="linux" series="linux" additional="putty"/>
                <p>Set underlined attribute (since linux 4.17)</p>
            </section>
            <section role="parameter" id="sgr-21-ecma" mnemonic=""
                     title="Doubly-underlined"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 21</ctlseq>
                <ref src="e48:75"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2-1.1E59"/>
                <termsupp first="xterm" series="xt" additional="wt"/>
            </section>
            <section role="parameter" id="sgr-22" title="Normal (turn off bold and dim)">
                <ctlseq><param-single/> = 22</ctlseq>
                <ref src="e48:75"/>
                <ref src="070:358"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2-2.1E5A"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
                <p>Turns off the bold and dim attributes</p>
                <!-- Linux: Set normal intensity -->
            </section>
            <section role="parameter" id="sgr-23" title="Turn off Italic">
                <ctlseq><param-single/> = 23</ctlseq>
                <ref src="e48:75"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2-3.1E5B"/>
                <termsupp first="xterm" series="xt" additional="linux sco wt"/>
                <p>Turns off the italic attribute</p>
            </section>
            <section role="parameter" id="sgr-24" title="Turn off Underline">
                <ctlseq><param-single/> = 24</ctlseq>
                <ref src="e48:75"/>
                <ref src="070:358"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2-4.1E5C"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>Turns off the underline attribute</p>
            </section>
            <section role="parameter" id="sgr-25" title="Turn off Blink">
                <ctlseq><param-single/> = 25</ctlseq>
                <ref src="e48:75"/>
                <ref src="070:358"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2-5.1E5D"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>Turns off the blink attribute</p>
                <!-- in dtterm, this turns off inverse video (it treats blink as a synonym for inverse video) -->
            </section>
            <section role="parameter" id="sgr-26" not-implemented="true" todo="true"
                     title="Proportional Spacing">
                <ctlseq><param-single/> = 26</ctlseq>
                <ref src="e48:75"/>
                <p>Reserved for proportional spacing as specified in CCITT Recommendation T.61</p>
            </section>
            <section role="parameter" id="sgr-26-blink-on"
                     badges="scoansi" title="Turn on Blink">
                <ctlseq><param-single/> = 26</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>Turns on the Blink attribute</p>
            </section>
            <section role="parameter" id="sgr-26-blink-off" title="Turn off Blink">
                <ctlseq><param-single/> = 26</ctlseq>
                <p>Turns off the Blink attribute</p>
            </section>
            <section role="parameter" id="sgr-27" title="Turn off Reverse Video">
                <ctlseq><param-single/> = 27</ctlseq>
                <ref src="e48:75"/>
                <ref src="070:358"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2-7.1E5F"/>
                <ref src="vt220:S4.9.1"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt linux sco putty dtterm wt"/>
                <p>Turns off the Reverse Video attribute</p>
            </section>
            <section role="parameter"  id="sgr-28" title="Turn off Invisible">
                <ctlseq><param-single/> = 28</ctlseq>
                <ref src="e48:75"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2-8.1E60"/>
                <ref src="vt340:129"/>
                <ref src="vt420:165"/>
                <ref src="vt510:SGR.html"/>
                <ref src="vt52x:355"/>
                <ref src="vws:111"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 sco dtterm wt"/>
                <p>Turns off the Invisible attribute</p>
            </section>
            <section role="parameter" badges="qansi"
                     id="sgr-29-inv"
                     title="Turn off Invisible">
                <ctlseq><param-single/> = 29</ctlseq>
                <p>Turns off the Invisible attribute</p>
            </section>
            <section role="parameter" id="sgr-29-co"
                     title="Turn off crossed-out">
                <ctlseq><param-single/> = 29</ctlseq>
                <ref src="e48:75"/>
                <ref src="wy370:78"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-2-9.1E61"/>
                <termsupp first="xterm" series="xt" additional="putty wt"/>
                <p>Turns off the crossed-out attribute</p>
            </section>
            <section style="group" role="group">
                <section role="parameter" id="sgr-30" title="Set Black Foreground">
                    <ctlseq><param-single/> = 30</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-0.1E59"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:111"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-31" title="Set Red Foreground">
                    <ctlseq><param-single/> = 31</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-1.1E5A"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:111"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-32" title="Set Green Foreground">
                    <ctlseq><param-single/> = 32</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-2.1E5B"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:111"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-33" title="Set Yellow Foreground">
                    <ctlseq><param-single/> = 33</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-3.1E5C"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:111"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                    <p>Kermit 95 calls this color brown</p>
                </section>
                <section role="parameter" id="sgr-34" title="Set Blue Foreground">
                    <ctlseq><param-single/> = 34</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-4.1E5D"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:111"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-35" title="Set Magenta Foreground">
                    <ctlseq><param-single/> = 35</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-5.1E5E"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:111"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-36" title="Set Cyan Foreground">
                    <ctlseq><param-single/> = 36</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-6.1E5F"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:111"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-37" title="Set White Foreground">
                    <ctlseq><param-single/> = 37</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-7.1E60"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:111"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                    <p>
                        If processing of SGR colors is enabled (<tt>set term sgr-colors on</tt>),
                        sets the foreground color <em>preserving its intensity</em>.
                        This means that if the previously set color was one of the
                        eight intense aixterm colors (<a href="#sgr-90">SGR-90</a>
                        through SGR-97), <em>the result will be an intense
                        color</em>. The sequence <tt><cc>CSI</cc>92m<cc>CSI</cc>36m</tt>
                        will result in Bright Cyan even though the last control
                        sequence set normal Cyan (<tt><cc>CSI</cc>92m</tt> sets
                        the intensity bit, and <tt><cc>CSI</cc>36m</tt> preserves
                        it).
                    </p>
                    <p>
                        SGR-30 through -37 and -40 through -47 preserving intensity
                        is a longstanding behavior for Kermit 95 dating all the way
                        back to the early versions of OS/2 C-Kermit from the late 80s.
                        The original reason for this was likely due to its use of
                        intense colors for the bold attribute, a behavior common
                        to many hardware terminals at the time. This made the
                        sequence <tt><cc>CSI</cc>1;36m</tt> equivalent to
                        <tt><cc>CSI</cc>96m</tt>, though OS/2 C-Kermit didn't
                        support the AIXTERM extensions for setting intense colors
                        directly at this time. This behavior of preserving intensity
                        probably should have changed when the AIXTERM color
                        extension was later added to allow directly setting bright
                        colors, but for whatever reason it was not.
                    </p>
                    <p badges="scoansi">
                        Also sets the default foreground color, reverse video
                        background color, and the graphic attribute foreground
                        colour
                    </p>
                    <!-- TODO: Does the Linux console terminal preserve intensity?
                               What about real aixterm? -->
                    <p badges="k95 xterm">
                        As modern software tends to not expect a previous colors
                        intensity to be preserved outside explicit use of the bold
                        attribute, the K95 terminal type does not preserve intensity
                        for SGR-30 through -37 and -40 through -47. This change was
                        specifically to improve compatibility with other terminal
                        emulators and does not apply to other terminal types which
                        may be used for any older software that may rely on this
                        behavior (if there is any).
                    </p>
                </section>
            </section>
            <section role="parameter" not-implemented="true" id="sgr-38-ul"
                     title="Enable Underline Option">
                <ctlseq><param-single/> = 38</ctlseq>
                <p>
                    Comment for this one says, "Enable underline option." The terminal type this
                    behavior should be for is not mentioned, but it was probably for linux pre-3.16.
                    It is not implemented in any case.
                </p>
            </section>
            <section role="parameter" id="sgr-38-rgb" mnemonic=""
                     title="Set foreground to RGB values">
                <ctlseq><param-single/> = 38 : 2 : <param-single symbol="Pi"/> :
                    <param-single symbol="Pr"/> : <param-single symbol="Pg"/> :
                    <param-single symbol="Pb"/></ctlseq>
                <ref src="e48:76"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-8-colon-2-colon-Pi-colon-Pr-colon-Pg-colon-Pb.2DC0"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>
                    Sets the foreground color to the supplied 24-bit RGB value.
                    <param-single symbol="Pi"/> is the color space ID which is
                    currently ignored, and
                    <param-single symbol="Pr"/>/<param-single symbol="Pg"/>/<param-single symbol="Pb"/>
                    are the red, green and blue components (0–255).
                </p>
                <p>
                    If Kermit 95 has not been compiled with 24-bit RGB color
                    support, the nearest color in the current palette (as set
                    by SET TERM COLOR PALETTE) is used instead. In console
                    builds of Kermit 95 (k95.exe, k2.exe), this will always be
                    the 16-color aixterm palette.
                </p>
            </section>
            <section role="parameter" id="sgr-38-ic" mnemonic=""
                     title="Set foreground to indexed color">
                <ctlseq><param-single/> = 38 : 5 : <param-single/></ctlseq>
                <ref src="e48:76"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-8-colon-5-colon-Ps.2443"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>
                    Sets the foreground color to the specified color in the
                    current color palette (as set by SET TERM COLOR PALETTE).
                    Valid range is 0–15 for the aixterm-16 palette, 0–87 for the
                    xterm-88 palette, and 0–255 for the xterm-256 palette.
                </p>
                <p>
                    Console builds of Kermit 95 (k95.exe, k2.exe) only support
                    the aixterm 16-color palette. If the current color palette
                    is not aixterm-16, the specified color will
                    be looked up in that palette, and then the nearest match in
                    the aixterm-16 palette will be used instead.
                </p>
            </section>
            <section role="parameter" id="sgr-38-rgb-alt" mnemonic=""
                     title="Set foreground to RGB values (alternative/legacy)">
                <ctlseq><param-single/> = 38 ; 2 ;  <param-single symbol="Pr"/> ;
                    <param-single symbol="Pg"/> ; <param-single symbol="Pb"/></ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-8;2;Pr;Pg;Pb.21AA"/>
                <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                <p> <b>Warning:</b>
                    This does not properly conform to ISO-8613-6 and is likely
                    to produce surprising results (such as blinking text) in
                    terminals and terminal emulators that <em>do not specifically
                    support this extension</em>. It is supported by Kermit 95
                    only for compatibility with older xterm releases and Konsole.
                    Using <a href="#sgr-38-rgb">the standard syntax</a> is
                    strongly recommended.
                </p>
                <p>
                    Sets the foreground color to the supplied 24-bit RGB value.
                    <param-single symbol="Pr"/>/<param-single symbol="Pg"/>/<param-single symbol="Pb"/>
                    are the red, green and blue components (0–255).
                </p>
                <p>
                    If Kermit 95 has not been compiled with 24-bit RGB color
                    support, the nearest color in the current palette (as set
                    by SET TERM COLOR PALETTE) is used instead. In console
                    builds of Kermit 95 (k95.exe, k2.exe), this will always be
                    the 16-color aixterm palette.
                </p>
            </section>
            <section role="parameter" id="sgr-38-ic-alt" mnemonic=""
                     title="Set foreground to indexed color (alternative/legacy)">
                <ctlseq><param-single/> = 38 ; 5 ; <param-single/></ctlseq>
                <!-- xterm documentation doesn't mention support for this -->
                <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                <p> <b>Warning:</b>
                    This does not properly conform to ISO-8613-6 and is likely
                    to produce surprising results (such as blinking text) in
                    terminals and terminal emulators that <em>do not specifically
                    support this extension</em>. It is supported by Kermit 95
                    only for compatibility with older xterm releases and Konsole.
                    Using <a href="#sgr-38-ic">the standard syntax</a> is
                    strongly recommended.
                </p>
                <p>
                    Sets the foreground color to the specified color in the
                    current color palette (as set by SET TERM COLOR PALETTE).
                    Valid range is 0–15 for the aixterm-16 palette, 0–87 for the
                    xterm-88 palette, and 0–255 for the xterm-256 palette.
                </p>
                <p>
                    Console builds of Kermit 95 (k95.exe, k2.exe) only support
                    the aixterm 16-color palette. If the current color palette
                    is not aixterm-16, the specified color will
                    be looked up in that palette, and then the nearest match in
                    the aixterm-16 palette will be used instead.
                </p>
            </section>
            <section role="parameter" id="sgr-39"
                     title="Set foreground color to default">
                <ctlseq><param-single/> = 39</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-3-9.1E62"/>
                <ref src="e48:75"/>
                <ref src="vt52x:356"/>
                <ref src="vws:111"/>
                <termsupp first="vt525" series="vt" additional="tt sco putty dtterm wt"/>
                <p>This is processed for all terminal types, where it resets the foreground
                    color to the default value. The comments say:
                    Supported by SCO ANSI, for QANSI restore
                    foreground color saved with <tt><cc>CSI</cc> = Pn F</tt>.
                </p>
                <p>
                    If the default foreground color is one of the standard 16
                    colors, the foregrounds' existing intensity bit is preserved.
                    (for example, if the default FG color is green, and the current
                    FG color is intense blue, then the result will be intense green).
                </p>
                <p>
                    The comments also indicate this is used for "disable underline option"
                    on some unspecified terminal; presumably the inverse of <tt><cc>CSI</cc> 38 m</tt>
                </p>
            </section>
            <section style="group" role="group">
                <section role="parameter" id="sgr-40" title="Set Black Background">
                    <ctlseq><param-single/> = 40</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-0.1E5A"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:112"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-41" title="Set Red Background">
                    <ctlseq><param-single/> = 41</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-1.1E5B"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:112"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-42" title="Set Green Background">
                    <ctlseq><param-single/> = 42</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-2.1E5C"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:112"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-43" title="Set Yellow Background">
                    <ctlseq><param-single/> = 43</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-3.1E5D"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:112"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                    <p>Kermit 95 calls this color brown</p>
                </section>
                <section role="parameter" id="sgr-44" title="Set Blue Background">
                    <ctlseq><param-single/> = 44</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-4.1E5E"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:112"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-45" title="Set Magenta Background">
                    <ctlseq><param-single/> = 45</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-5.1E5F"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:112"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-46" title="Set Cyan Background">
                    <ctlseq><param-single/> = 46</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-6.1E60"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:112"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                </section>
                <section role="parameter" id="sgr-47" title="Set White Background">
                    <ctlseq><param-single/> = 47</ctlseq>
                    <ref src="e48:75"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-7.1E61"/>
                    <ref src="vt52x:356"/>
                    <ref src="vws:112"/>
                    <ref src="wy370:92"/>
                    <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                    <p>
                        If processing of SGR colors is enabled (<tt>set term sgr-colors on</tt>),
                        sets the background color <em>preserving its intensity</em>.
                        This means that if the previously set color was one of the
                        eight intense aixterm colors (<a href="#sgr-100">SGR-100</a>
                        through SGR-107), <em>the result will be an intense
                        color</em>. The sequence <tt><cc>CSI</cc>102m<cc>CSI</cc>46m</tt>
                        will result in Bright Cyan even though the last control
                        sequence set normal Cyan (<tt><cc>CSI</cc>102m</tt> sets
                        the intensity bit, and <tt><cc>CSI</cc>46m</tt> preserves
                        it).
                    </p>
                    <p badges="scoansi">
                        Also sets the default background color, reverse video
                        foreground color, and the graphic attribute background
                        colour
                    </p>
                    <p badges="k95 xterm">
                        The K95 terminal type <em>does not</em> preserve the
                        intensity bit. For more information, see the discussion
                        under <a href="#sgr-47">SGR-47</a>.
                    </p>
                </section>
            </section>

            <section role="parameter" id="sgr-48-rgb" mnemonic=""
                     title="Set background to RGB values">
                <ctlseq><param-single/> = 48 : 2 : <param-single symbol="Pi"/> :
                    <param-single symbol="Pr"/> : <param-single symbol="Pg"/> :
                    <param-single symbol="Pb"/> </ctlseq>
                <ref src="e48:76"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-8-colon-2-colon-Pi-colon-Pr-colon-Pg-colon-Pb.2DC1"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>
                    Sets the background color to the supplied 24-bit RGB value.
                    <param-single symbol="Pi"/> is the color space ID which is
                    currently ignored, and
                    <param-single symbol="Pr"/>/<param-single symbol="Pg"/>/<param-single symbol="Pb"/>
                    are the red, green and blue components (0–255).
                </p>
                <p>
                    If Kermit 95 has not been compiled with 24-bit RGB color
                    support, the nearest color in the current palette (as set
                    by SET TERM COLOR PALETTE) is used instead. In console
                    builds of Kermit 95 (k95.exe, k2.exe), this will always be
                    the 16-color aixterm palette.
                </p>
            </section>
            <section role="parameter" id="sgr-48-ic" mnemonic=""
                     title="Set background to indexed color">
                <ctlseq><param-single/> = 48 : 5 : <param-single/></ctlseq>
                <ref src="e48:76"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-8-colon-5-colon-Ps.2444"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <p>
                    Sets the background color to the specified color in the
                    current color palette (as set by SET TERM COLOR PALETTE).
                    Valid range is 0–15 for the aixterm-16 palette, 0–87 for the
                    xterm-88 palette, and 0–255 for the xterm-256 palette.
                </p>
                <p>
                    Console builds of Kermit 95 (k95.exe, k2.exe) only support
                    the aixterm 16-color palette. If the current color palette
                    is not aixterm-16, the specified color will
                    be looked up in that palette, and then the nearest match in
                    the aixterm-16 palette will be used instead.
                </p>
            </section>

            <section role="parameter" id="sgr-48-rgb-alt" mnemonic=""
                     title="Set background to RGB values">
                <ctlseq><param-single/> = 48 ; 2 ; <param-single symbol="Pr"/> ;
                    <param-single symbol="Pg"/> ; <param-single symbol="Pb"/></ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-8;2;Pr;Pg;Pb.21AB"/>
                <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                <p>
                    This does not properly conform to ISO-8613-6 and is implemented
                    only for compatibility with older xterm releases and Konsole.
                    Using <a href="#sgr-48-rgb">the standard syntax</a> is recommended.
                </p>
                <p>
                    Sets the background color to the supplied 24-bit RGB value.
                    <param-single symbol="Pr"/>/<param-single symbol="Pg"/>/<param-single symbol="Pb"/>
                    are the red, green and blue components (0–255).
                </p>
                <p>
                    If Kermit 95 has not been compiled with 24-bit RGB color
                    support, the nearest color in the current palette (as set
                    by SET TERM COLOR PALETTE) is used instead. In console
                    builds of Kermit 95 (k95.exe, k2.exe), this will always be
                    the 16-color aixterm palette.
                </p>
            </section>
            <section role="parameter" id="sgr-48-ic-alt" mnemonic=""
                     title="Set background to indexed color">
                <ctlseq><param-single/> = 48 ; 5 ; <param-single/></ctlseq>
                <!-- xterm documentation doesn't mention support for this -->
                <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                <p>
                    This does not properly conform to ISO-8613-6 and is implemented
                    only for compatibility other terminal emulators.
                    Using <a href="#sgr-48-ic">the standard syntax</a> is recommended.
                </p>
                <p>
                    Sets the background color to the specified color in the
                    current color palette (as set by SET TERM COLOR PALETTE).
                    Valid range is 0–15 for the aixterm-16 palette, 0–87 for the
                    xterm-88 palette, and 0–255 for the xterm-256 palette.
                </p>
                <p>
                    Console builds of Kermit 95 (k95.exe, k2.exe) only support
                    the aixterm 16-color palette. If the current color palette
                    is not aixterm-16, the specified color will be looked up in
                    that palette, and then the nearest match in the aixterm-16
                    palette will be used instead.
                </p>
            </section>
            <section role="parameter" id="sgr-49"
                     title="Set background color to default">
                <ctlseq><param-single/> = 49</ctlseq>
                <ref src="e48:75"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-4-9.1E63"/>
                <ref src="vt52x:356"/>
                <ref src="vws:112"/>
                <termsupp first="vt525" series="vt" additional="tt linux sco putty dtterm wt"/>
                <p>This is processed for all terminal types, where it resets the background
                    color to the default value. The comments say: &quot;Supported by SCO ANSI.
                    QANSI - restore bg color saved with <tt><cc>CSI</cc> = Pn G</tt>&quot;
                </p>
            </section>
            <section role="parameter" not-implemented="true" badges="s97801" title="Save Attributes">
                <ctlseq><param-single/> = 50</ctlseq>
                <!-- TODO
                        /* When the "save attributes" command is issued,  */
                        /* all attributes then in effect for the entire   */
                        /* screen are stored.  These attributes will then */
                        /* apply to any new display data (without SGR com-*/
                        /* mand sequences) output to the screen.          */
                        /* The stored attributes can be returned to normal*/
                        /* by commands such as "erase in display with     */
                        /* blanks/NULs; clear attributes". */
                -->
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Turn off proportional spacing">
                <ctlseq><param-single/> = 50</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" badges="scoansi" title="Reset to the original color pair">
                <ctlseq><param-single/> = 50</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <!-- TODO
                        Reset to the original color pair. In backwards
                        compatibility mode, set the normal attribute to white
                        text on a black background, and reverse video to black
                        text on a white background.  In the default (new) mode,
                        set the current attribute according to the current mode
                        and the current values for reverse, normal or graphics
                        -->
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Framed">
                <ctlseq><param-single/> = 51</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" badges="scoansi" title="Ignored">
                <ctlseq><param-single/> = 51</ctlseq>
                <termsupp first="sco" series="sco" additional=""/>
                <p>
                    Does nothing. Comment says it
                    should: Resets all colors to the system default of gray for the
                    foreground and reverse background, and black for the
                    background and reverse foreground.  Only valid in new
                    mode.
                </p>
            </section>

            <section role="parameter" not-implemented="true" todo="true"
                     title="Encircled">
                <ctlseq><param-single/> = 52</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" title="Overline On" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 53</ctlseq>
                <ref src="e48:76"/>
                <ref src="dap:166"/>
                <termsupp first="wz" series="ansi" additional="wt"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Not framed or encircled">
                <ctlseq><param-single/> = 54</ctlseq>
                <ref src="e48:76"/>
            </section>

            <section role="parameter" title="Overline Off" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 55</ctlseq>
                <ref src="e48:76"/>
                <ref src="dap:166"/>
                <termsupp first="wz" series="ansi" additional="wt"/>
            </section>

            <section role="parameter" not-implemented="true" todo="true"
                     title="Reserved for future standardisation">
                <ctlseq><param-single/> = 56</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Reserved for future standardisation">
                <ctlseq><param-single/> = 57</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Reserved for future standardisation">
                <ctlseq><param-single/> = 58</ctlseq>
                <ref src="e48:76"/>
            </section>

            <section role="parameter" title="Set Underline Color" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 58</ctlseq>
                <termsupp first="wz" series="wz" additional="wt"/>
            </section>

            <section role="parameter" not-implemented="true" todo="true"
                     title="Reserved for future standardisation">
                <ctlseq><param-single/> = 59</ctlseq>
                <ref src="e48:76"/>
            </section>

            <section role="parameter" title="Set Underline Color to Default" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 59</ctlseq>
                <termsupp first="wz" series="wz" additional="wt"/>
            </section>

            <section role="parameter" not-implemented="true" todo="true"
                     title="Ideogram underline or right side line">
                <ctlseq><param-single/> = 60</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Ideogram double underline or double line on the right side">
                <ctlseq><param-single/> = 61</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Ideogram overline or left side line">
                <ctlseq><param-single/> = 62</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Ideogram double overline or double line on the left side">
                <ctlseq><param-single/> = 63</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Ideogram stress marking">
                <ctlseq><param-single/> = 64</ctlseq>
                <ref src="e48:76"/>
            </section>
            <section role="parameter" not-implemented="true" todo="true"
                     title="Cancels ideogram rendition (parameters 60-64)">
                <ctlseq><param-single/> = 65</ctlseq>
                <ref src="e48:76"/>
            </section>

            <section role="parameter" title="Vertical Align Super Script" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 73</ctlseq>
                <termsupp first="wz" series="wz" additional=""/>
            </section>

            <section role="parameter" title="Vertical Align Sub Script" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 74</ctlseq>
                <termsupp first="wz" series="wz" additional=""/>
            </section>

            <section role="parameter" title="Vertical Align Base Line" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 75</ctlseq>
                <termsupp first="wz" series="wz" additional=""/>
            </section>

            <section style="group" role="group">
                <section role="parameter" id="sgr-90" title="Set Bright Black Foreground">
                    <ctlseq><param-single/> = 90</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9-0.1E5F"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                </section>
                <section role="parameter" id="sgr-91" title="Set Bright Red Foreground">
                    <ctlseq><param-single/> = 91</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9-1.1E60"/>
                    <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                </section>
                <section role="parameter" id="sgr-91-sco" title="Set Bright Blue Foreground"
                        not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 91</ctlseq>
                    <termsupp first="sco" series="sco" additional=""/>
                </section>
                <section role="parameter" id="sgr-92" title="Set Bright Green Foreground">
                    <ctlseq><param-single/> = 92</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9-2.1E61"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                </section>
                <section role="parameter" id="sgr-93" title="Set Bright Brown Foreground">
                    <ctlseq><param-single/> = 93</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9-3.1E62"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                </section>
                <section role="parameter" id="sgr-94" title="Set Bright Blue Foreground">
                    <ctlseq><param-single/> = 94</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9-4.1E63"/>
                    <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                </section>
                <section role="parameter" id="sgr-94-sco" title="Set Bright Red Foreground"
                        not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 94</ctlseq>
                    <termsupp first="sco" series="sco" additional=""/>
                </section>
                <section role="parameter" id="sgr-95" title="Set Bright Magenta Foreground">
                    <ctlseq><param-single/> = 95</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9-5.1E64"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                </section>
                <section role="parameter" id="sgr-96" title="Set Bright Cyan Foreground">
                    <ctlseq><param-single/> = 96</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9-6.1E65"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                </section>
                <section role="parameter" id="sgr-97" title="Set Bright White Foreground">
                    <ctlseq><param-single/> = 97</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-9-7.1E66"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                    <p>
                        If processing of SGR colors is enabled (<tt>set term sgr-colors on</tt>),
                        sets the foreground color.
                    </p>
                    <p>
                        While this is an aixterm feature, it is supported for all
                        terminal types.
                    </p>
                    <p badges="scoansi">
                        Also sets the default foreground color, reverse video
                        background color, and the graphic attribute foreground
                        colour
                    </p>
                </section>
            </section>
            <section style="group" role="group">
                <section role="parameter" id="sgr-100" title="Set Bright Black Background">
                    <ctlseq><param-single/> = 100</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1-0-0.1EB4"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                </section>
                <section role="parameter" id="sgr-101" title="Set Bright Red Background">
                    <ctlseq><param-single/> = 101</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1-0-1.1EB5"/>
                    <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                </section>
                <section role="parameter" id="sgr-101-sco" title="Set Bright Blue Background"
                        not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 101</ctlseq>
                    <termsupp first="sco" series="sco" additional=""/>
                </section>
                <section role="parameter" id="sgr-102" title="Set Bright Green Background">
                    <ctlseq><param-single/> = 102</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1-0-2.1EB6"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                </section>
                <section role="parameter" id="sgr-103" title="Set Bright Brown Background">
                    <ctlseq><param-single/> = 103</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1-0-3.1EB7"/>
                    <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                </section>
                <section role="parameter" id="sgr-103-sco" title="Set Bright Cyan Background"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 103</ctlseq>
                    <termsupp first="sco" series="sco" additional=""/>
                </section>
                <section role="parameter" id="sgr-104" title="Set Bright Blue Background">
                    <ctlseq><param-single/> = 104</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1-0-4.1EB8"/>
                    <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                </section>
                <section role="parameter" id="sgr-104-sco" title="Set Bright Red Background"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 104</ctlseq>
                    <termsupp first="sco" series="sco" additional=""/>
                </section>
                <section role="parameter" id="sgr-105" title="Set Bright Magenta Background">
                    <ctlseq><param-single/> = 105</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1-0-5.1EB9"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                </section>
                <section role="parameter" id="sgr-106" title="Set Bright Cyan Background">
                    <ctlseq><param-single/> = 106</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1-0-6.1EBA"/>
                    <termsupp first="xterm" series="xt" additional="tt linux putty wt"/>
                </section>
                <section role="parameter" id="sgr-106-sco" title="Set Bright Yellow Background"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 106</ctlseq>
                    <termsupp first="sco" series="sco" additional=""/>
                </section>
                <section role="parameter" id="sgr-107" title="Set Bright White Background">
                    <ctlseq><param-single/> = 107</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m:Ps-=-1-0-7.1EBB"/>
                    <termsupp first="xterm" series="xt" additional="tt linux sco putty wt"/>
                    <p>
                        If processing of SGR colors is enabled (<tt>set term sgr-colors on</tt>),
                        sets the background color.
                    </p>
                    <p>
                        While this is an aixterm feature, it is supported for all
                        terminal types.
                    </p>
                    <p badges="scoansi">
                        Also sets the default background color, reverse video
                        foreground color, and the graphic attribute background
                        colour
                    </p>
                </section>
            </section>

        </section> <!-- end SGR -->

        <section role="ctlseq" id="dec-sgr" mnemonic="SGR" title="Select Graphic Rendition (DEC Private)"
            not-implemented="true" todo="true">
            <ctlseq>CSI ? <param-multi/> m </ctlseq>
            <ref src="dap:166"/>
            <p>DEC Private Character Attributes - these are used by DEC printers.</p>
            <section role="parameter" id="sgrp-0" title="Turn off all private attributes"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="dap:166"/>
                <p>
                    Deprecated - use <a href="#sgr-0">SGR-0</a> instead.
                </p>
            </section>
            <section role="parameter" id="sgrp-4" title="Turn on superscript, turn off subscript"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="dap:166"/>
            </section>
            <section role="parameter" id="sgrp-5" title="Turn on subscript, turn off superscript"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="dap:166"/>
            </section>
            <section role="parameter" id="sgrp-6" title="Turn on overline"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="dap:166"/>
                <p>Deprecated - use <a href="sgr-53">SGR-53</a> instead</p>
            </section>
            <section role="parameter" id="sgrp-24" title="Turn off superscript and subscript"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 24</ctlseq>
                <ref src="dap:166"/>
            </section>
            <section role="parameter" id="sgrp-26" title="Turn off overline"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 26</ctlseq>
                <ref src="dap:166"/>
                <p>Deprecated - use <a href="sgr-55">SGR-55</a> instead</p>
            </section>
        </section> <!-- End DEC SGR -->

        <section role="ctlseq" id="xtmodkeys-a" mnemonic="XTMODKEYS"
                 title="Set/reset key modifier options"
                 not-implemented="true" todo="true">
            <ctlseq>CSI > Pp ; Pv m</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Pp;Pv-m.1EB3"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="xtmodkeys-b" mnemonic="XTMODKEYS"
                 title="Set/reset key modifier options"
                 not-implemented="true" todo="true">
            <ctlseq>CSI > Pp m</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Pp-m.1DB2"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="xtqmodkeys" mnemonic="XTQMODKEYS"
                 title="Query key modifier options"
                 not-implemented="true" todo="true">
            <ctlseq>CSI ? Pp m</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pp-m.1D16"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>

        <!-- ######################### n ######################### -->
        <section role="ctlseq" mnemonic="DSR" id="dsr" title="Device Status Report">
            <ctlseq>CSI <param-single/> n</ctlseq>
            <ctlseq>CSI ? <param-single/> n</ctlseq>
            <ref src="070:435"/>
            <ref src="wy370:138"/>
            <ref src="e48:54"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-n.1CAE"
                comment="standard"/>
            <ref src="xt:#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-n.1D1A"
                comment="DEC private"/>
            <ref src="vt100:DSR"/>
            <ref src="vt132:91"/>
            <ref src="vt220:S4.17.2"/>
            <ref src="vt340:215"/>
            <ref src="vt420:257"/>
            <ref src="vt510:DSR.html"/>
            <ref src="vt52x:327"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm vt"/>
            <p>
                K95 does not currently differentiate between the standard and DEC
                private DSR control sequences. Using the DEC private control sequence
                only affects the response produced by <tt><param-single/> = 6</tt>.
                <!-- TODO: We should fix this! Or perhaps, rather, we should
                            check what a real VT does as DECs implies it does
                            the same.

                            VWS page 118 for locator details
                    -->
            </p>

            <section role="parameter" badges="scoansi" id="sco-dsr-tcp" title="Transmit cursor position">
                <ctlseq><param-single/> = 0</ctlseq>
            </section>
            <section role="parameter" id="dsr-tsr" title="Terminal Status Report">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-n:Ps-=-5.1E05"/>
                <ref src="e48:54"/>
                <ref src="wy370:138"/>
                <ref src="vt100:DSR"/>
                <ref src="vt220:S4.17.2"/>
                <ref src="vt340:215"/>
                <ref src="vt420:258"/>
                <ref src="vt510:DSR-OS.html"/>
                <ref src="vt52x:331"/>
                <termsupp first="vt100" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt linux wt"/>
                <p>Responds with <tt><cc>CSI</cc> 0 n</tt> indicating the terminal is OK</p>
                <!-- Pages 103-104, VT220 manual -->
            </section>
            <section role="parameter" mnemonic="CPR" id="dsr-cpr" title="Cursor position report">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-n:Ps-=-6.1E06"/>
                <ref src="e48:54"/>
                <ref src="wy370:138"/>
                <ref src="vt100:DSR"/>
                <ref src="vt220:S4.17.2"/>
                <ref src="vt340:216"/>
                <ref src="vt420:258"/>
                <ref src="vt510:DSR-CPR.html"/>
                <ref src="vt52x:327"/>
                <termsupp first="vt100" series="vt" additional="vt220 vt330 vt340 vt420 vt510 tt linux putty wt"/>
                <p>If the request was <tt><cc>CSI</cc> 6 n</tt>, transmits the cursor
                    position is transmitted to the host. Response is:
                    <tt><cc>CSI</cc> x ; y R</tt> where x and y are the cursor coordinates
                </p>
                <!-- Pages 103-104, VT220 manual -->
            </section>
            <section role="parameter" mnemonic="DECXCPR" id="dsr-decxcpr" title="Cursor position report">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-n:Ps-=-6.1E72"/>
                <ref src="070:310"/>
                <ref src="vt340:216"/>
                <ref src="vt420:258"/>
                <ref src="vt510:DSR-XCPR.html"/>
                <ref src="vt52x:324"/>
                <ref src="vt52x:328"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
                <p>If the request was <tt><cc>CSI</cc> ? 6 n</tt>, transmits
                    the cursor position including page number to the host.
                    Response is:
                    <tt><cc>CSI</cc> ? x ; y ; p R</tt> where x and y are the
                    cursor coordinates, and p is the page.
                </p>
                <p>
                    Note that the VT340, VT420, VT510 and VT520 manuals all leave
                    the <tt>?</tt> character out of the response - this is an
                    error in the documentation. DEC STD-070 gives the correct
                    behavior which has been confirmed against a real terminal.
                </p>
                <!-- Pages 103-104, VT220 manual -->
                <!-- TODO: XTERM responds with CSI ? x ; y R -->

                <!-- TODO: 7 - Transmit Time
                           8 - Transmit Date
                           We can implement these easily enough! Most of the work is already
                           there, just missing the values to plug in.
                   -->

            </section>
            <section role="parameter" mnemonic="DECDSR" id="dsr-pp" title="Printer status">
                <ctlseq><param-single/> = 15</ctlseq>
                <ref src="vt102:SC.2.2.15"/>
                <ref src="vt220:S4.17.2"/>
                <ref src="vt340:216"/>
                <ref src="vt420:259"/>
                <ref src="vt510:DSR-PP.html"/>
                <ref src="vt52x:332"/>
                <termsupp first="vt102" series="vt" additional="vt220 vt330 vt340 vt420 vt510 dtterm wt"/>
                <p>K95 responds with printer ready: <tt><cc>CSI</cc> ? 1 0 n</tt></p>
                <!-- dtterm responds with ?13n (no printer -->
            </section>
            <section role="parameter" mnemonic="DECDSR" id="dsr-udk" title="UDK status">
                <ref src="vt220:S4.17.2"/>
                <ref src="vt340:217"/>
                <ref src="vt420:260"/>
                <ref src="vt510:DSR-UDK.html"/>
                <ref src="vt52x:333"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 dtterm wt"/>
                <ctlseq><param-single/> = 25</ctlseq>
                <p>
                    If User Defined Keys are locked, K95 responds with
                    <tt><cc>CSI</cc> ? 2 1 n</tt> or <tt><cc>CSI</cc> ? 2 0 n</tt> if they're
                    unlocked
                </p>
                <!-- Windows Terminal responds with Not Supported -->
            </section>
            <section role="parameter" mnemonic="DECDSR" id="dsr-kl" title="Keyboard language, UK or US">
                <ref src="vt220:S4.17.2"/>
                <ref src="vt340:217"/>
                <ref src="vt420:260"/>
                <ref src="vt510:DSR-KBD.html"/>
                <ref src="vt52x:329"/>
                <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 dtterm wt"/>
                <ctlseq><param-single/> = 26</ctlseq>
                <p>
                    Sends <tt><cc>CSI</cc> ? 2 7 ; 2 n</tt> if G0 is British ISO 646,
                    otherwise K95 sends <tt><cc>CSI</cc> ? 2 7 ; 1 n</tt>
                </p>
            </section>
            <section role="parameter" id="decdsr-55" mnemonic=""
                     title="Report Locator Status"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 55</ctlseq>
                <ref src="vt340:218"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-n:Ps-=-5-5.1ED3"/>
                <termsupp first="vt330" series="vt" additional="vt340 xt tt wt"/>
                <!-- Windows Terminal responds with Not Connected -->
            </section>
            <section role="parameter" id="decdsr-56" mnemonic=""
                     title="Report Locator Type"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 56</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-n:Ps-=-5-6.1ED4"/>
                <ref src="vt340:219"/>
                <termsupp first="vt330" series="vt" additional="vt340 xt wt"/>
            </section>
            <section role="parameter" id="dsr-msr" mnemonic="DECMSR"
                     title="Macro Space Report" groups="isvt420">
                <ctlseq><param-single/> = 62</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-n:Ps-=-6-2.1ED1"/>
                <ref src="070:440"/>
                <ref src="vt420:262"/>
                <ref src="vt510:DSR-MSR.html"/>
                <ref src="vt52x:330"/>
                <termsupp first="vt420" series="vt" additional="vt510 wt"/>
                <p>
                    Returns a DECMSR response which indicates the available space
                    for macro definitions. Multiply this value by 16 to get the
                    number of bytes available.
                </p>
                <p>
                    The size limit varies by terminal type. See
                    <a href="#decdmac">DECDMAC</a> for more information.
                </p>
            </section>
            <section role="parameter" id="deccksr" mnemonic="DECCKSR"
                     title="Memory Checksum" groups="isvt420">
                <ctlseq><param-single/> = 63; <param-single symbol="Pid"/> </ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-n:Ps-=-6-3.1ED2"/>
                <ref src="070:436"/>
                <ref src="vt420:262"/>
                <ref src="vt510:DECCKSR.html"/>
                <ref src="vt52x:187"/>
                <termsupp first="vt420" series="vt" additional="vt510 wt"/>
                <p>
                    Computes a simple checksum of stored macros returning the
                    response via the DCS sequence <tt><cc>DCS</cc> <param-single symbol="Pid"/> ! ~ <param-single symbol="D...D"/> <cc>ST</cc></tt>
                    where Pid is an optional numeric value to help you tell
                    responses apart.
                </p>
            </section>
            <section role="parameter" id="dsr-dir"
                     title="Data Integrity Report"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 75</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-n:Ps-=-7-5.1ED5"/>
                <ref src="vt420:263"/>
                <ref src="vt510:DSR-DIR.html"/>
                <ref src="vt52x:328"/>
                <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            </section>
            <section role="parameter" id="dsr-mscsr" groups="isvt420"
                     title="Multiple-Session Configuration Status Report">
                <ctlseq><param-single/> = ? 85</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-n:Ps-=-8-5.1ED6"/>
                <ref src="vt420:264"/>
                <termsupp first="vt420" series="vt" additional="wt"/>
                <!-- Windows Terminal responds with not supported -->
                <p>
                    Responds with <tt><cc>ESC</cc> [ ? 83 n</tt> to indicate
                    that multiple sessions are not configured, as Kermit 95
                    does not currently support the TD/SMP protocol or any other
                    form of multi-session support.
                </p>
            </section>
        </section>

        <section role="parameter" id="msk-ssr"
                 title="MS-DOS Kermit Screen Size Report"
                 not-implemented="true" todo="true">
            <ctlseq><param-single/> = 85</ctlseq>
            <ref src="msk:338"/>
            <p>
                Response is <tt><cc>ESC</cc> [ ? 256; Ph; Pw; Pc n</tt> where Ph is
                the screen height in pixels, Pw is the width in pixels, Pc is
                the number of colors (0=none, 1=mono, 16=EGA/VGA).
            </p>
        </section>

        <section role="ctlseq" mnemonic="TCP" id="tcp" title="Transmit Cursor Position"
                 badges="scoansi" ctlseq="CSI n">
            <termsupp first="sco" series="sco" additional=""/>
            <p>
                Transmits the cursor position - row and column separated by a
                space and followed by a new line.
            </p>
        </section>

        <section role="ctlseq" id="xt-dkm" mnemonic=""
                 title="Disable key modifier options"
                 not-implemented="true" todo="true">
            <ctlseq>CSI &gt; <param-single/> n</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Ps-n.1DB6"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>

        <!-- ######################### o ######################### -->
        <section role="ctlseq" ctlseq="CSI o" badges="aaa" not-implemented="true"
                 mnemonic="DAQ" id="daq" title="Define Area Qualification">
            <ref src="e48:51"/>
        </section>
        <section role="ctlseq" badges="scoansi" id="tmp" mnemonic="TMP"
                 title="Transmit Margin Position">
            <ctlseq>CSI <param-single/> o</ctlseq>
            <termsupp first="sco" series="sco" additional=""/>
            <p>
                Responses are one or more numbers
                separated by spaces if required and followed by a line feed.
            </p>

            <section role="parameter" id="tmp-am" title="All margins (four numbers)">
                <termsupp first="sco" series="sco" additional=""/>
                <ctlseq><param-single/> = 0</ctlseq>
            </section>
            <section role="parameter" id="tmp-mt" title="Margin Top">
                <termsupp first="sco" series="sco" additional=""/>
                <ctlseq><param-single/> = 1</ctlseq>
            </section>
            <section role="parameter" id="tmp-mb" title="Margin Bottom">
                <termsupp first="sco" series="sco" additional=""/>
                <ctlseq><param-single/> = 2</ctlseq>
            </section>
            <section role="parameter" id="tmp-ml" title="Margin Left">
                <termsupp first="sco" series="sco" additional=""/>
                <ctlseq><param-single/> = 3</ctlseq>
            </section>
            <section role="parameter" id="tmp-mr" title="Margin Right">
                <termsupp first="sco" series="sco" additional=""/>
                <ctlseq><param-single/> = 4</ctlseq>
            </section>
        </section>
        <section role="ctlseq" id="wyclbx" mnemonic="WYCLBX" todo="true"
                 not-implemented="true" title="Clear a box">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> o</ctlseq>
            <ref src="wy370:127"/>
        </section>
        <!-- ######################### p ######################### -->
        <!-- CSI ' p        DECRLGS     Request Logo Status (supposedly) -->
        <section role="ctlseq" ctlseq="CSI p" not-implemented="true" badges="sun"
                 mnemonic="SUNBOW" id="sunbow" title="Black On White" >
            <!-- TODO: This should be easy to implement!
                    If we don't want to override colour attributes, we
                   could treat it as a reverse-mode thing like we do
                   for SNI-97801 (CSI Ps u) -->
            <p>
                This should set foreground to black, background to white, cursor to a solid
                black block, and characters in SGR revese white-on-black. This matches
                the initial settings for the frame buffer console on reset.
            </p>
        </section>
        <section role="ctlseq" ctlseq="CSI p" id="tph" title="Transmit Page to host"
                 not-implemented="true" badges="h19">
            <p>
                Only if the real terminal type is H19. If a different terminal
                type is chosen that is able to switch into an H19 mode, and K95
                is asked to switch into that H19 mode, this control sequence
                remains unavailable.
            </p>
        </section>
        <section role="ctlseq" badges="s97801" id="sni-set" title="SNI-97801 set... things?">
            <ctlseq>CSI <param-single/> p</ctlseq>
            <section role="parameter" not-implemented="true" title="Blinking on">
                <ctlseq><param-single/> = 0</ctlseq>
                <p>Blinking on, lines 1–25 or 1–24</p>
            </section>
            <section role="parameter" not-implemented="true" title="Blinking off">
                <ctlseq><param-single/> = 1</ctlseq>
                <p>Blinking off, lines 1–25 or 1–24</p>
            </section>
            <section role="parameter" not-implemented="true" title="Blinking on, line 25">
                <ctlseq><param-single/> = 2</ctlseq>
                <p>Blinking on, line 25</p>
            </section>
            <section role="parameter" not-implemented="true" title="Blinking off, line 25">
                <ctlseq><param-single/> = 3</ctlseq>
                <p>Blinking off, line 25</p>
            </section>
            <section role="parameter" id="sni-set-racp"
                     title="Request abbreviated cursor position">
                <ctlseq><param-single/> = 5</ctlseq>
                <p>
                    Responds with <tt>&lt;FS&gt; &lt;line+0x20&gt; &lt;column+0x20&gt;</tt>,
                    0 based
                </p>
            </section>
            <section role="parameter" id="sni-set-cnv" title="Cursor not visible">
                <ctlseq><param-single/> = 6</ctlseq>
                <p>Hides the cursor</p>
            </section>
            <section role="parameter" id="sni-set-act-cur" title="Activate cursor">
                <ctlseq><param-single/> = 7</ctlseq>
                <p>Shows the cursor</p>
            </section>
            <section role="parameter" id="sni-set-disp-off" title="Display off">
                <ctlseq><param-single/> = 8</ctlseq>
                <p>
                    This is supposed to fill the viewable screen with blanks but continue
                    processing additional chars into the display buffer. K95 does its usual
                    screen-off things.
                </p>
            </section>
            <section role="parameter" id="sni-set-disp-on" title="Display on">
                <ctlseq><param-single/> = 9</ctlseq>
                <p>Re-enable viewing the display buffer with real data.</p>
            </section>
            <section role="parameter" id="sni-set-ibc"
                     title="Single inverting block cursor">
                <ctlseq><param-single/> = 10</ctlseq>
                <p>Sets the cursor to half</p>
            </section>
            <section role="parameter" id="sni-set-bc"
                     title="Activate block cursor">
                <ctlseq><param-single/> = 11</ctlseq>
                <p>Sets the cursor to full (block)</p>
            </section>
            <section role="parameter" id="sni-set-uc"
                     title="Activate underscore cursor">
                <ctlseq><param-single/> = 12</ctlseq>
                <p>Sets the cursor to underline</p>
            </section>
            <section role="parameter" not-implemented="true" title="Activate cursor blinking">
                <ctlseq><param-single/> = 13</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" title="Deactivate cursor blinking">
                <ctlseq><param-single/> = 14</ctlseq>
            </section>
        </section>
        <section role="ctlseq" id="decssl" mnemonic="DECSSL"
                 title="Select Set-Up Language"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> p</ctlseq>
            <ref src="vt510:DECSSL.html"/>
            <ref src="vt52x:302"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="wydrbx" mnemonic="WYDRBX" todo="true"
                 not-implemented="true" title="Draw box">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> p</ctlseq>
            <ref src="wy370:127"/>
        </section>
        <section role="ctlseq" badges="aaa" id="aaa-sdp" title="Set Display Parameters">
            <ctlseq>
                CSI
                <param-single symbol="Pa"/> ;
                <param-single symbol="Pu"/> ;
                <param-single symbol="Pl"/> ;
                <param-single symbol="Ps"/> ;
                <param-single symbol="Pc"/> ;
                <param-single symbol="Pm"/> ;
                p
            </ctlseq>
            <table>
                <tr>
                    <th>Parameter</th>
                    <th> </th>
                </tr>
                <tr>
                    <td><param-single symbol="Pa"/></td>
                    <td>Active Memory Lines</td>
                </tr>
                <tr>
                    <td><param-single symbol="Pu"/></td>
                    <td>Upper Host Area Lines</td>
                </tr>
                <tr>
                    <td><param-single symbol="Pl"/> </td>
                    <td>Lower Host Area Lines</td>
                </tr>
                <tr>
                    <td><param-single symbol="Ps"/></td>
                    <td>Screen Lines</td>
                </tr>
                <tr>
                    <td><param-single symbol="Pc"/></td>
                    <td>Screen Columns</td>
                </tr>
                <tr>
                    <td><param-single symbol="Pm"/></td>
                    <td>Active Memory Columns</td>
                </tr>
            </table>
            <p>As K956 doesn't support memory pages different from the actual screen
                size, the behavior isn't quite right here.
                <param-single symbol="Pa"/> sets the number of rows,
                and the bottom margin is set to <param-single symbol="Ps"/>. The number
                of screen columns is set to <param-single symbol="Pc"/>. In K95G, if
                <param-single symbol="Pa"/> &lt; <param-single symbol="Ps"/> then line
                spacing is adjusted.
            </p>
        </section>
        <section role="ctlseq" id="xtmspointer" mnemonic="XTMSPOINTER"
                 title="Set resorce value poitnerMode"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> &gt; p</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Ps-p.1DB8"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" ctlseq="CSI ! p" mnemonic="DECSTR" id="decstr" title="Soft Reset">
            <ref src="070:235"/>
            <ref src="wy370:36"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-!-p.1C0E"/>
            <ref src="vt220:S4.18.1"/>
            <ref src="vt340:256"/>
            <ref src="vt420:307"/>
            <ref src="vt510:DECSTR.html"/>
            <ref src="vt52x:304"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 tt dtterm wt"/>
            <p>Resets the terminal</p>
        </section>
        <section role="ctlseq" mnemonic="DECSSCLS" id="decsscls"
                 title="Set Scroll Speed" badges="vt520 k95">
            <ctlseq>CSI <param-single/> SP p</ctlseq>
            <ref src="vt510:DECSSCLS.html"/>
            <ref src="vt52x:300"/>
            <termsupp first="vt510" series="vt" additional=""/>
            <p>Selects from one of a number of smooth-scroll speeds, or sets
                jump-scroll mode. Only supported by K95G.
            </p>
            <p>The VT520 only offers three settings:</p>
            <ul>
                <li>0-3: smooth-2, 9 lines per second</li>
                <li>4-8: smooth-4, 18 lines per second</li>
                <li>9: jump scroll</li>
            </ul>
            <p>
                The K95 terminal type expands this to a wider range of speeds:
            </p>
            <table>
                <tr>
                    <th><em>Ps</em></th>
                    <th>Mode</th>
                    <th>Lines Per Second</th>
                </tr>
                <tr>
                    <td>0</td>
                    <td>Smooth</td>
                    <td>3</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Smooth</td>
                    <td>6</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Smooth-2</td>
                    <td>9</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Smooth</td>
                    <td>12</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Smooth-4</td>
                    <td>18</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Smooth</td>
                    <td>22</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Smooth</td>
                    <td>27</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Smooth</td>
                    <td>31</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Smooth</td>
                    <td>36</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Jump</td>
                    <td>As fast as received</td>
                </tr>
            </table>
            <p>
                This setting can be queried via
                <a href="#decrqss-decsscls">DECRQSS</a>, and the status of
                smooth scroll (any speed) or jump scroll can be queried via
                <a href="#decrqm-4">DECRQM</a>.
            </p>
        </section>
        <section role="ctlseq" mnemonic="DECSCL" id="decscl" title="Select Conformance Level">
            <ctlseq>CSI <param-single symbol="Pl"/> ; <param-single symbol="Pc"/> " p</ctlseq>
            <ref src="070:226"/>
            <ref src="wy370:34"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p.1E99"/>
            <ref src="vt220:S4.3"/>
            <ref src="vt420:109"/>
            <ref src="vt510:DECSCL.html"/>
            <ref src="vt52x:276"/>
            <termsupp first="vt220" series="vt" additional="vt420 vt510 tt putty dtterm"/>
            <p>
                This lets you switch in and out of VT100 mode, and change between
                7-bit controls and 8-bit controls.
            </p>
            <p>
                A real VT520 at least, and the documentation suggests this is
                the case for older models too, can only switch between the VT100
                conformance level and its own conformance level. On a VT520,
                trying to set a conformance level of 62, 63, 64 or 65 will all
                get you 65. You get to choose between the lowest level (61) and
                the highest level for your terminal—the in between options are
                all the same as the highest level.
            </p>
            <p>
                So the conformance levels you're switching to here depend on
                which terminal type Kermit 95 is emulating.
            </p>
            <p>If Kermit 95 is emulating a VT320 or higher, you can query the
                state of DECSCL with with <a href="#decrqss">DECRQSS</a>
            </p>
            <section role="parameter" title="Putty VT" id="putty-decscl-40"
                     badges="putty" not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 40</ctlseq>
                <p>Sets the terminal conformance level to all VT levels</p>
            </section>
            <section role="parameter" title="Putty" id="putty-decscl-41"
                     badges="putty" not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 41</ctlseq>
                <p>Sets the terminal conformance level to PuTTY</p>
            </section>
            <section role="parameter" title="Putty SCOANSI" id="putty-decscl-42"
                     badges="putty" not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 42</ctlseq>
                <p>Sets the terminal conformance level to SCOANSI</p>
            </section>
            <section role="parameter" title="level 1" id="decscl-l1-vt100" badges="vt100">
                <ctlseq><param-single symbol="Pl"/> = 61</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-1.2048"/>
                <p> Sets the terminal type mode to VT100</p>
            </section>
            <section role="parameter" title="level 1" id="decscl-l1-vt102" badges="vt102 vt220 vt220pc vt320 vt320pc wy370">
                <ctlseq><param-single symbol="Pl"/> = 61</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-1.2048"/>
                <ref src="vt220:S4.3"/>
                <ref src="vt420:109"/>
                <ref src="vt510:DECSCL.html"/>
                <ref src="vt52x:276"/>
                <termsupp first="vt220" series="vt" additional="vt420 vt510 tt putty dtterm"/>
                <p>
                    Sets the terminal type mode to VT102
                </p>
            </section>
            <section role="parameter" title="level 2" id="decscl-l2-vt220" badges="vt220 vt220pc">
                <ctlseq><param-single symbol="Pl"/> = 62</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <ref src="vt220:S4.3"/>
                <termsupp first="vt220" series="vt" additional="putty dtterm"/>
                <p>Sets the terminal type to VT220</p>
            </section>
            <section role="parameter" title="level 2 - VT320" id="decscl-l2-vt320" badges="vt320 vt320pc">
                <ctlseq><param-single symbol="Pl"/> = 62</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <p>Sets the terminal type to VT320</p>
            </section>
            <section role="parameter" title="level 2 - VT420" id="decscl-l2-vt420" badges="vt420 vt420pc"
                not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 62</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <ref src="vt420:109"/>
                <p>Sets the terminal type to VT420</p>
            </section>
            <section role="parameter" title="level 2 - VT510" id="decscl-l2-vt510" badges="vt520 vt520pc"
                     not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 62</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <ref src="vt510:DECSCL.html"/>
                <p>Sets the terminal type to VT510</p>
            </section>
            <section role="parameter" title="level 2 - VT520" id="decscl-l2-vt520" badges="vt520 vt520pc"
                     not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 62</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <ref src="vt52x:276"/>
                <termsupp first="vt520" series="vt" additional="tt"/>
                <p>Sets the terminal type to VT520</p>
            </section>
            <section role="parameter" title="level 2" id="decscl-l2-wy370" badges="wy370">
                <ctlseq><param-single symbol="Pl"/> = 62</ctlseq>
                <p>Sets the terminal type to WY370</p>
            </section>
            <section role="parameter" title="level 3 - VT320" id="decscl-l3-vt320" badges="vt320 vt320pc">
                <ctlseq><param-single symbol="Pl"/> = 63</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-3.204A"/>
                <p>Sets the terminal type to VT320</p>
            </section>
            <section role="parameter" title="level 3 - VT420" id="decscl-l3-vt420" badges="vt420 vt420pc"
                     not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 63</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <ref src="vt420:109"/>
                <p>Sets the terminal type to VT420</p>
            </section>
            <section role="parameter" title="level 3 - VT510" id="decscl-l3-vt510" badges="vt520 vt520pc"
                     not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 63</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <ref src="vt510:DECSCL.html"/>
                <p>Sets the terminal type to VT510</p>
            </section>
            <section role="parameter" title="level 3 - VT520" id="decscl-l3-vt520" badges="vt520 vt520pc"
                     not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 63</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <ref src="vt52x:276"/>
                <termsupp first="vt520" series="vt" additional="tt"/>
                <p>Sets the terminal type to VT520</p>
            </section>
            <section role="parameter" title="level 3" id="decscl-l3-wy370" badges="wy370">
                <ctlseq><param-single symbol="Pl"/> = 63</ctlseq>
                <ref src="070:226"/>
                <p>Sets the terminal type to WY370</p>
            </section>
            <section role="parameter" title="level 4 - VT420" id="decscl-l4-vt420" badges="vt420 vt420pc"
                     not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 64</ctlseq>
                <ref src="070:226"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-2.2049"/>
                <ref src="vt420:109"/>
                <termsupp first="vt520" series="vt" additional="tt"/>
                <p>Sets the terminal type to VT420</p>
            </section>
            <section role="parameter" title="level 5" id="decscl-l5"
                     not-implemented="true" todo="true">
                <ctlseq><param-single symbol="Pl"/> = 65</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pl-=-6-5.204C"/>
                <termsupp first="vt520" series="vt" additional="tt"/>
            </section>
            <section role="parameter" title="8-bit controls" id="decscl-8bc"
                     badges="vt220 vt220pc vt320 vt320pc wy370">
                <ctlseq><param-single symbol="Pc"/> = 0</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pc-=-0.1FDB"/>
                <ref src="vt420:109"/>
                <ref src="vt510:DECSCL.html"/>
                <termsupp first="vt420" series="vt" additional="tt"/>
                <p>
                    Sets K95 to use 8-bit controls. Requires
                    <param-single symbol="Pl"/>=62 or
                    <param-single symbol="Pl"/>=63. For all other
                    compatibility levels, <param-single symbol="Pc"/> is ignored.
                </p>
            </section>
            <section role="parameter" title="7-bit controls"  id="decscl-7bc"
                     badges="vt220 vt220pc vt320 vt320pc wy370">
                <ctlseq><param-single symbol="Pc"/> = 1 or any other value</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pc-=-1.1FDC"/>
                <ref src="vt510:DECSCL.html"/>
                <termsupp first="vt420" series="vt" additional="tt dtterm"/>
                <p>
                    Sets K95 to use 7-bit controls. Requires Pl=62 or Pl=63. For all other
                    compatibility levels, <param-single symbol="Pc"/> is ignored.
                </p>
            </section>
            <section role="parameter" title="8-bit controls"  id="decscl-8bc-2"
                     badges="vt220 vt220pc vt320 vt320pc wy370">
                <ctlseq><param-single symbol="Pc"/> = 2</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pc-dq-p:Pc-=-2.1FDD"/>
                <ref src="vt510:DECSCL.html"/>
                <termsupp first="vt510" series="vt" additional="tt dtterm"/>
                <p>
                    Sets K95 to use 8-bit controls. Requires
                    <param-single symbol="Pl"/>=62 or
                    <param-single symbol="Pl"/>=63. For all other
                    compatibility levels, <param-single symbol="Pc"/> is ignored.
                </p>
            </section>
        </section>
        <section role="ctlseq" mnemonic="DECRQM" id="decrqm" title="Request ANSI Mode">
            <ctlseq>CSI <param-single/> $ p</ctlseq>
            <ref src="wy370:147"/>
            <ref src="070:448"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-p.1D01"/>
            <ref src="vt420:279"/>
            <ref src="vt510:DECRQM.html"/>
            <ref src="vt52x:262"/>
            <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
            <p><param-single/> is the mode number as in
                <a href="#sm">SM</a>/<a href="#rm">RM</a>. Only those listed
                below are currently supported by DECRQM in K95 at this time.
                Kermit 95 response with a DECRPM response in the form:
                <tt><cc>CSI</cc> Ps; Ps $ y</tt>
            </p>
            <p>
                In the DECRPPM response, the first parameter is the mode being
                reported on, while the second indicates its current staus:
            </p>
            <table>
                <tr>
                   <th>Ps</th>
                   <th>Ps</th>
                </tr>
                <tr>
                    <td>0</td>
                    <td>Mode not recognised/not supported</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Mode is set</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Mode is reset</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Mode is permanently set (can not be affected by
                        SM/DECSET/RM/DECRST)</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Mode is permanently reset (can not be affected by
                        SM/DECSET/RM/DECRST)</td>
                </tr>
            </table>
            <!-- TODO: Everything supported by RM/SM should be supported here! -->
            <section style="group" role="group">
                <section role="parameter" id="rqm-1" mnemonic="GATM"
                         title="Guarded Area Transfer Mode"
                         not-implemented="true" todo="true" >
                    <ctlseq><param-single/> = 1</ctlseq>
                    <ref src="vt132:86"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt132" series="vt" additional="vt330 vt340 vt420 vt510"/>
                    <p>Not Implemented: K95 does not support the VT132 block mode</p>
                </section>
                <section role="parameter" id="decrqm-kam" mnemonic="KAM" title="Keyboard action">
                    <ctlseq><param-single/> = 2</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h:Ps-=-2.1DF6"/>
                    <ref src="e48:79"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt"/>
                </section>
                <section role="parameter" id="decrqm-crm" mnemonic="CRM" title="Control representation">
                    <ctlseq><param-single/> = 3</ctlseq>
                    <ref src="e48:79"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                </section>
                <section role="parameter" id="decrqm-irm" mnemonic="IRM" title="Insert/replace">
                    <ctlseq><param-single/> = 4</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h:Ps-=-4.1DF8"/>
                    <ref src="e48:79"/>
                    <ref src="070:393"/>
                    <ref src="vt340:133"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt wt"/>
                </section>
                <section role="parameter" id="rqm-5" mnemonic="SRTM"
                         title="Status reporting transfer"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 5</ctlseq>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                </section>
                <section role="parameter" mnemonic="ERM" id="rqm-6" title="Erasure Mode">
                    <ctlseq><param-single/> = 6</ctlseq>
                    <ref src="vt340:234"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                </section>
                <section role="parameter" id="rqm-7" mnemonic="VEM"
                         title="Vertical editing"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 7</ctlseq>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt420" series="vt" additional="vt510"/>
                </section>

                <section role="parameter" id="decrqm-10" mnemonic="HEM" title="Horizontal editing (permanently set to 4)">
                    <ctlseq><param-single/> = 10</ctlseq>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                </section>
                <section role="parameter" id="rqm-11" mnemonic="PUM"
                         title="Positioning unit"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 11</ctlseq>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt420" series="vt" additional="vt510"/>
                </section>
                <section role="parameter" id="decrqm-12" mnemonic="SRM" title="Send/receive">
                    <ctlseq><param-single/> = 12</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h:Ps-=-1-2.1E54"/>
                    <ref src="e48:79"/>
                    <ref src="070:390"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt"/>
                </section>
                <section role="parameter" id="rqm-13" mnemonic="FEAM"
                         title="Format effector action"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 13</ctlseq>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt420" series="vt" additional="vt510"/>
                </section>
                <section role="parameter" id="rqm-14" mnemonic="FETM"
                         title="Format effector transfer"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 14</ctlseq>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt420" series="vt" additional="vt510"/>
                </section>
                <section role="parameter" id="rqm-15" mnemonic="MATM"
                         title="Multiple area transfer"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 15</ctlseq>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                </section>
                <section role="parameter" id="rqm-16" mnemonic="TTM"
                         title="Transfer termination"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 16</ctlseq>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                </section>
                <section role="parameter" id="rqm-17" mnemonic="SATM"
                         title="Selected area transfer"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 17</ctlseq>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510"/>
                </section>
                <section role="parameter" id="rqm-18" mnemonic="TSM"
                         title="Tabulation stop"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 18</ctlseq>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt420" series="vt" additional="vt510"/>
                </section>
                <section role="parameter" id="rqm-19" mnemonic="EBM"
                         title="Editing boundary"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 19</ctlseq>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt420" series="vt" additional="vt510"/>
                </section>
                <section role="parameter" id="decrqm-20" mnemonic="LNM" title="line feed/new line">
                    <ctlseq><param-single/> = 20</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-h:Ps-=-2-0.1E53"/>
                    <ref src="070:312"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:281"/>
                    <ref src="vt510:DECRQM.html#T5-7"/>
                    <ref src="vt52x:263"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt wt"/>
                </section>
                <section role="parameter" not-implemented="true" id="rqm-33"
                         mnemonic="WYSTCURM" title="Cursor blinking">
                    <ctlseq><param-single/> = 33</ctlseq>
                    <ref src="wy370:26"/>
                    <termsupp first="wy370" series="wyse" additional="tt"/>
                    <p badges="scoansi">Ignored</p>
                </section>
                <section role="parameter" badges="wy370" mnemonic="WYULCURM" id="rqm-34"
                         title="Block cursor">
                    <ctlseq><param-single/> = 34</ctlseq>
                    <ref src="wy370:26"/>
                    <termsupp first="wy370" series="wyse" additional="tt"/>
                </section>
            </section>
        </section>
        <section role="ctlseq" mnemonic="DECRQM" id="decrqm-dec" title="Request DEC mode">
            <ctlseq>CSI ? <param-single/> $ p</ctlseq>
            <ref src="wy370:147"/>
            <ref src="070:448"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-$-p.1D6D"/>
            <ref src="vt510:DECRQM.html"/>
            <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
            <p><param-single/> is the mode number as in
                <a href="#sm">SM</a>/<a href="#rm">RM</a>. Only those listed
                below are currently supported by DECRQM in K95 at this time.
                Response is in the form: <tt><cc>CSI</cc> ? Ps; Pm $ y</tt></p>
            <!-- TODO: Need to check xterm, but *all* modes from SM/RM should
                    probably be supported here! -->
            <section style="group" role="group">
                <section role="parameter" id="decrqm-1" mnemonic="DECCKM" title="Cursor keys">
                    <ctlseq><param-single/> = 1</ctlseq>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1.1E61"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                </section>
                <section role="parameter" id="decrqm-2" mnemonic="DECANM" title="ANSI">
                    <ctlseq><param-single/> = 2</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2.1E62"/>
                    <ref src="wy370:26"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 wt"/>
                </section>
                <section role="parameter" id="decrqm-3" mnemonic="DECCOLM" title="Column">
                    <ctlseq><param-single/> = 3</ctlseq>
                    <ref src="wy370:26"/>
                    <ref src="070:326"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-3.1E63"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                </section>
                <section role="parameter" id="decrqm-4" mnemonic="DECSCLM" title="Scrolling">
                    <ctlseq><param-single/> = 4</ctlseq>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4.1E64"/>
                    <ref src="vt340:201"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420"/>
                </section>
                <section role="parameter" id="decrqm-5" mnemonic="DECSCNM" title="Screen">
                    <ctlseq><param-single/> = 5</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-5.1E65"/>
                    <ref src="wy370:26"/>
                    <ref src="070:349"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                </section>
                <section role="parameter" id="decrqm-6" mnemonic="DECOM" title="Origin">
                    <ctlseq><param-single/> = 6</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-6.1E66"/>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                </section>
                <section role="parameter" id="decrqm-7" mnemonic="DECAWM" title="Autowrap">
                    <ctlseq><param-single/> = 7</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-7.1E67"/>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                </section>
                <section role="parameter" id="decrqm-8" mnemonic="DECARM" title="Autorepeat">
                    <ctlseq><param-single/> = 8</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-8.1E68"/>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                    <p>
                        On OS/2, this mode is permanently set (3). Setting/resetting
                        DECARM is only supported on Windows.
                    </p>
                </section>
                <section role="parameter" title="X10 mouse reporting"
                         id="decrqm-9-x10" groups="isansi"
                         badges="linux k95 xterm k95">
                    <ctlseq><param-single/> = 9</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-9.1E6D"/>
                    <termsupp first="xterm" series="xt" additional="tt"/>
                </section>
                <section role="parameter" not-implemented="true"
                         mnemonic="DECEDM" id="decrqm-10p" title="Block mode">
                    <ctlseq><param-single/> = 10</ctlseq>
                    <ref src="wy370:26"/>
                    <ref src="vt132:84"/>
                    <ref src="vt340:234"/>
                    <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                </section>
                <section role="parameter" id="decrqm-10-rxvt" mnemonic=""
                         title="Toolbar (rxvt)" badges="xterm k95">
                    <ctlseq><param-single/> = 10</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-0.1EC2"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>
                        K95G only: reports if the toolbar is currently visible or not.
                        In the console versions of Kermit 95 (OS/2, Windows), it
                        reports permanently reset as these versions have no toolbar.
                    </p>
                </section>
                <section role="parameter" id="decrqm-11" mnemonic="DECLTM" title="Line Transmit Mode"
                         not-implemented="true" todo="true" >
                    <ctlseq><param-single/> = 11</ctlseq>
                    <ref src="vt132:86"/>
                    <ref src="vt340:234"/>
                    <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
                    <p>Not Implemented: K95 does not support the VT132 block mode</p>
                </section>
                <section role="parameter" id="decrqm-deckanam" mnemonic="DECKANAM" title="Katakana Shift Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 12</ctlseq>
                    <ref src="vt382:181"/>
                    <termsupp first="vt382" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-12p" mnemonic=""
                         title="Blinking cursor (AT&amp;T 610)">
                    <ctlseq><param-single/> = 12</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-1-2.1EC4"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                </section>
                <section role="parameter" id="decrqm-13" mnemonic="DECSCFDM" title="Space Compression/Field Delimiting Mode"
                         not-implemented="true" todo="true" >
                    <ctlseq><param-single/> = 13</ctlseq>
                    <ref src="vt340:234"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                </section>
                <section role="parameter" id="sbc-mrc" mnemonic=""
                         title="Start blinking cursor (set only via resource or menu)"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 13</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-3.1EC1"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>xterm only allows this setting to be read with DECRQM.
                        It can not be set/reset with DECSM/DECRM.</p>
                </section>
                <section role="parameter" id="decrqm-14" mnemonic="DECTEM" title="Transmit Execution Mode"
                         not-implemented="true" todo="true" >
                    <ctlseq><param-single/> = 14</ctlseq>
                    <ref src="vt340:234"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                </section>
                <section role="parameter" id="bc-xor" mnemonic=""
                         title="Enable XOR of blinking cursor ctlseq and menu"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 14</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-4.1EC2"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>xterm only allows this setting to be read with DECRQM.
                        It can not be set/reset with DECSM/DECRM.</p>
                </section>
                <section role="parameter" id="decrqm-16" mnemonic="DECEKEM" title="Edit Key Execution Mode"
                         not-implemented="true" todo="true" >
                    <ctlseq><param-single/> = 16</ctlseq>
                    <ref src="vt340:234"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                </section>
                <section role="parameter" id="decrqm-18" mnemonic="DECPFF" title="Print form feed">
                    <ctlseq><param-single/> = 18</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-8.1EC6"/>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420"/>
                </section>
                <section role="parameter" id="decrqm-19" mnemonic="DECPEX" title="Printer extent">
                    <ctlseq><param-single/> = 19</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-9.1EC7"/>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="vt340:234"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt"/>
                </section>
                <section role="parameter" id="decrqm-25" mnemonic="DECTCEM" title="Text cursor enable">
                    <ctlseq><param-single/> = 25</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-5.1EC4"/>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="vt340:235"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                </section>
                <section role="parameter" id="decrqm-34" mnemonic="DECRLM"
                         title="Cursor direction, right to left">
                    <ctlseq><param-single/> = 34</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-35" mnemonic="DECHEBM"
                         title="Hebrew keyboard mapping">
                    <ctlseq><param-single/> = 35</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <!-- TODO:  The VT340 manual (on page 235) lists Tektronix mode as being mode 35
                            which conflicts with hebrew keyboard mode! Error in the manual?
                    -->
                <section role="parameter" id="decrqm-36" mnemonic="DECHEM"
                         title="Hebrew Encoding Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 36</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" mnemonic="DECTEK" id="decrqm-38" title="Tektronix 4010/4014 mode">
                    <ctlseq><param-single/> = 38</ctlseq>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <termsupp first="xterm" series="xt" additional="tt"/>
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-40"
                         title="80 - 132 mode switch">
                    <ctlseq><param-single/> = 40</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-0.1EC5"/>
                    <termsupp first="xterm" series="xt" additional="wt"/>
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-41"
                         title="more(1) fix">
                    <ctlseq><param-single/> = 41</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-1.1EC6"/>
                </section>
                <section role="parameter" id="decrqm-42" mnemonic="DECNRCM" title="National replacement character set">
                    <ctlseq><param-single/> = 42</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-4-2.1EC3"/>
                    <ref src="wy370:26"/>
                    <ref src="070:381"/>
                    <ref src="vt340:235"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420"/>
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-43"
                         mnemonic="DECGEPM" title="Graphics Normal Print mode">
                    <ctlseq><param-single/> = 43</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-3.1EC8"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-44"
                         mnemonic="DECGPCM" title="Graphics Print Monochrome mode">
                    <ctlseq><param-single/> = 44</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-4.1EC9"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                    <!-- TODO: XTERM - Turn off margin bell -->
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-45"
                         mnemonic="DECGPCS" title="Graphics Print Color syntax = HLS">
                    <ctlseq><param-single/> = 45</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-5.1ECA"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                    <!-- TODO: XTERM - No Reverse-wraparound mode -->
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-46"
                         mnemonic="DECGPBM" title="Graphics Print No-Background mode">
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                    <ctlseq><param-single/> = 46</ctlseq>
                </section>
                <section role="parameter" id="decrqm-46-xt" mnemonic=""
                         title="Stop Logging (xterm)"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 46</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-6.1ECB"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-47"
                         mnemonic="DECGRCM" title="Graphics Unrotated Print mode">
                    <ctlseq><param-single/> = 47</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-7.1ECC"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-47-altbuf"
                         title="Use normal screen buffer (xterm)">
                    <ctlseq><param-single/> = 47</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-l:Ps-=-4-7.1ECC"/>
                    <termsupp first="xterm" series="xt" additional="tt"/>
                    <p>
                        Not currently implemented as it conflicts with DECGRCM which
                        Kermit 95 may someday prefer to implement for the K95
                        terminal type.
                    </p>
                </section>
                <section role="parameter" not-implemented="true" id="decrqm-53"
                         mnemonic="DEC131TM" title="VT131 Transmit">
                    <ctlseq><param-single/> = 53</ctlseq>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340"/>
                </section>
                <section role="parameter" id="decrqm-57" mnemonic="DECNAKB"
                         title="Greek keyboard mapping"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 57</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-58" mnemonic="DECIPEM"
                         title="Enter/Return from IBM ProPrinter Emulation Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 58</ctlseq>
                    <ref src="vt510:DECIPEM.html"/>
                    <ref src="vt52x:216"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-59" mnemonic="DECKKDM"
                         title="Katakana terminal mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 59</ctlseq>
                    <termsupp first="vt382" series="vt" additional="tt"/>
                </section>
                <section role="parameter" id="decrqm-60" mnemonic="DECHCCM"
                         title="Horizontal cursor coupling"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 60</ctlseq>
                    <ref src="070:340"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420"/>
                </section>
                <section role="parameter" id="decrqm-61" mnemonic="DECVCCM"
                         title="Vertical cursor coupling"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 61</ctlseq>
                    <ref src="070:341"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420"/>
                </section>
                <section role="parameter" id="decrqm-64" mnemonic="DECPCCM"
                         title="Page cursor coupling" groups="isvt330 isvt420">
                    <ctlseq><param-single/> = 64</ctlseq>
                    <ref src="070:342"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 wt"/>
                </section>
                <section role="parameter" id="decrqm-66" mnemonic="DECNKM" title="Numeric Keypad">
                    <ctlseq><param-single/> = 66</ctlseq>
                    <ref src="wy370:26"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-6-6.1EC9"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                </section>
                <section role="parameter" id="decrqm-67" mnemonic="DECBKM" title="Backarrow key">
                    <ctlseq><param-single/> = 67</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-6-7.1ECA"/>
                    <ref src="wy370:26"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420 tt wt"/>
                </section>
                <section role="parameter" id="decrqm-68" mnemonic="DECKBUM" title="Keyboard usage">
                    <ctlseq><param-single/> = 68</ctlseq>
                    <ref src="wy370:26"/>
                    <ref src="070:389"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420"/>
                </section>
                <section role="parameter" id="decrqm-69" mnemonic="DECLRMM"
                         title="Vertical Split Screen"
                         groups="isvt420" badges="k95 xterm">
                    <ctlseq><param-single/> = 69</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-6-9.1ECC"/>
                    <ref src="070:284"/>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt420" series="vt" additional="tt wt"/>
                </section>
                <section role="parameter" id="decrqm-73" mnemonic="DECXRLM"
                         title="Transmit rate limiting"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 73</ctlseq>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <ref src="vt52x:325"/>
                    <ref src="vt340:235"/>
                    <termsupp first="vt330" series="vt" additional="vt340 vt420"/>
                </section>
                <!-- Not sure if VWS supported DECRQM, or if DECterm or anything
                    else implemented any of these modes

                <section role="parameter" id="decrqm-76" mnemonic="DECTPM" todo="true"
                         title="Transparent Paste Mode" not-implemented="true">
                    <ctlseq><param-single/> = 76</ctlseq>
                    <ref src="vws:109"/>
                </section>
                <section role="parameter" id="decrqm-77" mnemonic="DECTCM" todo="true"
                     title="Transparent Copy Mode" not-implemented="true">
                    <ctlseq><param-single/> = 77</ctlseq>
                    <ref src="vws:109"/>
                </section>

                -->
                <section role="parameter" not-implemented="true" id="decrqm-80"
                         mnemonic="DECSDM" title="Sixel Display Mode" todo="true">
                    <ctlseq><param-single/> = 80</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-8-0.1EC5"/>
                    <termsupp first="vt330" series="vt" additional="vt340 xt wt"/>
                </section>
                <section role="parameter" id="decrqm-81" mnemonic="DECKPM"
                         title="Key position"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 81</ctlseq>
                    <ref src="vt420:282"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt420" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-95" mnemonic="DECNCSM"
                         title="No clearing screen on column change"
                         groups="isvt520 isxterm">
                    <ctlseq><param-single/> = 95</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-9-5.1ECB"/>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                    <p>
                        Reports whether the screen will be cleared on reisze.
                    </p>
                </section>
                <section role="parameter" id="decrqm-96" mnemonic="DECRLCM"
                         title="Cursor right to left"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 96</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-97" mnemonic="DECCRTSM"
                         title="CRT save"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 97</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-98" mnemonic="DECARSM"
                         title="Auto resize"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 98</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-99" mnemonic="DECMCM"
                         title="Modem control"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 99</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-100" mnemonic="DECAAM"
                         title="Auto answerback"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 100</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-101" mnemonic="DECCANSM"
                         title="Conceal answerback message"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 101</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-102" mnemonic="DECNULM"
                         title="Ignoring null"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 102</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-103" mnemonic="DECHDPXM"
                         title="Half-duplex"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 103</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-104" mnemonic="DECESKM"
                         title="Secondary keyboard language"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 104</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-106" mnemonic="DECOSCNM"
                         title="Overscan"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 106</ctlseq>
                    <ref src="vt510:DECRQM.html#T5-8"/>
                    <ref src="vt52x:264"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>

                <section role="parameter" id="rqm-108" mnemonic="DECNUMLK"
                         title="Num Lock Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 108</ctlseq>
                    <ref src="vt510:DECNUMLK.html"/>
                    <ref src="vt52x:230"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="rqm-109" mnemonic="DECCAPSLK"
                         title="Caps Lock Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 109</ctlseq>
                    <ref src="vt510:DECCAPSLK.html"/>
                    <ref src="vt52x:182"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="rqm-110" mnemonic="DECKLHIM"
                         title="Keyboard LED's Host Indicator Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 110</ctlseq>
                    <ref src="vt510:DECKLHIM.html"/>
                    <ref src="vt52x:219"/>
                    <termsupp first="vt510" series="vt" additional=""/>
                </section>
                <section role="parameter" id="rqm-111" mnemonic="DECFWM"
                         title="Framed Windows Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 111</ctlseq>
                    <ref src="vt52x:210"/>
                    <termsupp first="vt520" series="vt" additional=""/>
                </section>
                <section role="parameter" id="rqm-112" mnemonic="DECRPL"
                         title="Review Previous Lines Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 112</ctlseq>
                    <ref src="vt52x:251"/>
                    <termsupp first="vt520" series="vt" additional=""/>
                </section>
                <section role="parameter" id="rqm-113" mnemonic="DECHWUM"
                         title="Host Wake-Up Mode (CRT and Energy Saver)"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 113</ctlseq>
                    <ref src="vt52x:213"/>
                    <termsupp first="vt520" series="vt" additional=""/>
                </section>
                <section role="parameter" id="rqm-114" mnemonic="DECATCUM"
                         title="Alternate Text Underline Mode">
                    <ctlseq><param-single/> = 114</ctlseq>
                    <ref src="vt52x:177"/>
                    <termsupp first="vt525" series="vt" additional=""/>
                    <p>Reports the current DECATCUM setting</p>
                </section>
                <section role="parameter" id="rqm-115" mnemonic="DECATCBM"
                         title="Alternate Text Color Blink Mode">
                    <ctlseq><param-single/> = 115</ctlseq>
                    <ref src="vt52x:177"/>
                    <termsupp first="vt525" series="vt" additional=""/>
                    <p>Reports the current DECATCBM setting</p>
                </section>
                <section role="parameter" id="rqm-116" mnemonic="DECBBSM"
                         title="Bold and Blink Style Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 116</ctlseq>
                    <ref src="vt52x:179"/>
                    <termsupp first="vt525" series="vt" additional=""/>
                </section>
                <section role="parameter" id="rqm-117" mnemonic="DECECM"
                         title="Erase Color Mode" groups="isvt525" badges="k95">
                    <ctlseq><param-single/> = 117</ctlseq>
                    <ref src="vt52x:202"/>
                    <termsupp first="vt525" series="vt" additional="wt"/>
                    <p>
                        Reports the current <tt>SET TERMINAL COLOR ERASE</tt>
                        setting: Set for <tt>DEFAULT-COLOR</tt>, reset for
                        <tt>CURRENT-COLOR</tt>
                    </p>
                </section>
                <section role="parameter" id="rqm-1000" groups="isansi"
                         badges="linux xterm k95"
                         title="XTERM - Send Mouse X&amp;Y on button press and release">
                    <ctlseq><param-single/> = 1000</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-0.1F78"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                </section>
                <section role="parameter" id="rqm-1001" not-implemented="true"
                         title="XTERM - Use Hilite Mouse Tracking">
                    <ctlseq><param-single/> = 1001</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-1.1F79"/>
                    <termsupp first="xterm" series="xt" additional="tt"/>
                </section>
                <section role="parameter" id="rqm-1002"
                         title="XTERM - Cell Motion Mouse Tracking"
                         groups="isansi" badges="linux xterm k95">
                    <ctlseq><param-single/> = 1002</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-2.1F7A"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                </section>
                <section role="parameter" id="rqm-1003"
                         title="XTERM - All Motion Mouse Tracking"
                         groups="isansi" badges="linux xterm k95">
                    <ctlseq><param-single/> = 1003</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-3.1F7B"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                </section>
                <section role="parameter" id="rqm-1004"
                         title="XTERM - Send FocusIn / FocusOut events">
                    <ctlseq><param-single/> = 1004</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-4.1F7C"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                    <p>
                        K95G (Windows): reports if Focus In/Focus Out reporting
                        is currently enabled. In the OS/2 and Windows Console
                        versions of K95G, Kermit 95 will return 4 (permanently
                        reset).
                    </p>
                </section>
                <section role="parameter" id="rqm-1005"
                         title="XTERM - UTF-8 Mouse Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1005</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-5.1F7D"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                </section>
                <section role="parameter" id="rqm-1006"
                         title="XTERM - SGR Mouse Mode"
                         groups="isansi" badges="linux xterm k95">
                    <ctlseq><param-single/> = 1006</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-6.1F7E"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                </section>
                <section role="parameter" id="rqm-1007" not-implemented="true"
                         title="XTERM - Alternate Scroll Mode">
                    <ctlseq><param-single/> = 1007</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-0-7.1F7F"/>
                    <termsupp first="xterm" series="xt" additional="wt"/>
                </section>
                <section role="parameter" id="rqm-1010" not-implemented="true"
                         title="RXVT - Scroll to bottom on tty output">
                    <ctlseq><param-single/> = 1010</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-0.1F79"/>
                </section>
                <section role="parameter" id="rqm-1011"
                         title="RXVT - Scroll to bottom on key press">
                    <ctlseq><param-single/> = 1011</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-1.1F7A"/>
                    <p>Responds with Set if <tt>set terminal roll-mode keystrokes</tt>
                        is set to <tt>restore-and-send</tt>, or not set otherwise.
                    </p>
                </section>
                <section role="parameter" id="rqm-1014" mnemonic=""
                         title="fastScroll resource"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1014</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-4.1F7D"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1015"
                         title="URXVT Mouse Mode"
                         groups="isansi" badges="linux xterm k95">
                    <ctlseq><param-single/> = 1015</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-5.1F7E"/>
                    <termsupp first="xterm" series="xt" additional="tt"/>
                </section>
                <section role="parameter" id="rqm-1016" mnemonic=""
                         title="SGR mouse PixelMode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1016</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-1-6.1F7F"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1020" mnemonic=""
                         title="utf8 resource setting"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1020</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-$-p.1D6D"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>xterm only allows this setting to be read with DECRQM.
                        It can not be set/reset with DECSM/DECRM.</p>
                </section>
                <section role="parameter" id="rqm-1021" mnemonic=""
                         title="cjkWidth resource setting"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1021</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-$-p.1D6D"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>xterm only allows this setting to be read with DECRQM.
                        It can not be set/reset with DECSM/DECRM.</p>
                </section>
                <section role="parameter" id="rqm-1022" mnemonic=""
                         title="emojiWidth resource setting"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1022</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-$-p.1D6D"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>xterm only allows this setting to be read with DECRQM.
                        It can not be set/reset with DECSM/DECRM.</p>
                </section>
                <section role="parameter" id="rqm-1023" mnemonic=""
                         title="privateWidth resource setting"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1023</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Ps-$-p.1D6D"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>xterm only allows this setting to be read with DECRQM.
                        It can not be set/reset with DECSM/DECRM.</p>
                </section>
                <section role="parameter" id="rqm-1034" mnemonic=""
                         title="Interpret &quot;meta&quot; key">
                    <ctlseq><param-single/> = 1034</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-4.1F7F"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>
                        Indicates if the XTERM-META special keyboard mode is
                        currently set or not.
                    </p>
                </section>
                <section role="parameter" id="rqm-1035" mnemonic=""
                         title="Special modifiers for alt and numlock keys"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1035</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-5.1F80"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1036" mnemonic=""
                         title="Send Esc when meta modifies a key">
                    <ctlseq><param-single/> = 1036</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-6.1F81"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>
                        Indicates if the META special keyboard mode is
                        currently set or not.
                    </p>
                </section>
                <section role="parameter" id="rqm-1037" mnemonic=""
                         title="Send DEL from the editing-keypad delete key"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1037</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-7.1F82"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1039" mnemonic=""
                         title="Send ESC when Alt modifies a key"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1039</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-3-9.1F84"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1040" mnemonic=""
                         title="Keep selection even if not highlighted"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1040</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-0.1F7C"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1041" mnemonic=""
                         title="Use the CLIPBOARD selection"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1041</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-1.1F7D"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1042" mnemonic=""
                         title="Urgency window hint when Ctrl+G is received">
                    <ctlseq><param-single/> = 1042</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-2.1F7E"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>
                        Indicates if the window title and task bar button will
                        be flashed when a bell is received.
                    </p>
                    <p>
                        This is permanently reset on OS/2.
                    </p>
                </section>
                <section role="parameter" id="rqm-1043" mnemonic=""
                         title="Enable raising of the window when Ctrl+G is received">
                    <ctlseq><param-single/> = 1043</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-3.1F7F"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>
                        Indicates if mode 1043 is set which currently has the
                        same behavior as mode 1042.
                    </p>
                    <p>
                        This is permanently reset on OS/2.
                    </p>
                </section>
                <section role="parameter" id="rqm-1044" mnemonic=""
                         title="Reuse the most recent data copied to CLIPBOARD"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1044</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-4.1F80"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1045" mnemonic=""
                         title="Extended reverse-wraparound mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1045</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-5.1F81"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1046" mnemonic="" badges="k95"
                         title="Switching to/from alternate screen buffer"
                         groups="isxterm">
                    <ctlseq><param-single/> = 1046</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-6.1F82"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                    <p>
                        Reports whether switching to the alternate buffer is
                        currently enabled or not.
                    </p>
                </section>
                <section role="parameter" id="rqm-1047" mnemonic="" badges="k95"
                         title="Use alternate screen buffer" groups="isxterm">
                    <ctlseq><param-single/> = 1047</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-7.1F83"/>
                    <termsupp first="xterm" series="xt" additional="tt"/>
                    <p>
                        Reports if the terminal is currently on the alternate
                        buffer or not
                    </p>
                </section>
                <section role="parameter" id="rqm-1048" mnemonic="" badges="k95"
                         title="Save cursor as in DECSC" groups="isxterm">
                    <ctlseq><param-single/> = 1048</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-8.1F84"/>
                    <termsupp first="xterm" series="xt" additional="tt"/>
                    <p>
                        Reports if the cursor has been saved with either
                        <a href="#decsc">DECSC</a> or
                        <a href="#xt-1048">DECSET-1048</a> and not yet restored.
                    </p>
                </section>
                <section role="parameter" id="rqm-1049" mnemonic="" badges="k95"
                         title="Use alternate screen buffer" groups="isxterm">
                    <ctlseq><param-single/> = 1049</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-4-9.1F85"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                    <p>
                        Reports if the terminal is currently on the alternate
                        buffer or not (same as <a href="#rqm-1047">1047</a>)
                    </p>
                </section>
                <section role="parameter" id="rqm-1050" mnemonic=""
                         title="Set terminfo/termcap function-key mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1050</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-5-0.1F7D"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1051" mnemonic=""
                         title="Set sun function-key mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1051</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-5-1.1F7E"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1052" mnemonic=""
                         title="Set HP function-key mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1052</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-5-2.1F7F"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1053" mnemonic=""
                         title="Set SCO function-key mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1053</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-5-3.1F80"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1060" mnemonic=""
                         title="set legacy keboard emulation, i.e, X11R6"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1060</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-6-0.1F7E"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-1061" mnemonic=""
                         title="Set VT220 keyboard emulation"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 1061</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-1-0-6-1.1F7F"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-2001" mnemonic=""
                         title="Enable readline mouse button-1"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 2001</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-1.1F7A"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-2002" mnemonic=""
                         title="Enable readline mouse button-2"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 2002</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-2.1F7B"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-2003" mnemonic=""
                         title="Enable readline mouse button-3"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 2003</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-3.1F7C"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-2004"
                         title="Bracketed Paste Mode">
                    <ctlseq><param-single/> = 2004</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-4.1F7D"/>
                    <termsupp first="xterm" series="xt" additional="tt wt"/>
                </section>
                <section role="parameter" id="rqm-2005" mnemonic=""
                         title="Readline character-quoting"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 2005</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-5.1F7E"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-2006" mnemonic=""
                         title="Readline newline pasting"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 2006</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-h:Ps-=-2-0-0-6.1F7F"/>
                    <termsupp first="xterm" series="xt" additional=""/>
                </section>
                <section role="parameter" id="rqm-2026" mnemonic=""
                         title="Synchronized Output Mode" badges="k95">
                    <termsupp first="wt" series="xt" additional=""/>
                    <ctlseq><param-single/> = 2026</ctlseq>
                    <p>
                        This is Permanently Reset in the OS/2 and Windows Console
                        versions of Kermit 95.
                    </p>
                </section>
                <section role="parameter" id="rqm-2027" mnemonic=""
                         title="Grapheme Cluster Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 2027</ctlseq>
                    <termsupp first="wt" series="wt" additional=""/>
                </section>
                <section role="parameter" id="decrqm-7727" mnemonic=""
                         title="Disable Application Escape mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 7727</ctlseq>
                    <termsupp first="tt" series="tt" additional="tt"/>
                </section>
                <section role="parameter" id="decrqm-7786" mnemonic=""
                         title="Disable mouse wheel - cursor key translation"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 7786</ctlseq>
                    <termsupp first="tt" series="tt" additional="tt"/>
                </section>
                <section role="parameter" id="decrqm-8200" mnemonic="TTCH"
                         title="Don't cursor home when display is erased"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 8200</ctlseq>
                    <termsupp first="tt" series="tt" additional="tt"/>
                </section>
                <section role="parameter" id="decrqm-9001" mnemonic=""
                         title="Win32 Input Mode"
                         not-implemented="true" todo="true">
                    <ctlseq><param-single/> = 9001</ctlseq>
                    <termsupp first="wt" series="wt" additional=""/>
                </section>
            </section>
        </section>
        <section role="ctlseq" mnemonic="DECSDPT" id="decsdpt"
                 title="Select Digital Printed Data Type"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ) p</ctlseq>
            <ref src="vt510:DECSDPT.html"/>
            <ref src="vt52x:283"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" mnemonic="DECSR" id="decsr" title="Secure Reset"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> = p</ctlseq>
            <ref src="vt420:310"/>
            <ref src="vt510:DECSR.html"/>
            <ref src="vt52x:298"/>
            <termsupp first="vt420" series="vt" additional=""/>
            <p>
                The VT420 manual gives the control sequence as starting with <tt><cc>ESC</cc> [</tt>
                rather than <tt><cc>CSI</cc></tt>; I'm not sure if DECSR is treated specially
                in some way here.
            </p>
        </section>
        <section role="ctlseq" mnemonic="DECSPPCS" id="decsppcs"
                 title="Select ProPrinter Character Set"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> * p</ctlseq>
            <ref src="vt510:DECSPPCS.html"/>
            <ref src="vt52x:297"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" mnemonic="DECLTOD" id="decltod"
                 title="Load Time of Day">
            <ctlseq>
                CSI <param-single/> ; <param-single/> , p
            </ctlseq>
            <ref src="vt510:DECLTOD.html"/>
            <ref src="vt52x:226"/>
            <termsupp first="vt510" series="vt" additional=""/>
            <p>K95 will attempt to set the local system time
                (your computers' clock) to the time supplied if it can. First parameter
                is hour (0–23), second parameter is minute (0–59).
            </p>
            <!-- TODO: If this actually works, we should probably have a setting to forbid
                    this, and have it off by default -->
        </section>
        <section role="ctlseq" mnemonic="DECARR" id="decarr"
                 title="Select Auto Repeat Rate"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> - p</ctlseq>
            <ref src="vt52x:174"/>
            <termsupp first="vt520" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="xtpushsgr-a" mnemonic="XTPUSHSGR"
                 title="Push video attributes onto stack"
                 not-implemented="true" todo="true">
            <ctlseq>CSI # p</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-pound-p.1E13"/>
            <termsupp first="xterm" series="xt" additional="wt"/>
        </section>
        <section role="ctlseq" id="xtpushsgr-b" mnemonic="XTPUSHSGR"
                 title="Push video attributes onto stack"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-multi/> # p</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-pound-p.1EFD"/>
            <termsupp first="xterm" series="xt" additional="wt"/>
        </section>

        <!-- ######################### q ######################### -->
        <!-- TODO: xterm: CSI > Ps q: Report xterm name and version (XTVERSION) -->

        <section role="ctlseq" id="decvkppi" not-implemented="true" todo="true"
                 mnemonic="decVKPPI" title="Print Partial Image">
            <ctlseq>CSI <param-single/> ; <param-single/> ! q</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <ref src="vk100:93"/>
        </section>
        <section role="ctlseq" id="decsnc" not-implemented="true" todo="true"
                 mnemonic="DECSNC" title="Set Number of Copies">
            <ctlseq>CSI <param-single/> &amp; q</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <ref src="tphb87:792"/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>
        <section role="ctlseq" id="decsbca" not-implemented="true" todo="true"
                 mnemonic="DECSBCA" title="Select Bar Code Attributes">
            <ctlseq>CSI <param-multi/> , q</ctlseq>
            <termsupp first="la30" series="print" additional=""/>
            <ref src="dap:130"/>
        </section>

        <section role="ctlseq" id="xtversion" mnemonic="XTVERSION" badges="k95"
                 title="Report program name and version" groups="isxterm">
            <ctlseq>CSI &gt; 0 q</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Ps-q:Ps-=-0.1F0B"/>
            <p>
                Reports the program name and version as a DCS string of the
                form <tt><cc>DCS</cc>&gt;|<em>text</em><cc>ST</cc></tt>.
                Different terminals report their name and version differently.
                Xterm gives a response like "Xterm(390)", while Kermit 95
                responds with something like "Kermit 95 3.0.0". A full response
                from Kermit 95 should look like:
                <tt><cc>DCS</cc>&gt;|Kermit 95 3.0.0<cc>ST</cc></tt>.
            </p>
            <p>
                Doing anything with the response value other than displaying it
                to the user is strongly discouraged. Instead of checking the
                version of the terminal emulator in use, applications should
                check for supported features using control sequences such as
                <a href="#decrqm">DECRQM</a> or <a href="#decrqss">DECRQSS</a>.
                Kermit 95 only implements this control sequence so that existing
                applications expecting a response don't have to wait for a
                timeout instead.
            </p>
        </section>

        <section role="ctlseq" ctlseq="CSI q" not-implemented="true"
                 badges="h19" title="Transmit 25th line to host"/>
        <section role="ctlseq" ctlseq="CSI q" badges="sun" mnemonic="SUNWOB"
                 not-implemented="true" id="sunwob" title="White On Black">
            <p>
                Takes no parameters. Sets the screen mode to white-on-black.
                If the screen mode is already white-on-black, has no effect.
                In this mode spaces display as
                solid black, other characters as white-on-black. The
                cursor is a solid white block. Characters displayed in
                negative image rendition (see 'Select Graphic Rendition'
                above) is black-on-white in this mode. The initial
                setting of the screen mode on reset is the alternative mode,
                black on white.
                <!-- TODO: This should be easy to implement!
                       If we don't want to override colour attributes, we
                       could treat it as a reverse-mode thing like we do
                       for SNI-97801 (CSI Ps u)
                -->
            </p>
        </section>
        <section role="ctlseq" not-implemented="true" badges="s97801" title="Set CH.CODE LED">
            <ctlseq>CSI <param-single/> q</ctlseq>
            <p>
                Turns CH.CODE LED off (<param-single/> = 0) or on
                (<param-single/> = 6). Does not affect actual mode.
            </p>
        </section>
        <section role="ctlseq" mnemonic="DECLL" id="decll" title="Load LEDs">
            <ctlseq>CSI <param-multi/> q</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-q.1CB1"/>
            <ref src="vt100:DECLL"/>
            <ref src="vt132:86"/>
            <ref src="vt510:DECLL.html"/>
            <ref src="vt52x:225"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt510 linux"/>
            <section style="group" role="group">
                <section role="parameter" id="decll-0" title="All LEDs off">
                    <ctlseq><param-single/> = 0</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-q:Ps-=-0.1E03"/>
                    <ref src="vt510:DECLL.html"/>
                    <ref src="vt52x:225"/>
                    <termsupp first="vt100" series="vt" additional="vt132 vt510 linux"/>
                </section>
                <section role="parameter" id="decll-1" title="Num Lock on">
                    <ctlseq><param-single/> = 1</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-q:Ps-=-1.1E04"/>
                    <ref src="vt510:DECLL.html"/><ref src="vt52x:225"/>
                    <termsupp first="vt100" series="vt" additional="vt132 vt510 linux"/>
                </section>
                <section role="parameter" id="decll-2" title="Caps Lock On">
                    <ctlseq><param-single/> = 2</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q:Ps-=-2.1ED5"/>
                    <ref src="vt510:DECLL.html"/>
                    <ref src="vt52x:225"/>
                    <termsupp first="vt100" series="vt" additional="vt132 vt510 linux"/>
                </section>
                <section role="parameter" id="decll-3" title="Scroll Lock On">
                    <ctlseq><param-single/> = 3</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-q:Ps-=-3.1E06"/>
                    <ref src="vt510:DECLL.html"/>
                    <ref src="vt52x:225"/>
                    <termsupp first="vt100" series="vt" additional="vt132 vt510 linux"/>
                </section>
                <section role="parameter" id="decll-4" title="LED 4 On">
                    <ctlseq><param-single/> = 4</ctlseq>
                    <ref src="vt132:86"/>
                    <p>On the VT132, this is the EDIT light</p>
                </section>
                <section role="parameter" id="decll-21" title="Num Lock off">
                    <ctlseq><param-single/> = 21</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-q:Ps-=-2-1.1E63"/>
                    <ref src="vt510:DECLL.html"/>
                    <ref src="vt52x:225"/>
                </section>
                <section role="parameter" id="decll-22" title="Caps Lock Off">
                    <ctlseq><param-single/> = 22</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-q:Ps-=-2-2.1E64"/>
                    <ref src="vt510:DECLL.html"/>
                    <ref src="vt52x:225"/>
                </section>
                <section role="parameter" id="decll-23" title="Scroll Lock Off">
                    <ctlseq><param-single/> = 23</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-q:Ps-=-2-3.1E65"/>
                    <ref src="vt510:DECLL.html"/>
                    <ref src="vt52x:225"/>
                </section>
                <section role="parameter" id="decll-24" title="LED 4 Off">
                    <ctlseq><param-single/> = 24</ctlseq>
                    <ref src="vt132:86"/>
                    <p>On the VT132, this is the EDIT light</p>
                </section>
            </section>
        </section>
        <section role="ctlseq" id="decscusr" mnemonic="DECSCUSR" title="Set Cursor Style">
            <ctlseq>CSI <param-single/> SP q</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81"/>
            <ref src="vt510:DECSCUSR.html"/>
            <ref src="vt52x:281"/>
            <termsupp first="vt510" series="vt" additional="tt wt"/>
            <p>Set Cursor Type (VT520)</p>
            <p>You can query the current state of DECSCUSR with
                <a href="#decrqss">DECRQSS</a></p>

            <section role="parameter" id="decscusr-blink-bl" title="Blinking Block">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q:Ps-=-0.1ED3"/>
                <ref src="vt510:DECSCUSR.html"/>
                <ref src="vt52x:281"/>
                <termsupp first="vt510" series="vt" additional="tt wt"/>
            </section>
            <section role="parameter" id="decscusr-blink-bl-2" title="Blinking Block">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q:Ps-=-1.1ED4"/>
                <ref src="vt510:DECSCUSR.html"/>
                <ref src="vt52x:281"/>
                <termsupp first="vt510" series="vt" additional="tt wt"/>
            </section>
            <section role="parameter" id="cursor-steady-block" title="Steady Block">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q:Ps-=-2.1ED5"/>
                <ref src="vt510:DECSCUSR.html"/>
                <ref src="vt52x:281"/>
                <termsupp first="vt510" series="vt" additional="tt wt"/>
            </section>
            <section role="parameter" id="decscusr-blink-ul" title="Blinking Underline">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q:Ps-=-3.1ED6"/>
                <ref src="vt510:DECSCUSR.html"/>
                <ref src="vt52x:281"/>
                <termsupp first="vt510" series="vt" additional="tt wt"/>
            </section>
            <section role="parameter" id="steady-underline" title="Steady Underline">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q:Ps-=-4.1ED7"/>
                <ref src="vt510:DECSCUSR.html"/>
                <ref src="vt52x:281"/>
                <termsupp first="vt510" series="vt" additional="tt wt"/>
            </section>
            <section role="parameter" id="decscusr-5" mnemonic=""
                     title="Blinking bar"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q:Ps-=-5.1ED8"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
            </section>
            <section role="parameter" id="decscusr-6" mnemonic=""
                     title="Steady bar"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q:Ps-=-6.1ED9"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
            </section>
        </section>
        <section role="ctlseq" groups="isvt220" id="decsca" mnemonic="DECSCA" title="Select Character Attributes">
            <ctlseq>CSI <param-single/> " q</ctlseq>
            <ref src="wy370:76"/>
            <ref src="070:421"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-dq-q.1DB3"/>
            <ref src="vt220:S4.9.2"/>
            <ref src="vt340:141"/>
            <ref src="vt420:177"/>
            <ref src="vt510:DECSCA.html"/>
            <ref src="vt52x:275"/>
            <termsupp first="vt220" series="vt" additional="vt330 vt340 vt420 vt510 dtterm wt"/>

            <p>
                Sets and clears character attributes in a similar way to how
                <a href="#sgr">SGR</a> works, though the set of settable
                attributes is different. Selected character attributes are
                applied to all subsequently received characters.
            </p>

            <p>
                DEC only defined the unerasable (protected) attribute for this
                control sequence. Characters with the unerasable attribute
                set are not affected by <a href="#decsera">DECSERA</a>,
                <a href="#decsed">DECSED</a>, <a href="#decsel">DECSEL</a>.
            </p>

            <p>You can query the current state of DECSCA with
                <a href="#decrqss">DECRQSS</a></p>

            <section style="group" role="group">
                <section role="parameter" id="decsca-0" title="Designate character erasable">
                    <ctlseq><param-single/> = 0</ctlseq>
                    <ref src="wy370:76"/>
                    <ref src="070:421"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-dq-q:Ps-=-0.1F05"/>
                    <ref src="vt220:S4.9.2"/>
                    <ref src="vt420:177"/>
                    <ref src="vt510:DECSCA.html"/>
                    <ref src="vt52x:275"/>
                    <termsupp first="vt220" series="vt" additional="vt420 vt510 dtterm"/>
                </section>
                <section role="parameter" id="decsca-1" title="Designate character unerasable">
                    <ctlseq><param-single/> = 1</ctlseq>
                    <ref src="wy370:76"/>
                    <ref src="070:421"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-dq-q:Ps-=-1.1F06"/>
                    <ref src="vt220:S4.9.2"/>
                    <ref src="vt420:177"/>
                    <ref src="vt510:DECSCA.html"/>
                    <ref src="vt52x:275"/>
                    <termsupp first="vt220" series="vt" additional="vt420 vt510 dtterm"/>
                </section>
                <section role="parameter" id="decsca-2" title="Designate character erasable">
                    <ctlseq><param-single/> = 2</ctlseq>
                    <ref src="wy370:76"/>
                    <ref src="070:421"/>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-dq-q:Ps-=-2.1F07"/>
                    <ref src="vt220:S4.9.2"/>
                    <ref src="vt420:177"/>
                    <ref src="vt510:DECSCA.html"/>
                    <ref src="vt52x:275"/>
                    <termsupp first="vt220" series="vt" additional="vt420 v510 dtterm"/>
                </section>
            </section>
        </section>

        <section role="ctlseq" id="decsddt" mnemonic="DECSDDT"
                 title="Set Disconnect Delay Time"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> $ q</ctlseq>
            <ref src="vt510:DECSDDT.html"/>
            <ref src="vt52x:282"/>
            <termsupp first="vt510" series="vt" additional="tt"/>
        </section>

        <section role="ctlseq" id="xtpopsgr-alt" mnemonic="XTPOPSGR"
                 title="Pop video attributes from stack"
                 not-implemented="true" todo="true">
            <ctlseq>CSI # q</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-pound-q.1E14"/>
            <termsupp first="xterm" series="xt" additional="wt"/>
            <p>This is a synonym for <a href="#xtpopsgr">XTPOPSGR</a>.</p>
        </section>

        <section role="ctlseq" id="decelf" mnemonic="DECELF"
                 title="Enable Local Functions"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single symbol="Pf1"/> ; <param-single symbol="Pc1"/> ;
                ... <param-single symbol="Pfn"/> ; <param-single symbol="Pcn"/> + q</ctlseq>
            <ref src="vt420:217"/>
            <ref src="vt510:DECELF.html"/>
            <ref src="vt52x:205"/>
            <termsupp first="vt420" series="vt" additional="vt510"/>
        </section>
        <section role="ctlseq" id="dectid" mnemonic="DECTID"
                 title="Select Terminal ID"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> , q</ctlseq>
            <ref src="vt510:DECTID.html"/>
            <ref src="vt52x:312"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="deccrtst" mnemonic="DECCRTST"
                 title="CRT Saver Timing"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> - q</ctlseq>
            <ref src="vt52x:190"/>
            <termsupp first="vt520" series="vt" additional=""/>
        </section>


        <!-- ######################### r ######################### -->
        <section role="ctlseq" id="decnvr" not-implemented="true" todo="true"
                 mnemonic="DECNVR" title="NVR Feature Settings">
            <ctlseq>CSI <param-multi/> ! r</ctlseq>
            <termsupp first="dtc01" series="dtc" additional=""/>
            <ref src="dtc01:70"/>
        </section>
        <section role="ctlseq" id="decbcs" not-implemented="true" todo="true"
                 mnemonic="DECBCS" title="Setting Block Character Parameters">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> ;
                <param-single/> ; <param-single/> ' r</ctlseq>
            <termsupp first="lg31" series="print" additional=""/>
            <!-- Mentioned here:
                http://ftp.xenya.si/sup/info/digital/MDS/jun99/Cd3/PRINTER/LG31EUG2.PDF
                 -->
        </section>
        <section role="ctlseq" not-implemented="true" id="h19-setbaud" badges="h19" title="Set Baud Rate">
            <ctlseq>CSI <param-single/> r</ctlseq>
            <p>Set Baud Rate to <param-single/>.</p>
            <p>
                Only if the real terminal type is H19. If a different terminal
                type is chosen that is able to switch into an H19 mode, and K95
                is asked to switch into that H19 mode, this control sequence
                remains unavailable.
            </p>
        </section>
        <section role="ctlseq" not-implemented="true" badges="sun"
                 id="sunscrl" mnemonic="SUNSCRL" title="Set Scrolling Region">
            <ctlseq>
                CSI <param-single/> r
            </ctlseq>
            <p>
                The parameter (default 0) sets how many lines the screen should scroll up
                when a line-feed function is performed with the cursor on the bottom line.
                A parameter of 2 or 3 introduces a small "jump" when a scroll occurs, while
                a parameter of 34 clears the screen rather than scrolling. A parameter of
                0 initiates "wrap mode". In wrap mode, if a linefeed occurs on the
                bottom line, the cursor goes to the same character
                position in the top line of the screen. When any
                linefeed occurs, the line that the cursor moves to is
                cleared.
            </p>
        </section>
        <section role="ctlseq" id="decstbm" mnemonic="DECSTBM" title="Set Top and Bottom Margins">
            <ctlseq>CSI <param-single/> ; <param-single/> r</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps-r.1DB0"/>
            <ref src="070:280"/>
            <ref src="wy370:75"/>
            <ref src="vt100:DECSTBM"/>
            <ref src="vt132:89"/>
            <ref src="vt220:S4.13"/>
            <ref src="vt340:122"/>
            <ref src="vt420:156"/>
            <ref src="vt510:DECSTBM.html"/>
            <ref src="vt52x:303"/>
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt330 vt340 vt420 vt510 tt linux putty dtterm wt"/>
            <p>Sets the scrolling region (top;bottom) for the page the cursor is
                currently on. You can query the current state of DECSTBM with
                <a href="#decrqss">DECRQSS</a>.
            </p>
            <p>
                This operation homes the cursor within set margins, and
                clears the <a href="#lcf">Last Column Flag</a>.
            </p>
            <p badges="s97801">
                The bottom margin may include the status line even when it is
                separated from the main display area. The cursor does not move
                from its current location, and the
                <a href="#lcf">Last Column Flag</a> is unaffected.
            </p>
        </section>
        <section role="ctlseq" id="decskcv" mnemonic="DECSKCV"
                 title="Set Key Click Volume"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> SP r</ctlseq>
            <ref src="vt510:DECSKCV.html"/>
            <ref src="vt52x:289"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="sco-sm" badges="scoansi" title="Set margins (SCO)">
            <ctlseq>
                CSI
                <param-single/> ;
                <param-single/> ;
                <param-single/> ;
                <param-single/> r
            </ctlseq>
            <p>
                First two parameters are standard (top and bottom). The second two
                parameters are the left and right margin which default to 1 and the
                width of the terminal if not supplied;
            </p>
        </section>
        <section role="ctlseq" ctlseq="CSI = r" badges="scoansi" id="rsm" mnemonic="RSM"
                 title="Reset/clear margins (SCO)">
            <termsupp series="sco" first="sco"/>
        </section>
        <section role="ctlseq" id="xtrestore" mnemonic="XTRESTORE"
                 title="Restore DEC Private Mode Values"
                 not-implemented="true" todo="true">
            <ctlseq>CSI ? <param-multi/> r</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-r.1D18"/>
            <termsupp first="xterm" series="xt" additional="dtterm"/>
        </section>
        <section role="ctlseq" groups="ishft" not-implemented="true" title="Restore Modes">
            <ctlseq>CSI ? <param-multi/> r</ctlseq>
            <p>
                K95 loops through all the parameters but performs no actions. There are no
                comments in the source code indicating what parameters should be accepted
                or what they should do.
            </p>
            <!-- dtterm supports: 1, 3, 4, 5, 6, 7, 8, 25, 40, 41, 44, 45, 46 -->
        </section>
        <section role="ctlseq" groups="isvt420" id="deccara"
                 mnemonic="DECCARA" title="Change attributes in rectangular area">
            <ctlseq>
                CSI
                <param-single symbol="Pt"/> ;
                <param-single symbol="Pl"/> ;
                <param-single symbol="Pb"/> ;
                <param-single symbol="Pr"/> ;
                <param-single symbol="Pm"/> $ r
            </ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pt;Pl;Pb;Pr;Pm-$-r.20DD"/>
            <ref src="070:428"/>
            <ref src="vt420:189"/>
            <ref src="vt510:DECCARA.html"/>
            <ref src="vt52x:182"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>
                <tt><param-single symbol="Pt"/> ;
                <param-single symbol="Pl"/> ;
                <param-single symbol="Pb"/> ; <param-single symbol="Pr"/></tt> is
                the rectangle (top line, left column, bottom line, right column).
                DECCARA is affected by <a href="#decom">DECOM</a>.
                If <a href="#decsace">DECSACE</a> is off (1 or 0) then the
                DECCARA affects the
                stream of characters between the first and second character positions
                specified. <param-single symbol="Pm"/> is the SGR attributes
                to change, one or more of:
            </p>
            <table>
                <tr>
                    <th><param-single symbol="Pm"/></th>
                    <th>Attribute</th>
                </tr>
                <tr>
                    <td>0</td>
                    <td>All attributes off (normal). For VT525 and K95 this
                        includes color.
                    </td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Bold</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Underline</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Blink</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Negative image</td>
                </tr>
                <tr>
                    <td>22</td>
                    <td>No bold</td>
                </tr>
                <tr>
                    <td>24</td>
                    <td>No underline</td>
                </tr>
                <tr>
                    <td>25</td>
                    <td>No blink</td>
                </tr>
                <tr>
                    <td>27</td>
                    <td>Positive image</td>
                </tr>
                <tr>
                    <td>
                        30...37
                    </td>
                    <td>Set foreground color.
                        See <a href="#sgr-30">SGR-30..37</a> for colour
                        assignments. VT525 and K95 terminal types only.
                    </td>
                </tr>
                <tr>
                    <td>
                        38:2:Pi:Pr:Pg:Pb
                    </td>
                    <td>Set foreground to an RGB color.
                        <a href="#sgr-38-rgb">See SGR for details</a>.
                        Note that only the parameter element syntax (colons)
                        shown here is supported. K95 terminal type only.
                    </td>
                </tr>
                <tr>
                    <td>
                        38:5:Ps
                    </td>
                    <td>Set foreground to an Indexed color.
                        <a href="#sgr-38-ic">See SGR for details</a>.
                        Note that only the parameter element syntax (colons)
                        shown here is supported. K95 terminal type only.
                    </td>
                </tr>
                <tr>
                    <td>
                        40...47
                    </td>
                    <td>Set background color.
                        See <a href="#sgr-40">SGR-40..47</a> for colour
                        assignments. VT525 and K95 terminal types only.
                    </td>
                </tr>
                <tr>
                    <td>
                        48:2:Pi:Pr:Pg:Pb
                    </td>
                    <td>Set foreground to an RGB color.
                        <a href="#sgr-48-rgb">See SGR for details</a>.
                        Note that only the parameter element syntax (colons)
                        shown here is supported. K95 terminal type only.
                    </td>
                </tr>
                <tr>
                    <td>
                        48:5:Ps
                    </td>
                    <td>Set foreground to an Indexed color.
                        <a href="#sgr-48-ic">See SGR for details</a>.
                        Note that only the parameter element syntax (colons)
                        shown here is supported. K95 terminal type only.
                    </td>
                </tr>
                <tr>
                    <td>
                        90...97
                    </td>
                    <td>Set bright foreground color.
                        See <a href="#sgr-90">SGR-90..97</a> for colour
                        assignments. K95 terminal type only.
                    </td>
                </tr>
                <tr>
                    <td>
                        100...107
                    </td>
                    <td>Set bright background color.
                        See <a href="#sgr-100">SGR-100..107</a> for colour
                        assignments. K95 terminal type only.
                    </td>
                </tr>
            </table>
        </section>

        <section role="ctlseq" mnemonic="DECSCS" id="decscs"
                 title="Select Communication Speed"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> * r</ctlseq>
            <ref src="vt510:DECSCS.html"/>
            <ref src="vt52x:280"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="decsmkr" mnemonic="DECSMKR"
                 title="Set Modifier Key Reporting"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single symbol="Pm1"/> ; <param-single symbol="Pf1"/> ...
                <param-single symbol="Pmn"/> ; <param-single symbol="Pfn"/> + r</ctlseq>
            <ref src="vt420:220"/>
            <ref src="vt510:DECSMKR.html"/>
            <ref src="vt52x:293"/>
            <termsupp first="vt420" series="vt" additional="vt510"/>
        </section>

        <section role="ctlseq" id="decdrlbr" mnemonic="DECDRLBR"
                 title="Draw Ruled Line" badges="k95 decterm">
            <ctlseq>CSI <param-single symbol="Pl"/> ;
                <param-single symbol="Px"/> ; <param-single symbol="Plx"/> ;
                <param-single symbol="Py"/> ; <param-single symbol="Ply"/> , r
            </ctlseq>
            <ref src="dtl:BLOCK84"/>
            <termsupp series="vt" first="decterm"/>
            <p>
                Ruled lines are drawn 1px wide using normal terminal colours
                (<tt>SET TERMINAL COLOR TERM</tt>) on the inside edge of
                character cells. They are not treated like SGR attributes, and
                they are not erased by control sequences that erase in the
                display such as <a href="#ed">ED</a>, instead they must be
                erased using either <a href="#decerlbrp">DECERLBRP</a> or
                <a href="#decerlbra">DECERLBRA</a>. They are treated as an
                attribute on character cells themselves, so control sequences
                that move or remove character cells will affect ruled lines.
                Control sequences that delete charcter cells such as
                <a href="#dl">DL</a> will also delete any ruled lines in the
                affected area, while those that move character cells like
                <a href="#il">IL</a> or scrolling will move ruled lines.
            </p>
            <p>
                DECDRLBR acts in a similar way to other Rectangular Area
                Operations, though the way the rectangle is specified differs a
                little. <param-single symbol="Px"/> and <param-single symbol="Py"/>
                give the absolute coordinates for the cell that will be the top
                left corner of the rectangle (column and row), while
                <param-single symbol="Plx"/> and
                <param-single symbol="Ply"/> are the width (in columns) and
                height (in rows) of the rectangle, rather than absolute
                coordinates as in other rectangualr area operations. The default
                width and height is 1.
            </p>
            <p>
                If values for <param-single symbol="Px"/> or
                <param-single symbol="Py"/> not given, or set to zero, the
                current position of the cursor is used. This matches the
                behaviour observed in DECterm under Tru64 UNIX v5.1B as well as
                WRQ Reflection 8.0.2, but conflicts with the <em>documented</em>
                behaviour so should not be relied upon as it may change in
                future releases of Kermit 95 should other versions of DECterm
                act differently.
            </p>
            <p>
                Double Height/Double Width lines are treated as single
                height/single width when drawing ruled lines. Ruled lines are
                currently drawn on top of double high/wide lines which is the
                behaviour of DECterm if anything forces it to repaint the
                window, as well as WRQ Reflection 8.0.2.
            </p>
            <p>
                The <param-single symbol="Pl"/> parameter specifies which
                borders of the rectangle should have lines drawn. The value is
                a bit mask:
            </p>
            <table>
                <tr>
                    <th>Bit</th>
                    <th>Value</th>
                    <th>Meaning</th>
                </tr>
                <tr>
                    <td>0</td>
                    <td>1</td>
                    <td>Bottom boundary</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>2</td>
                    <td>Right boundary</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>4</td>
                    <td>Top boundary</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>8</td>
                    <td>Left boundary</td>
                </tr>
            </table>
            <p>
                So to draw the line on only the top of the rectangle, you would
                supply the value 4 for <param-single symbol="Pl"/>. To lines on
                all boundaries to make a box, you would use
                <param-single symbol="Pl"/>=15 (1+2+4+8).
            </p>
            <p>
                When ruled lines cross left/right margins, the line segements
                within the margins will <em>not</em> scroll with the text in
                the margins. Ruled lines only scroll when the entire line
                scrolls. This is consistent with the only other terminal
                emulators that implement this feature - DECterm (which does not
                support left/right marigns) and WRQ Reflection (which behaves
                the same way as K95 when left/right margins are involved). It is
                also consistent with other features from the Horizontal Scrolling
                extension (of which DECLRMM is a part) such as DECFI, DECBI, ICH
                and DCH not affecting ruled lines.
            </p>
            <p>
                Ruled Lines are only supported on Windows under K95G. The console
                verson for Windows (K95.EXE) and OS/2 version (K2.EXE) do not
                currently support this feature.
            </p>

            <section role="text" title="Bugs in DECTerm">
                <p>
                    While there is no publicly available specification
                    describing how this feature <em>should</em> work in any
                    detail, DECterm appears to have a number of bugs or possible
                    bugs in its implementation of this feature:
                </p>
                <ul>
                    <li>When the cursor is moved to a terminal line containing
                        Ruled Lines, if any text is output DECterm shifts all
                        Ruled Line segments on that line to the left by one
                        character cell. Kermit 95 does not reproduce this
                        behaviour.
                    </li>
                    <li>When ruled lines are drawn over double-height or
                        double-width lines they are not visible until something
                        forces DECterm to repaint the window such as switching
                        pages, opening a menu, or minimizing and maximizing the
                        window. The documentation does not describe the correct
                        behaviour here, so Kermit 95 chooses to behave as
                        DECterm does when it repaints its window.
                    </li>
                    <li> <!-- TODO: Does Reflection do the same? -->
                        The DECterm documentation does not say if
                        <a href="#decsed">DECSED</a>. DECterm seems to make an
                        attempt to preserve them, though usually some end up
                        being cleared. Kermit 95 treates DECSED the same way as
                        ED - ruled lines are unaffected.
                    </li>
                </ul>
            </section>



            <!--
            This draws a box on screen. Lines appear to be on the borders of the
            character cells. The box scrolls up as with any line with attributes
            set on it. A Ctrl+L in bash doesn't clear any lines on the screen.
            DECterm by default (in Tru64 5.1B-6 at least) seem to advertise
            this feature as being available via DA, but it does work.

            Interestingly, doing a new line over the top of a box moves the box
            segments on that line one character cell to the left.

            For example, starting with something like this:
                bash-4.3$ printf '\x1b[15;5;5;10;10,r

                     +-----+
                     |     |
                     |     |
                     |     |
                     |     |
                     |     |
                     +-----+

            Hit enter a few times:
                bash-4.3$ printf '\x1b[15;5;5;10;10,r
                bash-4.3$
                    +-----+
                bash|-4.3$|
                bash|-4.3$|
                     |     |
                     |     |
                     |     |
                     +-----+

            You can hit Ctrl+L to clear the screen, and the box won't move but
            the text will disappear. If you hit enter a bunch more times, the
            box will move again to the left when the cursor reaches those lines.

            Manually placing the cursor on a line with ruled lines set using HVP
            causes the same effect when the line is first modified. Subsquent
            modifications while the cursor remains on the line do not cause it
            to move again, but moving the cursor away and back and making another
            modification causes another move. Moving the cursor to a line
            containing ruled lines and then moving it elsewhere doesn't affect it.

            eg:
                This moves ruled lines on row 15 left: printf '\x1b[15;1fHello!'
                This does not: printf '\x1b[15;1f\x1b[1;1fHello!'

            WRQ Reflection, the only other terminal emulator I've found that
            implements this feature, doesn't replicate this behaviour which
            would suggest its a bug.
            -->
        </section>

        <section role="ctlseq" id="decsest" mnemonic="DECSEST"
                 title="Energy Saver Timing"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> - r</ctlseq>
            <ref src="vt52x:284"/>
            <termsupp first="vt520" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="ttimers" mnemonic="TTIMERS"
                 title="Restore IME open state"
                 not-implemented="true" todo="true">
            <ctlseq>CSI &lt; r</ctlseq>
            <termsupp first="tt" series="tt" additional="tt"/>
        </section>

        <section role="ctlseq" id="decpcterm" mnemonic="DECPCTERM"
                 title="Enter/Exit PCTerm or Scancode Mode"
                 not-implemented="true" todo="true">
            <ctlseq>CSI ? <param-single/> ; <param-single/> r</ctlseq>
            <ref src="vt420:333"/>
            <ref src="vt510:DECPCTERM.html"/>
            <ref src="vt52x:235"/>
            <termsupp first="vt420" series="vt" additional="vt510"/>
        </section>

        <!-- ######################### s ######################### -->
        <section role="ctlseq" id="decns" not-implemented="true" todo="true"
                 mnemonic="DECNS" title="New Sheet">
            <ctlseq>CSI SP s</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: http://ftp.xenya.si/sup/info/digital/MDS/jun99/Cd3/PRINTER/DCL11OP2.PDF
                       -->
        </section>
        <section role="ctlseq" id="decfil" not-implemented="true" todo="true"
                 mnemonic="DECFIL" title="Right Justification">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> ; <param-single/> ! s</ctlseq>
            <termsupp first="lqp02" series="print" additional=""/>
            <ref src="tphb87:769"/>
        </section>
        <section role="ctlseq" id="decpwa" not-implemented="true" todo="true"
                 mnemonic="DECHPWA" title="Page Width Alignment">
            <ctlseq>CSI <param-single/> ; <param-single/> &quot; s</ctlseq>
            <termsupp first="la100" series="print" additional=""/>
            <ref src="tphb87:709"/>
            <ref src="dap:124"/>
        </section>
        <section role="ctlseq" not-implemented="true" groups="ishft" title="Save Modes">
            <ctlseq>CSI ? <param-multi/> s</ctlseq>
            <!-- TODO: This is also XTSAVE - Save DEC Private Mode Values
            dtterm supports: 1, 3, 4, 5, 6, 7, 8, 25, 40, 41, 44, 45, 46
            -->
        </section>
        <section role="ctlseq" id="sni-kc" badges="s97801" title="SNI97801 Set Clicker/Repeat">
            <ctlseq>CSI <param-single/> s</ctlseq>
            <section role="parameter" not-implemented="true" title="Repeat off"><ctlseq><param-single/> = 0 </ctlseq></section>
            <section role="parameter" not-implemented="true" title="Repeat on"><ctlseq><param-single/> = 1</ctlseq></section>
            <section role="parameter" id="sni-click-off" title="Clicker off"><ctlseq><param-single/> = 2</ctlseq></section>
            <section role="parameter" id="sni-click-on" title="Clicker on"><ctlseq><param-single/> = 3</ctlseq></section>
        </section>
        <section role="ctlseq" ctlseq="CSI s" badges="aaa" mnemonic="zPSH"
                 not-implemented="true" title="Push Line"/>
        <section role="ctlseq" ctlseq="CSI s" id="scosc" mnemonic="SCOSC"
                 title="Save Cursor Position" badges="linux xterm k95" groups="isansi">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-s.1BC3"/>
            <ref src="vt52x:371"/>
            <ref src="wy370:35"/>
            <termsupp first="sco" series="sco" additional="xterm tt linux putty"/>
                <!-- Supposedly for SNI-97801 too, but for that the `CSI Ps s`
                     code path will be taken first resulting in this being
                     skipped -->
            <!-- TODO: xterm: available only when DECLRMM is disabled

            This sequence supposedly comes from ANSI.SYS (DOS 2.0) rather than
            SCO.
            -->
            <p>
                Saves the cursor X,Y position only. Does not save attributes or
                the current page.
            </p>
            <p badges="k95 xterm">
                This control sequence is not available when
                <a href="#decvssm">DECLRMM/DECVSSM is enabled</a>.
            </p>
        </section>
        <section role="ctlseq" id="sunreset" ctlseq="CSI s"
                 mnemonic="SUNRESET" title="Reset terminal emulator" badges="sun">
            <p>Reset Terminal</p>
        </section>

        <section role="ctlseq" id="decslrm" mnemonic="DECSLRM"
                 title="Set Left and Right margins"
                 groups="isvt420" badges="k95 xterm">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pl;Pr-s.1DA9"/>
            <ref src="vt420:155"/>
            <ref src="vt510:DECSLRM.html"/>
            <ref src="vt52x:291"/>
            <ref src="070:282"/>
            <termsupp first="vt420" series="vt" additional="vt510 tt wt"/>
            <implchk std070="true" xt="407"/>
            <ctlseq>CSI <param-single symbol="Pl"/> ; <param-single symbol="Pr"/> s </ctlseq>
            <p>
                Sets the left and right margins for the current page and homes
                the cursor obeying <a href="#decom">DECOM</a> if and only
                if <a href="#decvssm">DECVSSM/DECLRMM</a> is set, the
                specified value for the left margin is less than the value
                specified for the right margin, and the right margin is less
                than or equal to the width of the page.
            </p>
            <p>
                The current Left/Right margin setting can be queried with
                <a href="#decrqss">DECRQSS</a>.
            </p>
            <p groups="isvt420" badges="k95">
                <!-- TODO: XTERM does not do this - STD070 doesn't specify it,
                          but it is how the VT420 and VT520 behave -->
                This control sequence is ignored when the cursor is on the
                host-writable status line (see: <a href="#decssdt">DECSSDT</a>,
                <a href="#decsasd">DECSASD</a>).
            </p>
        </section>
        <section role="ctlseq" mnemonic="DECSPRTT" id="decsprtt"
                 title="Select Printer Type"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> $ s</ctlseq>
            <ref src="vt510:DECSPRTT.html"/>
            <ref src="vt52x:298"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" mnemonic="DECTLTC" id="dectltc" todo="true"
                 title="Transmit Line Termination Characters"
                 not-implemented="true">
            <ctlseq>CSI ? <param-single symbol="Pn1"/> ;
                <param-single symbol="Pn2"/> ; <param-single symbol="Pn3"/> ;
                <param-single symbol="Pn4"/> ; <param-single symbol="Pn5"/> ;
                <param-single symbol="Pn6"/> ' s</ctlseq>
            <ref src="vt340:160"/>
            <termsupp first="vt340" series="vt" additional="vt340"/>
        </section>
        <section role="ctlseq" mnemonic="DECSTPF" id="decstpf" todo="true"
                 title="Select Transparent Paste Format" not-implemented="true">
            <ctlseq>CSI <param-single/> ) s</ctlseq>
            <ref src="vws:110"/>
        </section>
        <section role="ctlseq" mnemonic="DECSFC" id="decsfc"
                 title="Select Flow Control"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> ; <param-single/>  * s</ctlseq>
            <ref src="vt510:DECSFC.html"/>
            <ref src="vt52x:287"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <section role="ctlseq" id="decerlbrp" mnemonic="DECERLBRP"
                 title="Erase Ruled Lines" badges="k95 decterm">
            <ctlseq>CSI <param-single symbol="Pl"/> ;
                <param-single symbol="Px"/> ; <param-single symbol="Plx"/> ;
                <param-single symbol="Py"/> ; <param-single symbol="Ply"/> , s
            </ctlseq>
            <ref src="dtl:BLOCK85"/>
            <termsupp series="vt" first="decterm"/>
            <p>
                Erases ruled lines on edge of the specified rectangular area,
                acting as the reverse of <a href="#decdrlbr">DECDRLBR</a>. Any
                ruled lines inside the rectangular area are untouched. To erase
                all Ruled Lines within an area rather than just on the edges,
                see <a href="#decerlbra">DECERLBRA</a>.
            </p>
            <p>
                The format of the parameters is the same as for
                <a href="#decdrlbr">DECDRLBR</a>, only instead of placing ruled
                lines DECERLBRP removes them.
                <param-single symbol="Pl"/> specifies which edges to erase ruled
                lines from, while <param-single symbol="Px"/>,
                <param-single symbol="Plx"/>, <param-single symbol="Py"/>, and
                <param-single symbol="Ply"/> describe the rectangle.
            </p>

            <p>
                Ruled Lines are only supported on Windows under K95G. The console
                verson for Windows (K95.EXE) and OS/2 version (K2.EXE) do not
                currently support this feature.
            </p>
        </section>

        <section role="ctlseq" id="ttimesv" mnemonic="TTIMESV"
                 title="Save IME open state"
                 not-implemented="true" todo="true">
            <ctlseq>CSI &lt; s</ctlseq>
            <termsupp first="tt" series="tt" additional="tt"/>
        </section>

        <section role="ctlseq" id="xtshiftescape" mnemonic="XTSHIFTESCAPE"
                 title="Set/reset shift-escape options"
                 not-implemented="true" todo="true">
            <ctlseq>CSI &gt; <param-single/> s</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Ps-s.1DBB"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="xtsave" mnemonic="XTSAVE"
                 title="Save DEC Private Mode Values"
                 not-implemented="true" todo="true">
            <ctlseq>CSI ? <param-multi/> s</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-?-Pm-s.1D19"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>

        <!-- ######################### t ######################### -->
        <section role="ctlseq" not-implemented="true" badges="aaa"
                 ctlseq="CSI t" mnemonic="zPOP" title="Pop Line"/>
        <section role="ctlseq" badges="s97801" id="sni-cr" title="Card Reader operations">
            <ctlseq>CSI <param-single/> t</ctlseq>
            <section role="parameter" not-implemented="true" title="Disable ID card reader">
                <ctlseq><param-single/> = 0</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" title="Enable ID card reader">
                <ctlseq><param-single/> = 1</ctlseq>
                <p>

                </p>
            </section>
            <section role="parameter" id="sni-idc" title="Query ID card reader status">
                <ctlseq><param-single/> = 3</ctlseq>
                <p>
                    K95 provides the &quot;ID Card Reader broken or missing&quot; response.
                    If 8-bit controls are enabled, that is:
                    <tt><cc>DCS</cc> P t A <cc>ST</cc></tt>
                    Otherwise its;
                    <tt><cc>ESC</cc> P P t A <cc>ESC</cc></tt>
                </p>
            </section>
        </section>
        <section role="ctlseq" id="wyswdw" mnemonic="WYSWDW"
                 title="Activate other window" not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> t</ctlseq>
            <ref src="wy370:110"/>
            <p>
                Page 110 of the WY-370 manual gives this sequence as <tt>CSI Ps w</tt>,
                while page 192 gives it as <tt>CSI Ps t</tt>. The first one is probably
                an error as it conflicts with other WY-370 control sequences.
            </p>
        </section>
        <section role="ctlseq" mnemonic="DECSLPP" id="decslpp" title="Set Lines Per Page">
            <ctlseq>CSI <param-single/> t</ctlseq>
            <ref src="070:330"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t.1EB0"/>
            <ref src="vt340:121"/>
            <ref src="vt420:154"/>
            <ref src="vt510:DECSLPP.html"/>
            <ref src="vt52x:290"/>
            <ref src="vws:108"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 tt putty"/>
            <p>
                Sets the screen height to <param-single/> rows. Valid options
                are: 24, 25, 36, 41, 42, 48, 52, 53 and 72. Values for
                <param-single/> below 24 may be interpreted as
                <a href="#xtwinops">XTWINOPS</a>
            </p>
            <p>
                You can query the current state of DECSLPP with
                <a href="#decrqss">DECRQSS</a>.
            </p>
            <p badges="s97801">
                DECSLPP does not apply to SNI-97801 emulation which uses the
                <tt><cc>CSI</cc> <param-single/> t</tt> control sequence for
                querying an ID card reader (see above).
            </p>
        </section>
        <section role="ctlseq" id="xtwinops"
                 mnemonic="XTWINOPS" title="Window manipulation">
            <termsupp first="dtterm" series="xt" additional="xterm tt wt"/>
            <ctlseq>
                CSI <param-single/> ; <param-single/> ; <param-single/> t
            </ctlseq>
            <p>
                Many of these come from sone Sun terminal emulator, via dtterm.
                Xterm later implemented and extended these.
            </p>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t.1EB0"/>
            <section role="parameter" id="xtwinopts-rest" title="Deiconify (Restore) window (xterm)">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1.2003"/>
                <termsupp first="dtterm" series="xt" additional="tt wt"/>
                <p>
                    K95G only: Deiconify/restore/un-minimize window. Ignored by the console
                    version of K95.
                </p>
            </section>
            <section role="parameter" id="xtwinopts-min" title="Iconify (minimize) window (xterm)">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-2.2004"/>
                <termsupp first="dtterm" series="xt" additional="tt wt"/>
                <p>
                    K95G only: minimizes the window. Ignored by the console version of K95.
                </p>
            </section>
            <section role="parameter" id="xtwinopts-movw" title="Move window">
                <ctlseq><param-single/> = 3 ; x ; y</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-3;x;y.216C"/>
                <termsupp first="dtterm" series="xt" additional="tt"/>
                <p>
                    K95G: Move window to (x,y). X and Y will default to 0 if not supplied.
                    Ignored by the console version of K95.
                </p>
            </section>
            <section role="parameter"  id="xtwinopts-swp"
                     title="Size window in pixels">
                <ctlseq><param-single/> = 4 ; height ; width</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-4;height;width.2515"/>
                <termsupp first="dtterm" series="xt" additional="tt"/>
                <p>
                    K95G only: Size the window in pixels. If width or height is 0 then do not
                    change that dimension.
                </p>
            </section>
            <section role="parameter" not-implemented="true" title="Raise Window">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-5.2007"/>
                <termsupp first="dtterm" series="xt" additional="tt"/>
            </section>
            <section role="parameter" not-implemented="true" title="Lower Window">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-6.2008"/>
                <termsupp first="dtterm" series="xt" additional="tt"/>
            </section>
            <section role="parameter" title="Refresh the xterm window" id="xtwinops-refresh">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-7.2009"/>
                <termsupp first="dtterm" series="xt" additional="tt wt"/>
                <p>
                    Refreshes the terminal window from the terminal buffer
                    immediately. Not affected by
                    <a href="#bsu">Synchronized Output Mode</a>. Only available
                    on Windows in the GUI version of Kermit 95 (K95G).
                </p>
            </section>
            <section role="parameter" id="xtwinopts-rwc"
                     title="Resize window in characters">
                <ctlseq><param-single/> = 8 ; height ; width</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-8;height;width.2519"/>
                <termsupp first="dtterm" series="xt" additional="tt wt"/>
                <p>
                    Resizes the window to the specified number of rows and columns.
                </p>
            </section>
            <section role="parameter" not-implemented="true" title="Maximise Window">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-9;0.2076"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <!-- TODO: should be separate refs for 0, 1, 2, 3 -->
                <p>
                    Maximise window in method specified by the second
                    parameter (maximize, maximize vertically, maximize horizontally,
                    or restore if the parameter is 0).
                </p>
                <!-- TODO: We should be able to implement this just fine -->
            </section>
            <section role="parameter" not-implemented="true" title="Full Screen Mode">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1-0;0.20CB"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <!-- TODO: should be separate refs for 0, 1, 2 -->
                <p>
                    Undo full-screen mode, Change to full-screen mode,
                    toggle full-screen mode. The second parameter (0–2) indicates which
                    one.
                </p>
                <!-- TODO: We don't have a full-screen option, but we could certainly implement
                    one. -->
            </section>
            <section role="parameter" id="xtwinops-11" title="Report state of window (normal/iconified)">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1-1.2061"/>
                <termsupp first="dtterm" series="xt" additional="tt"/>
                <p>
                    Kermit 95 responds with the current state of the window:
                    <tt><cc>CSI</cc> 1 t</tt> (normal), or <tt><cc>CSI</cc> 2 t</tt> (minimized).
                </p>
                <p>
                    This is supported on Windows only in the GUI version of
                    Kermit 95 (k95g.exe). Ignored in the console version for
                    Windows or OS/2.
                </p>
            </section>
            <section role="parameter" not-implemented="true" todo="true" title="Report position of window in pixels">
                <ctlseq><param-single/> = 13</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1-3.2063"/>
                <termsupp first="dtterm" series="xt" additional="tt"/>
                <!-- TODO: Should be a separate ref for 13 ; 2 - dtterm doesn't take a second parameter.-->
                <p>
                    If the second parameter is 2, report the text area
                    position in pixels, otherwise report the window position.
                </p>
            </section>
            <section role="parameter" not-implemented="true"  todo="true" title="Report size of window in pixels">
                <ctlseq><param-single/> = 14</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1-4.2064"/>
                <termsupp first="dtterm" series="xt" additional="tt wt"/>
                <!-- TODO: should be a separate ref for 14 ; 2 - dtterm doesn't take a second parameter -->
                <p>
                    If the second parameter is 2, report window size in
                    pixels, otherwise report text area size in pixels.
                </p>
            </section>
            <section role="parameter" id="xtwinops-15" title="Report size of the screen in pixels">
                <ctlseq><param-single/> = 15</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1-5.2065"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <p>
                    Kermit 95 responds with the screen size in characters:
                    <tt><cc>CSI</cc> 9 ; height ; width t</tt>
                </p>
                <p>
                    This is supported on Windows only in the GUI version of
                    Kermit 95 (k95g.exe). Ignored in the console version for
                    Windows or OS/2.
                </p>
            </section>
            <section role="parameter" not-implemented="true"
                     title="Report xterm character cell size in pixels">
                <ctlseq><param-single/> = 16</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1-6.2066"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
            </section>
            <section role="parameter" id="xtwinopts-rtasc"
                     title="Report the size of the text area in chars">
                <ctlseq><param-single/> = 18</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1-8.2068"/>
                <termsupp first="dtterm" series="xt" additional="tt wt"/>
                <p>
                    Responds with: <tt><cc>CSI</cc> 8 ; height ; width t</tt>
                </p>
            </section>
            <section role="parameter" id="xtwinops-19" title="Report the size of the screen in characters">
                <ctlseq><param-single/> = 19</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-1-9.2069"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <p>
                    Kermit 95 responds with the size its window would be if it
                    were maximized, in pixels: <tt><cc>CSI</cc> 9 ; height ; width t</tt>
                </p>
                <p>
                    This is supported on Windows only in the GUI version of
                    Kermit 95 (k95g.exe). Ignored in the console version for
                    Windows or OS/2.
                </p>
            </section>
            <section role="parameter" not-implemented="true" title="Report icon label">
                <ctlseq><param-single/> = 20</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-2-0.2061"/>
                <termsupp first="dtterm" series="xt" additional="tt"/>
            </section>
            <section role="parameter" not-implemented="true" title="Report window label">
                <ctlseq><param-single/> = 21</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-2-1.2062"/>
                <termsupp first="dtterm" series="xt" additional="tt"/>
            </section>
            <section role="parameter" not-implemented="true" title="Save icon and window title on stack">
                <ctlseq><param-single/> = 22</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-2-2;0.20CE"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <!-- TODO: should be separate refs for 22 ; 0, 22 ; 1, 22 ; 2 -->
                <p>
                    The second parameter (0–2) indicates which to save:
                    icon and title, icon, title. The optional third parameter (1–10)
                    indicates which position in the stack to store to rather than pushing
                    on to the stack.
                </p>
            </section>
            <section role="parameter" not-implemented="true" title="Restore title and/or icon from stack">
                <ctlseq><param-single/> = 23</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Ps;Ps-t:Ps-=-2-3;0.20CF"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <!-- TODO: should be separate refs for 23 ; 0, 23 ; 1, 23 ; 2 -->
                <p>
                    The second parameter (0–2) indicates which to restore:
                    icon and title, icon, title. The optional third parameter (1–10)
                    indicates which position in the stack to restore from rather than
                    popping from the top of the stack.
                </p>
            </section>
        </section>
        <section role="ctlseq" not-implemented="true" id="xtsmtitle"
                 mnemonic="XTSMTITLE" title="set xterm title mode features">
            <ctlseq>CSI &gt; <param-single/> t</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Pm-t.1DB6"/>
            <p>
                XTSMTITLE - set one or more features of the xterm
                title mode. Parameter is one of:
            </p>
            <section role="parameter" id="xtsmtitle-swhex"
                     title="Set window/icon labels using hexadecimal"
                     not-implemented="true">
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Pm-t:Ps-=-0.1F08"/>
                <ctlseq><param-single/> = 0</ctlseq></section>
            <section role="parameter" id="xtsmtitle-qwhex"
                     title="Query window/icon labels using hexadecimal"
                     not-implemented="true">
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Pm-t:Ps-=-1.1F09"/>
                <ctlseq><param-single/> = 1</ctlseq>
            </section>
            <section role="parameter" id="xtsmtitle-swutf8"
                     title="Set window/icon labels using UTF-8"
                     not-implemented="true">
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Pm-t:Ps-=-2.1F0A"/>
                <ctlseq><param-single/> = 2</ctlseq></section>
            <section role="parameter" id="xtsmtitle-qwutf8"
                     title="Query window/icon labels using UTF-8"
                     not-implemented="true">
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-gt-Pm-t:Ps-=-3.1F0B"/>
                <ctlseq><param-single/> = 3</ctlseq></section>
        </section>
        <section role="ctlseq" id="decswbv" mnemonic="DECSWBV"
                 title="Set Warning Bell Volume" badges="k95 xterm vt520">
            <ctlseq>CSI <param-single/> SP t</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-t.1D84"/>
            <ref src="vt510:DECSWBV.html"/>
            <ref src="vt52x:308"/>
            <termsupp first="vt510" series="vt" additional=""/>
            <p>Sets the BELL volume. Only available on Windows where DirectSound
                or a sutiable MIDI device is available. The current setting can
                be queried via <a href="#decrqss-decswbv">DECRQSS</a>.
            </p>
            <section role="parameter" id="decswbv-0" title="Off">
                <ctlseq><param-single/> = 1</ctlseq>
                <p>Turns the BELL off, equivalent to <tt>SET BELL NONE</tt>.</p>
            </section>
            <section style="group" role="group">
                <section role="parameter" id="decswbv-2">
                    <ctlseq><param-single/> = 2</ctlseq>
                </section>
                <section role="parameter" id="decswbv-3">
                    <ctlseq><param-single/> = 3</ctlseq>
                </section>
                <section role="parameter" id="decswbv-4" title="Low">
                    <ctlseq><param-single/> = 4</ctlseq>
                    <p>Sets the BELL volume to low, equivalent to
                        <tt>SET BELL AUDIBLE SOUND-DEVICE LOW</tt>.
                    </p>
                </section>
            </section>
            <section style="group" role="group">
                <section role="parameter" id="decswbv-5">
                    <ctlseq><param-single/> = 5</ctlseq>
                </section>
                <section role="parameter" id="decswbv-6">
                    <ctlseq><param-single/> = 6</ctlseq>
                </section>
                <section role="parameter" id="decswbv-7">
                    <ctlseq><param-single/> = 7</ctlseq>
                </section>
                <section role="parameter" id="decswbv-8">
                    <ctlseq><param-single/> = 8</ctlseq>
                </section>
                <section role="parameter" id="decswbv-0" title="High">
                    <ctlseq><param-single/> = 0</ctlseq>
                    <p>Sets the BELL volume to low, equivalent to
                        <tt>SET BELL AUDIBLE SOUND-DEVICE HIGH</tt>.
                    </p>
                </section>
            </section>
        </section>
        <section role="ctlseq" id="decsrfr" mnemonic="DECSRFR"
                 title="Select Refresh Rate"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> &quot; t</ctlseq>
            <ref src="vt510:DECSRFR.html"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" groups="isvt420" id="decrara"
                 mnemonic="DECRARA" title="Reverse attributes in rectangular area">
            <ctlseq>
                CSI
                <param-single symbol="Pt"/> ;
                <param-single symbol="Pl"/> ;
                <param-single symbol="Pb"/> ;
                <param-single symbol="Pr"/> ;
                <param-single symbol="Pm"/> ;
                $ t
            </ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pt;Pl;Pb;Pr;Pm-$-t.20DF"/>
            <ref src="070:430"/>
            <ref src="vt420:191"/>
            <ref src="vt510:DECRARA.html"/>
            <ref src="vt52x:244"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>
                <tt><param-single symbol="Pt"/> ;
                    <param-single symbol="Pl"/> ;
                    <param-single symbol="Pb"/> ;
                    <param-single symbol="Pr"/></tt> is
                the rectangle. If <a href="#decsace">DECSACE</a> is off (1 or 0) then the DECRARA affects the
                stream of characters between the first and second character positions
                specified. Coordinates are affected by <a href="#decom">DECOM</a>.
                The <param-single symbol="Pm"/> is the SGR attributes
                to change, one of:
            </p>
            <table>
                <tr>
                    <th><param-single symbol="Pm"/></th>
                    <th>Attribute</th>
                </tr>
                <tr>
                    <td>0</td>
                    <td>All attributes off (normal)</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Bold</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Underline</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Blink</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Negative image</td>
                </tr>
            </table>
        </section>
        <section role="ctlseq" id="decttpb" mnemonic="DECTTPB" todo="true"
                 title="Transmit Transparent Paste Buffer" not-implemented="true">
            <ctlseq>CSI <param-single/> ) t</ctlseq>
            <ref src="vws:110"/>
        </section>
        <section role="ctlseq" id="decerlbra" mnemonic="DECERLBRA"
                 title="Erase All Ruled Lines in Area" badges="k95 decterm">
            <ctlseq>CSI <param-single symbol="Pl"/> ;
                <param-single symbol="Px"/> ; <param-single symbol="Plx"/> ;
                <param-single symbol="Py"/> ; <param-single symbol="Ply"/> , t
            </ctlseq>
            <ref src="dtl:BLOCK86"/>
            <termsupp series="vt" first="decterm"/>

            <p>
                Erases <em>all</em> ruled lines within the specified rectangular
                area, not just those on the border of the rectangle.
            </p>

            <p>
                When <param-single symbol="Pl"/> is 0, 1, or not specified all
                ruled lines on the entire screen are erased and the remaining
                parameters are ignored. When the value of
                <param-single symbol="Pl"/> is 2, only Ruled Lines within the
                rectangular area are erased.
            </p>

            <p>
                The parameters <param-single symbol="Px"/> and
                <param-single symbol="Py"/>
                give the absolute coordinates for the cell that will be the top
                left corner of the rectangle (column and row), while
                <param-single symbol="Plx"/> and
                <param-single symbol="Ply"/> are the width (in columns) and
                height (in rows) of the rectangle, rather than absolute
                coordinates as in other rectangualr area operations.
            </p>
            <p>
                Unlike DECterm, Kermit 95 does not require all five parameters
                to always be specified if they are not required as this is
                expected to be a bug in DECterm.
            </p>

            <p>
                Ruled Lines are only supported on Windows under K95G. The console
                verson for Windows (K95.EXE) and OS/2 version (K2.EXE) do not
                currently support this feature.
            </p>
        </section>

        <section role="ctlseq" id="ttimest" mnemonic="TTIMEST"
                 title="Change IME open state"
                 not-implemented="true" todo="true">
            <ctlseq>CSI &lt; <param-single/> t</ctlseq>
            <termsupp first="tt" series="tt" additional="tt"/>
        </section>

        <!-- ######################### u ######################### -->
        <section role="ctlseq" not-implemented="true" badges="aaa" id="zstp"
                 ctlseq="CSI u" mnemonic="zSTP" title="Set Transfer Point"/>
        <section role="ctlseq" ctlseq="CSI u" groups="isansi ishft" id="scorc"
                 mnemonic="SCORC"
                 badges="scoansi linux xterm" title="Restore cursor position">
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-u.1BC5"/>
            <ref src="vt52x:371"/>
            <ref src="wy370:35"/>
            <termsupp first="sco" series="sco" additional="tt xterm linux putty wt"/>
            <p>
                Restores the cursor X,Y position only. Does not restore
                attributes or the current page.
            </p>
        </section>
        <section role="ctlseq" id="decshts" not-implemented="true" todo="true"
                 mnemonic="DECSHTS" title="Set Horizontal Tab Stops">
            <ctlseq>CSI <param-multi/> u</ctlseq>
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:135"/>
        </section>
        <section role="ctlseq" id="kkp-set" not-implemented="true" todo="true"
                title="Kitty Keyboard Set">
            <ctlseq>CSI = <param-single/> ; <param-single/> u</ctlseq>
            <termsupp first="wt" series="wt" additional=""/>
        </section>
        <section role="ctlseq" id="kkp-query" not-implemented="true" todo="true"
                title="Kitty Keyboard Query">
            <ctlseq>CSI ? <param-single/> u</ctlseq>
            <termsupp first="wt" series="wt" additional=""/>
        </section>
        <section role="ctlseq" id="kkp-push" not-implemented="true" todo="true"
                 title="Kitty Keyboard Push">
            <ctlseq>CSI &gt; <param-single/> u</ctlseq>
            <termsupp first="wt" series="wt" additional=""/>
        </section>
        <section role="ctlseq" id="kkp-pop" not-implemented="true" todo="true"
                 title="Kitty Keyboard Pop">
            <ctlseq>CSI &lt; <param-single/> u</ctlseq>
            <termsupp first="wt" series="wt" additional=""/>
        </section>
        <section role="ctlseq" id="decfnvr" not-implemented="true" todo="true"
                 mnemonic="DECFNVR" title="Loading Factory NVR settings">
            <ctlseq>CSI <param-multi/> ! u</ctlseq>
            <termsupp first="la75" series="print" additional=""/>
            <ref src="tphb87:805"/>
        </section>
        <section role="ctlseq" badges="s97801" id="sni-mode" title="SNI97801 Various mode options">
            <ctlseq>CSI <param-single/> u</ctlseq>
            <section role="parameter" id="sni-25l-on" title="25-line mode on">
                <ctlseq><param-single/> = 0</ctlseq>
                <p>Turns off the status line</p>
            </section>
            <section role="parameter" id="sni-25l-off" title="25-line mode off">
                <ctlseq><param-single/> = 1</ctlseq>
                <p>Turns on the status line</p>
            </section>
            <section role="parameter" not-implemented="true" id="sni-ccnul" title="Clear character NUL">
                <ctlseq><param-single/> = 2</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" id="sni-ccsp" title="Clear character SP">
                <ctlseq><param-single/> = 3</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" id="sni-vtoff" title="Video timeout off">
                <ctlseq><param-single/> = 4</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" id="sni-vton" title="Video timeout on">
                <ctlseq><param-single/> = 5</ctlseq>
            </section>
            <section role="parameter" id="sni-pm" title="Page mode on">
                <ctlseq><param-single/> = 8</ctlseq>
                <p>Turns on page mode</p>
            </section>
            <section role="parameter" id="sni-arm" title="Auto Roll mode on">
                <ctlseq><param-single/> = 9</ctlseq>
                <p>Turns on auto-roll mode (page mode off)</p>
            </section>
            <section role="parameter" id="sni-rm" title="Roll Mode">
                <ctlseq><param-single/> = 10</ctlseq>
                <p>Turns off scroll mode - only affects RD/SD -
                    <tt><cc>CSI</cc> <param-single/> T</tt></p>
            </section>
            <section role="parameter" id="sni-sm" title="Scroll mode">
                <ctlseq><param-single/> = 11</ctlseq>
                <p>
                    Turns on scroll mode - only affects RD/SD -
                    <tt><cc>CSI</cc> <param-single/> T</tt>
                </p>
            </section>
            <section role="parameter" not-implemented="true" id="sni-ric" title="Reduced-intensity character display">
                <ctlseq><param-single/> = 18</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" id="sni-rib" title="Reduced-intensity background display">
                <ctlseq><param-single/> = 19</ctlseq>
            </section>
            <section role="parameter" id="sni-db" title="Dark background (white on black)">
                <ctlseq><param-single/> = 20</ctlseq>
                <p>Switches to normal screen</p>
            </section>
            <section role="parameter" id="sni-lb" title="Light background (black on white)">
                <ctlseq><param-single/> = 21</ctlseq>
                <p>Switches to reverse video</p>
            </section>
        </section>
        <section role="ctlseq" id="decstrl" mnemonic="DECSTRL"
                 title="Set Transmit Rate Limit"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> " u</ctlseq>
            <ref src="vt510:DECSTRL.html"/>
            <ref src="vt52x:306"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="decrqtsr" mnemonic="DECRQTSR"
                 title="Request Terminal State Report"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> $ u</ctlseq>
            <ref src="070:461"/>
            <ref src="vt340:220"/>
            <ref src="vt420:267"/>
            <ref src="vt510:DECRQTSR.html"/>
            <ref src="vt52x:267"/>
            <ref src="wy370:139"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <!-- VT340:
                0 - ignored
                1 - DECTSR terminal state report
                2 - CECCTR - Color table report
            -->
        </section>
        <section role="ctlseq" id="decctr" mnemonic="DECCTR"
                 title="Color Table Request" badges="vt525 k95">
            <ctlseq>CSI 2 ; <param-single/> $ u</ctlseq>
            <ref src="070:364"/>
            <ref src="vt52x:268"/>
            <termsupp first="vt525" series="vt" additional="wt"/>
            <p>
                Requests the terminals current color palette.
                <param-single/> specifies the format: 1 for HLS
                (hue 0-360, lightness 0-100, saturation 0-100 with <em>blue at
                0 degrees</em>, not red), or 2 for RGB (red 0-100, green 0-100,
                blue 0-100).
            </p>
        </section>
        <section role="ctlseq" id="decrqupss" mnemonic="DECRQUPSS"
                 title="User-Preferred Supplemental Set"
                 not-implemented="true" todo="true">
            <ctlseq>CSI &amp; u</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI&amp;u.1D37"/>
            <ref src="070:380"/>
            <ref src="vt340:245"/>
            <ref src="vt420:295"/>
            <ref src="vt510:DECRQUPSS.html"/>
            <ref src="vt52x:269"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
        </section>
        <section role="ctlseq" id="decsmbv" mnemonic="DECSMBV"
                 title="Set Margin Bell Volume"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> SP u</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-u.1D85"/>
            <ref src="vt510:DECSMBV.html"/>
            <ref src="vt52x:292"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="decscp" mnemonic="DECSCP"
                 title="Select Communication Port"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> * u</ctlseq>
            <ref src="vt510:DECSCP.html"/>
            <ref src="vt52x:278"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="decrqkt" mnemonic="DECRQKT"
                 title="Request Key Type"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> , u</ctlseq>
            <ref src="vt510:DECRQKT.html"/>
            <ref src="vt52x:261"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <!-- ######################### v ######################### -->
        <section role="ctlseq" badges="aaa" not-implemented="true" id="zsrc"
                 ctlseq="CSI v" mnemonic="zSRC" title="Start Remote Copy">
        </section>
        <section role="ctlseq" id="decsvts" not-implemented="true" todo="true"
                 mnemonic="DECSVTS" title="Set Vertical Tab Stops">
            <ctlseq>CSI <param-multi/> v</ctlseq>
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:143"/>
        </section>
        <section role="ctlseq" id="wyssplt" not-implemented="true" todo="true"
                 mnemonic="WYSSPLT" title="Split screen between pages">
            <ctlseq>CSI <param-single/> v</ctlseq>
            <ref src="wy370:109"/>
        </section>
        <section role="ctlseq" id="decasfc" not-implemented="true" todo="true"
                 mnemonic="DECASFC" title="Automatic Sheet Feeder Control">
            <ctlseq>CSI <param-single/> ! v</ctlseq>
            <termsupp first="la75" series="print" additional=""/>
            <ref src="dap:104"/>
        </section>
        <section role="ctlseq" id="decmm" not-implemented="true" todo="true"
                 mnemonic="DECMM" title="Memory Management">
            <ctlseq>CSI <param-single/> + v</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>
        <section role="ctlseq" badges="s97801" id="sni-misc">
            <ctlseq>CSI <param-single/> v</ctlseq>
            <section role="parameter" id="sni-sg0" title=" Switch within G0 (national/international, 7-bit mode)">
                <ctlseq><param-single/> = 5</ctlseq>
                <p>
                    Switch to the other SNI CH.CODE mode if in SNI 7-bit mode.
                </p>
            </section>
            <section role="parameter" not-implemented="true" id="sni-fso" title="Full screen mode off">
                <ctlseq><param-single/> = 7</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" id="sni-fsa" title="Fill scroll area with characters (diagnostics)">
                <ctlseq><param-single/> = 8</ctlseq>
            </section>
            <section role="parameter" not-implemented="true" id="sni-cgen" title="Output entire character generator">
                <ctlseq><param-single/> = 9</ctlseq>
            </section>
            <section role="parameter" id="sni-dcck" title="Disable CH.CODE key (7-bit mode)">
                <ctlseq><param-single/> = 10</ctlseq>
                <p>
                    Disables SNI CH.CODE key
                </p>
            </section>
            <section role="parameter" id="sni-ecck" title="Enable CH.CODE key (7-bit mode)">
                <ctlseq><param-single/> = 11</ctlseq>
                <p>
                    Enables SNI CH.CODE key
                </p>
            </section>
            <section role="parameter" id="sni-qcct" title="Query current code table">
                <ctlseq><param-single/> = 13</ctlseq>
                <p>
                    Responds with <tt><cc>ESC</cc> P 1 3 v STATUS <cc>ESC</cc></tt> if using 7-bit controls,
                    or <tt><cc>DCS</cc> 1 3 v STATUS <cc>ST</cc></tt> if using 8-bit controls. STATUS is either 0
                    (SI: G0FEST active), 1 (SI: G0 active), 2 (SO: G0FEST active) or 3
                    (SO: G0 active).
                </p>
            </section>
            <section role="parameter" id="sni-sakat" title="Switch to alternative key assignment table (8-bit CH.CODE)">
                <ctlseq><param-single/> = 20</ctlseq>
                <p>Switches to the other CH.CODE mode</p>
            </section>
            <section role="parameter" id="sni-qkat" title="Query current key assignment table (CH.CODE status, 8-bit mode)">
                <ctlseq><param-single/> = 21</ctlseq>
                <p>
                    Responds with <tt><cc>ESC</cc> P 2 1 v STATUS <cc>ESC</cc></tt> if using 7-bit controls,
                    or <tt><cc>DCS</cc> 2 1 v STATUS <cc>ST</cc></tt> if using 8-bit controls. STATUS is either 0
                    (not in CH.CODE mode) or 1 (CH.CODE mode)
                </p>
            </section>
            <section role="parameter" id="sni-dch" title="Disable CH.CODE key (8-bit mode)">
                <ctlseq><param-single/> = 22</ctlseq>
                <p>Disables 8-bit mode CH.CODE key.</p>
            </section>
            <section role="parameter" id="sni-ech" title="Enable CH.CODE key (8-bit mode)">
                <ctlseq><param-single/> = 23</ctlseq>
                <p>Enables 8-bit mode CH.CODE key.</p>
            </section>
        </section>
        <section role="ctlseq" ctlseq="CSI &quot; v" groups="isvt220" id="decrqde"
                 mnemonic="DECRQDE" title="Request Displayed Extent">
            <ref src="070:343"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-dq-v.1CC8"/>
            <ref src="vt340:244"/>
            <ref src="vt420:293"/>
            <ref src="vt510:DECRQDE.html"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>
                The response is:
            </p>
            <pre>    CSI Ph; Pw; Pc; Pr; Pp " w</pre>
            <p>Where:</p>
            <dl>
                <dt>Ph</dt>
                <dd>Height of the terminal in lines (should be of the current page but K95 only supports one)</dd>
                <dt>Pw</dt>
                <dd>Width of the terminal in columns (should be of the current page but K95 only supports one)</dd>
                <dt>Pc</dt>
                <dd>1 - the column number at the top-left of the terminal</dd>
                <dt>Pr</dt>
                <dd>1 - the row number at the top-left of the terminal</dd>
                <dt>Pp</dt>
                <dd>1 - the current page number</dd>
            </dl>
            <p badges="k95">
                If the terminal is on the alternate screen, the reported page
                number will be one greater than the total number of available
                pages.
            </p>
        </section>
        <section role="ctlseq" id="decslck" mnemonic="DECSLCK"
                 title="Set Lock Key Style"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> SP v</ctlseq>
            <ref src="vt510:DECSLCK.html"/>
            <ref src="vt52x:289"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" groups="isvt420" id="deccra"
                 mnemonic="DECCRA" title="Copy rectangular area">
            <ctlseq>
                CSI
                <param-single symbol="Pts"/> ;
                <param-single symbol="Pls"/> ;
                <param-single symbol="Pbs"/> ;
                <param-single symbol="Prs"/> ;
                <param-single symbol="Pps"/> ;
                <param-single symbol="Ptd"/> ;
                <param-single symbol="Pld"/> ;
                <param-single symbol="Ppd"/>
                $ v
            </ctlseq>
            <ref src="070:424"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pt;Pl;Pb;Pr;Pp;Pt;Pl;Pp-$-v.23D5"/>
            <ref src="vt420:183"/>
            <ref src="vt510:DECCRA.html"/>
            <ref src="vt52x:189"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>
                Copies both characters and their attributes in a rectangle from
                one page to another. Line attributes are not copied - those of
                the affected lines on the destination page take effect. Source
                and Destination rectangles can overlap.
            </p>
            <p>
                <tt><param-single symbol="Pts"/> ;
                    <param-single symbol="Pls"/> ; <param-single symbol="Pbs"/> ;
                <param-single symbol="Prs"/></tt> is the source rectangle (top,
                left,bottom,right) and
                <param-single symbol="Pps"/> is the source page number,
                <tt><param-single symbol="Ptd"/> ;
                    <param-single symbol="Pld"/></tt> is the destination
                rectangle (top, left) and <param-single symbol="Ppd"/> is the
                destination page. Coordinates are affected by
                <a href="#decom">DECOM</a> (source and destination pages may
                have different margins set).
            </p>
            <p>
                If the source or destination page is less than 1, then the first
                page is used as. If the source or destination page is past the
                last page, then the last page is used. If the dimensions of the
                rectangle exceed those of the page, the rectangle is clipped to
                fit on the page.
            </p>
            <p>
                If the terminal is on the XTerm Alternate Screen, then the
                source and destination pages are ignored; DECCRA operates only
                on the alternate screen.
            </p>
        </section>

        <!-- ######################### w ######################### -->
        <section role="ctlseq" groups="ishft" not-implemented="true" id="vtrki"
                 ctlseq="CSI w" title="VT raw keyboard input"/>
        <section role="ctlseq" id="decsitf" not-implemented="true" todo="true"
                 mnemonic="DECSITF" title="Select Input Tray Failover">
            <ctlseq>CSI <param-multi/> SP w</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>
        <section role="ctlseq" id="decshorp" not-implemented="true" todo="true"
                 mnemonic="DECSHORP" title="Set Horizontal Pitch">
            <ctlseq>CSI <param-single/> w</ctlseq>
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:133"/>
        </section>
        <section role="ctlseq" id="decund" not-implemented="true" todo="true"
                 mnemonic="DECUND" title="Programmable Underline Character">
            <ctlseq>CSI <param-single/> ! w</ctlseq>
            <termsupp first="lqp02" series="print" additional=""/>
            <ref src="tphb87:769"/>
        </section>
        <section role="ctlseq" not-implemented="true" badges="s97801"
            title="Transmit keylock switch status / Reinitialize character generator">
            <ctlseq>CSI <param-single/> w</ctlseq>
            <p>
                Transmit keylock switch status
                (<param-single/> = 0), or Reinitialize character generator
                (<param-single/> = 1).
            </p>
        </section>
        <section role="ctlseq" not-implemented="true" badges="aaa" id="zspf"
                 mnemonic="zSPF" title="Set Print Format">
            <ctlseq>
                CSI <param-single/> ; <param-single/> ; <param-single/> w
            </ctlseq>
            <p>
                First parameter is printed
                lines per page (1–126), second parameter is total lines per page (1–126),
                third parameter is left margin (0–254).
            </p>
        </section>

        <section role="ctlseq" id="decrqpsr" mnemonic="DECRQPSR"
                 title="Request Presentation State Report"
                 groups="isvt320">
            <ctlseq>CSI <param-single/> $ w</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-w.1D08"/>
            <ref src="vt340:224"/>
            <ref src="vt420:270"/>
            <ref src="vt510:DECRQPSR.html"/>
            <ref src="vt52x:265"/>
            <ref src="wy370:140"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
            <p>Request a presentation state report. <param-single/> is the
                report being requested.
            </p>
            <section role="parameter" id="decrqpsr-ignored" title="Ignored">
                <ctlseq><param-single/> = 0</ctlseq>
            </section>
            <section role="parameter" id="decrqpsr-deccir" title="Cursor Information Report (DECCIR)">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-w.1D08"/>
                <ref src="vt340:224"/>
                <ref src="vt420:270"/>
                <ref src="vt510:DECRQPSR.html"/>
                <ref src="vt52x:265"/>
                <ref src="wy370:140"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
                <p>Requests a <a href="#deccir">Cursor Information Report (DECCIR)</a></p>
            </section>
            <section role="parameter" id="decrqpsr-tadectabsr" title="Tab Stop Report (DECTABSR)">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-w.1D08"/>
                <ref src="vt340:224"/>
                <ref src="vt420:270"/>
                <ref src="vt510:DECRQPSR.html"/>
                <ref src="vt52x:265"/>
                <ref src="wy370:140"/>
                <termsupp first="vt330" series="vt" additional="vt340 vt420 vt510 wt"/>
                <p>Requests a <a href="#dectabsr">Tab Stop Report (DECTABSR)</a></p>
            </section>
        </section>
        <section role="ctlseq" id="decefr" mnemonic="DECEFR"
                 title="Enable Filter Rectangle"
                 not-implemented="true" todo="true">
            <ctlseq>CSI Pt ; Pl ; Pb ; Pr ' w</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pt;Pl;Pb;Pr-'-w.1FED"/>
            <ref src="070:1025"/>
            <ref src="vt1000:180"/>
            <ref src="vws:116"/>
            <termsupp first="vt1000" series="vt" additional="xt tt"/>
            <!-- TODO: XTerm claims this is a VT420 escape, but the VT420/510/520
                 manuals don't mention it at all. Where does it *really* come from?
                 One spreadsheet suggests it was first implemented in UWS
             -->
        </section>
        <section role="ctlseq" id="decspp" mnemonic="DECSPP"
                 title="Set Port Parameters"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> ; <param-single/> + w</ctlseq>
            <ref src="vt510:DECSPP.html"/>
            <ref src="vt52x:296"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="decrqkd" mnemonic="DECRQKD"
                 title="Request Key Definition"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> , w</ctlseq>
            <ref src="vt510:DECRQKD.html"/>
            <ref src="vt52x:260"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <!-- Various WYSE settings. K95 has 16 case statements for a bunch of
            these, but none are implemented -->
        <section role="ctlseq" id="wycaa" mnemonic="WYCAA"
                 title="Select foreground color" not-implemented="true" todo="true">
            <ctlseq>CSI 0-47 ; <param-single/> ; <param-single/> ; <param-single/> w</ctlseq>
            <ref src="wy370:87"/>
        </section>
        <section role="ctlseq" id="wycolor-fg" mnemonic="WYCOLOR"
                 title="Select foreground color" not-implemented="true" todo="true">
            <ctlseq>CSI 48 ; <param-single/> w</ctlseq>
            <ref src="wy370:83"/>
        </section>
        <section role="ctlseq" id="wycolor-bg" mnemonic="WYCOLOR"
                 title="Select background color" not-implemented="true" todo="true">
            <ctlseq>CSI 49 ; <param-single/> w</ctlseq>
            <ref src="wy370:85"/>
        </section>
        <section role="ctlseq" id="wycolor-restore" mnemonic="WYCOLOR"
                 title="Restore saved foreground and background colors" not-implemented="true" todo="true">
            <ctlseq>CSI 50 w</ctlseq>
            <ref src="wy370:92"/>
        </section>
        <section role="ctlseq" id="wycolor-border" mnemonic="WYCOLOR"
                 title="Select border color" not-implemented="true" todo="true">
            <ctlseq>CSI 51 ; <param-single/> w</ctlseq>
            <ref src="wy370:97"/>
        </section>
        <section role="ctlseq" id="wycolor-cursor" mnemonic="WYCOLOR"
                 title="Select cursor color" not-implemented="true" todo="true">
            <ctlseq>CSI 52 ; <param-single/> w</ctlseq>
            <ref src="wy370:98"/>
        </section>
        <section role="ctlseq" id="wysovr" mnemonic="WYSOVR" todo="true"
                 title="Select overstrike position" not-implemented="true">
            <ctlseq>CSI 53 ; <param-single/> w</ctlseq>
            <ref src="wy370:79"/>
            <p>
                <param-single/> specifies one of 20 overstrike positions in the
                character cell from 0 through 19. This affects the position of
                the <a href="#sgr-9-co">SGR-9 crossed-out attribute</a>.
                Position 8 is the normal strike-through setting, while you can
                produce a double-underline by turning on
                <a href="#sgr-4">SGR-4</a> and SGR-9 and setting the overstrike
                position to 13.
            </p>
        </section>
        <section role="ctlseq" id="wycolor-user-sl" mnemonic="WYCOLOR"
                 title="Select user status line attributes and colors"
                 not-implemented="true" todo="true">
            <ctlseq>CSI 54 ; <param-single/> w</ctlseq>
            <ref src="wy370:98"/>
        </section>
        <section role="ctlseq" id="wycolor-sys-sl" mnemonic="WYCOLOR"
                 title="Select system status line attributes and colors"
                 not-implemented="true" todo="true">
            <ctlseq>CSI 55 ; <param-single/> w</ctlseq>
            <ref src="wy370:98"/>
        </section>
        <section role="ctlseq" id="wycolor-rca" mnemonic="WYCOLOR"
                 title="Select replacement character attributes and colors"
                 not-implemented="true" todo="true">
            <ctlseq>CSI 56 ; <param-single/> w</ctlseq>
            <ref src="wy370:98"/>
        </section>
        <section role="ctlseq" id="wycolor-nca" mnemonic="WYCOLOR"
                 title="Select nonerasable character attributes and color"
                 not-implemented="true" todo="true">
            <ctlseq>CSI 57 ; <param-single/> w</ctlseq>
            <ref src="wy370:99"/>
        </section>
        <section role="ctlseq" id="wydtset" mnemonic="WYDTSET"
                 title="Set date and time" not-implemented="true" todo="true">
            <ctlseq>CSI 58 ; <param-single/> ; <param-single/> ;
                <param-single/> ; <param-single/> ; <param-single/> w</ctlseq>
            <ref src="wy370:35"/>
        </section>
        <section role="ctlseq" id="wydfpg" mnemonic="WYDFPG" todo="true"
                 title="Define page for session" not-implemented="true">
            <ctlseq>CSI 59 ; <param-single/> ; <param-single/> w</ctlseq>
            <ref src="wy370:106"/>
        </section>
        <section role="ctlseq" id="wyind-rd" mnemonic="WYIND" todo="true"
                 title="Restore default color index values" not-implemented="true">
            <ctlseq>CSI 60 ; <param-single/> ; <param-single/> w</ctlseq>
            <ref src="wy370:96"/>
        </section>
        <section role="ctlseq" id="wyind-acf" mnemonic="WYIND"
                 title="Assign current character foreground" not-implemented="true" todo="true">
            <ctlseq>CSI 61 ; <param-single/>  w</ctlseq>
            <ref src="wy370:96"/>
        </section>
        <section role="ctlseq" id="wyind-acb" mnemonic="WYIND"
                 title="Assign current character background" not-implemented="true" todo="true">
            <ctlseq>CSI 62 ; <param-single/>  w</ctlseq>
            <ref src="wy370:96"/>
        </section>
        <section role="ctlseq" id="wyind-ci" mnemonic="WYIND"
                 title="Turn color index mode on/off" not-implemented="true" todo="true">
            <ctlseq>CSI 63 ; <param-single/>  w</ctlseq>
            <ref src="wy370:96"/>
        </section>
        <section role="ctlseq" id="wyind-nrf" mnemonic="WYIND" todo="true"
                 title="Assign nonerasable character foreground" not-implemented="true">
            <ctlseq>CSI 64 ; <param-single/> w</ctlseq>
            <ref src="wy370:97"/>
        </section>
        <section role="ctlseq" id="wyind-nrb" mnemonic="WYIND" todo="true"
                 title="Assign nonerasable character background" not-implemented="true">
            <ctlseq>CSI 65 ; <param-single/> w</ctlseq>
            <ref src="wy370:97"/>
        </section>
        <section role="ctlseq" id="wyind-rc" mnemonic="WYIND" todo="true"
                 title="Redefine color index value" not-implemented="true">
            <ctlseq>CSI 66 ; <param-single/> ; <param-single/> w</ctlseq>
            <ref src="wy370:96"/>
        </section>

        <!-- ######################### x ######################### -->

        <section role="ctlseq" id="decsdpm" not-implemented="true" todo="true"
                 mnemonic="DECSDPM" title="Set Duplex Print Mode">
            <ctlseq>CSI <param-single/> SP x</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>
        <section role="ctlseq" id="decpts" not-implemented="true" todo="true"
                 mnemonic="DECPTS" title="Printwheel Table Select">
            <ctlseq>CSI <param-single/> ! x</ctlseq>
            <termsupp first="lqp02" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
               -->
        </section>
        <section role="ctlseq" id="decfcr" not-implemented="true" todo="true"
                 mnemonic="DECFCR" title="Font Configuration Request">
            <ctlseq>CSI </ctlseq>
            <termsupp first="lcg01" series="print" additional=""/>
            <ref src="tphb87:791"/>
        </section>

        <section role="ctlseq" ctlseq="CSI &amp; x" not-implemented="true"
                 id="deces" mnemonic="DECES" title="Enable Session">
            <ref src="vt340:270"/>
            <ref src="vt420:325"/>
            <ref src="vt52x:207"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 vt520"/>
        </section>

        <section role="ctlseq" badges="wy370" id="wycdir"
                 mnemonic="WYCDIR" title="Direct Color Mode">
            <ctlseq>
                CSI <param-single symbol="Pf"/> ;
                <param-single symbol="Pb"/> ;
                <param-single symbol="Pa"/> x
            </ctlseq>
            <ref src="wy370:94"/>
            <p>
                Set color and attribute. The first two parameters are foreground
                and background color, a value from 0 to 64
                (the WY370 supports a 64-color color palette). K95 currently maps
                whatever color is specified to one of the eight standard colors. The
                third parameter, <param-single symbol="Pa"/>, specifies an attribute.
            </p>
            <!-- TODO: When we do 256-color and 24bit-color modes we can actually support
                    the WY370 palette properly -->
            <p>K95 currently assigns different meanings to the attribute numbers
                than described in the WY370 programmer's guide (Table 5–9, page 5–19):</p>
            <table>
                <tr>
                    <th><param-single symbol="Pa"/> </th>
                    <th>Attribute</th>
                </tr>
                <tr>
                    <td>0</td>
                    <td>No attribute (turn all attributes off)</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Turn on bold</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Turn on DIM (QANSI)</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Turn on ITALIC (ANSI X3.64)</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Turn on UNDERLINE</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Turn on Slow BLINK</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Turn on Fast BLINK (same as slow blink in K95)</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Turn on REVERSE VIDEO</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Turn on INVISIBLE</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Turn on INVISIBLE (QANSI)</td>
                </tr>
            </table>
        </section>
        <section role="ctlseq" mnemonic="DECREQTPARM" id="decreqtparm"
                 title="Request Terminal Parameters">
            <ctlseq>CSI <param-single/> x</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-x.1CB8"/>
            <ref src="vt100:DECREQTPARM"/>
            <ref src="vt132:87"/>
            <termsupp first="vt100" series="vt" additional="vt132 putty dtterm wt"/>
            <p><param-single/>
                can either be a 0 or a 1; any other value will result in the request being
                ignored. If <param-single/> is a 0, then the first parameter
                in the response will be a 2, otherwise it will be a 3.</p>

            <!-- dtterm responds with CSI 1;1;112;112;1;0x -->

            <p>The response is of the form:
                <tt><cc>CSI</cc> <param-single symbol="Ps"/> ;
                    <param-single symbol="Pp"/> ;
                    <param-single symbol="Pb"/> ;
                    <param-single symbol="Px"/> ;
                    <param-single symbol="Pr"/> ;
                    <param-single symbol="Pc"/> ;
                    <param-single symbol="Pf"/> x</tt></p>
            <p>Where:</p>
            <table>
                <tr>
                    <th>Parameter</th>
                    <th>Meaning</th>
                </tr>
                <tr>
                    <td><param-single symbol="Ps"/></td>
                    <td>The original <param-single symbol="Ps"/> value + 2</td>
                </tr>
                <tr>
                    <td><param-single symbol="Pp"/></td>
                    <td>Parity - 1 for none, 5 for even, 4 for odd, 3 for mark, 2 for space</td>
                </tr>
                <tr>
                    <td><param-single symbol="Pb"/></td>
                    <td>Terminal byte size minus 1 for 8-bit, 2 for 7-bit</td>
                </tr>
                <tr>
                    <td><param-single symbol="Px"/><br/>
                        <param-single symbol="Pr"/> </td>
                    <td>xspeed and rspeed in bits per second:
                        <table>
                            <tr>
                                <th>Value</th>
                                <th>Bits per second</th>
                            </tr>
                            <tr>
                                <td>0</td>
                                <td>50</td>
                            </tr>
                            <tr>
                                <td>8</td>
                                <td>75</td>
                            </tr>
                            <tr>
                                <td>14</td> <!-- TODO: Bug ?  should be 24 for 134.5.-->
                                <td>133</td>
                            </tr>
                            <tr>
                                <td>16</td>
                                <td>110</td>
                            </tr>
                            <tr>
                                <td>32</td>
                                <td>150</td>
                            </tr>
                            <tr>
                                <td>40</td>
                                <td>200</td>
                            </tr>
                            <tr>
                                <td>48</td>
                                <td>300</td>
                            </tr>
                            <tr>
                                <td>56</td>
                                <td>600</td>
                            </tr>
                            <tr>
                                <td>64</td>
                                <td>1200</td>
                            </tr>
                            <tr>
                                <td>72</td>
                                <td>1800</td>
                            </tr>
                            <tr>
                                <td>80</td>
                                <td>2000</td>
                            </tr>
                            <tr>
                                <td>88</td>
                                <td>2400</td>
                            </tr>
                            <tr>
                                <td>96</td>
                                <td>3600</td>
                            </tr>
                            <tr>
                                <td>104</td>
                                <td>4800</td>
                            </tr>
                            <tr>
                                <td>112</td>
                                <td>9600</td>
                            </tr>
                            <tr>
                                <td>120</td>
                                <td>19200</td>
                            </tr>
                            <tr>
                                <td>128</td>
                                <td>38400 or 57,600 or 115,200 or 230,400 or any other
                                    serial interface speed or a network connection</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td><param-single symbol="Pc"/></td>
                    <td>Always 1 indicating the bit rate multiplier is 16</td>
                </tr>
                <tr>
                    <td><param-single symbol="Pf"/></td>
                    <td>Always 0</td>
                </tr>
            </table>
        </section>
        <section role="ctlseq" id="decsace" groups="isvt420" mnemonic="DECSACE"
                 title="Select Attribute Change Extent">
            <ctlseq>
                CSI <param-single/> * x
            </ctlseq>
            <ref src="070:432"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-*-x.1D0F"/>
            <ref src="vt420:188"/>
            <ref src="vt510:DECSACE.html"/>
            <ref src="vt52x:273"/>
            <termsupp first="vt420" series="vt" additional="v510"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>You can query the current state of DECSACE with <a href="#decrqss">DECRQSS</a></p>

            <section style="group" role="group">
                <section role="parameter" id="decsace-0" title="from start to end position, wrapped">
                    <ctlseq><param-single/> = 0</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-*-x:Ps-=-0.1E61"/>
                    <ref src="070:432"/>
                    <ref src="vt510:DECSACE.html"/>
                </section>
                <section role="parameter" id="decsace-1" title="from start to end position, wrapped">
                    <ctlseq><param-single/> = 1</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-*-x:Ps-=-1.1E62"/>
                    <ref src="070:432"/>
                    <ref src="vt510:DECSACE.html"/>
                </section>
                <section role="parameter" id="decsace-2" title="Rectangle (exact)">
                    <ctlseq><param-single/> = 2</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-*-x:Ps-=-2.1E63"/>
                    <ref src="070:432"/>
                    <ref src="vt510:DECSACE.html"/>
                </section>
            </section>

        </section>
        <section role="ctlseq" id="decspma" mnemonic="DECSPMA"
                 title="Session Page Memory Allocation" groups="isvt520">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> ; <param-single/> , x</ctlseq>
            <ref src="vt52x:295"/>
            <termsupp first="vt520" series="vt" additional=""/>
            <p>
                On the VT520 and VT525, this allows you to set the number of
                pages available to each of its four sessions. As K95 does not
                support multiple sessions, the first parameter sets the total
                number of pages available to applications while subsequent
                parameters are ignored.
            </p>
            <p>
                You can query the state of DECSPMA with with
                <a href="#decrqss">DECRQSS</a>
            </p>
        </section>
        <section role="ctlseq" groups="isvt420" id="decfra"
                 mnemonic="DECFRA" title="Fill rectangular area">
            <ctlseq>
                CSI
                <param-single symbol="Pc"/> ;
                <param-single symbol="Pt"/> ;
                <param-single symbol="Pl"/> ;
                <param-single symbol="Pb"/> ;
                <param-single symbol="Pr"/> $ x
            </ctlseq>
            <ref src="070:425"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pc;Pt;Pl;Pb;Pr-$-x.20D9"/>
            <ref src="vt420:184"/>
            <ref src="vt510:DECFRA.html"/>
            <ref src="vt52x:209"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>
                Fills the specified rectangular area with the specified
                character using the current SGR attributes.
            </p>
            <p>
                <tt><param-single symbol="Pt"/> ;
                    <param-single symbol="Pl"/> ; <param-single symbol="Pb"/> ;
                    <param-single symbol="Pr"/></tt> is the rectangle to fill.
                Coordinates are affected by <a href="#decom">DECOM</a>.
            </p>
            <p>
                <param-single symbol="Pc"/> is an integer referring to a
                character in the current GL or GR character set to fill the
                specified rectangular area. When not in UTF8 mode, it must fall
                in the range 32-126 (GL) or 160-255 (GR). If the remote
                character set is UTF8, then the second range is extended to
                160-65535 to cover the Unicode base multilingual plane.
            </p>
        </section>
        <section role="ctlseq" id="decrqpkfm" mnemonic="DECRQPKFM"
                 title="Request Program Key Free Memory"
                 not-implemented="true" todo="true">
            <ctlseq>CSI + x</ctlseq>
            <ref src="vt510:DECRQPKFM"/>
            <ref src="vt52x:265"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>

        <!-- ######################### y ######################### -->
        <section role="ctlseq" ctlseq="CSI y" badges="vip7809" id="vip-enq">
            <p> K95 responds with (ESC, ETX and NUL control codes in bold):
            <tt><b>ESC</b>[8p  OT<b>ETX</b><b>ESC</b>[y7813  P GC  A <b>ETX</b><b>NUL</b></tt></p>
        </section>
        <section role="ctlseq" ctlseq="CSI y" groups="ishft" id="vtlr"
                 not-implemented="true" title="Virtual Terminal locator report"/>

        <section role="ctlseq" id="decss" not-implemented="true" todo="true"
                 mnemonic="DECSS" title="Set Space Size">
            <ctlseq>CSI <param-single/> ! y</ctlseq>
            <termsupp first="lqp02" series="print" additional=""/>
            <ref src="tphb87:766"/>
        </section>

        <section role="ctlseq" badges="s97801" id="sni-test">
            <ctlseq>CSI <param-single/> y</ctlseq>
            <p>Mostly various test functions most of which don't make a lot of sense
                for a terminal emulator (e.g., "Execute hardware test for terminal").
                Only three of the possible values of <param-single/> are
                implemented:
            </p>
            <section role="parameter" id="sni-a8m" title="Activate 8-bit mode">
                <ctlseq><param-single/> = 20</ctlseq>
                <p>US_ASCII to G0 (GL), Brackets to G1, Blanks to G2, ISO 8859-1 to G3 (GR)</p>
            </section>
            <section role="parameter" not-implemented="true" id="sni-a7m" title="Activate 7-bit mode">
                <ctlseq><param-single/> = 21</ctlseq>
                <p>US_ASCII to G0 (GL and GR)</p>
            </section>
            <section role="parameter" not-implemented="true" id="sni-qam" title="Query active mode">
                <ctlseq><param-single/> = 22</ctlseq>
                <p>
                    K95 responds with either:
                    <tt><cc>DCS</cc> 2 2 y 7 <cc>ST</cc></tt> (7-bit mode) or <tt><cc>DCS</cc> 2 2 y 8 <cc>ST</cc></tt> (8-bit mode)
                </p>
            </section>
        </section>
        <section role="ctlseq" not-implemented="true" todo="true" id="wymsplm"
                 mnemonic="WYMSPLM" title="Move split">
            <ctlseq>CSI <param-single/> ; <param-single/> y</ctlseq>
            <ref src="wy370:110"/>
        </section>
        <section role="ctlseq" not-implemented="true" id="dectst"
                 mnemonic="DECTST" title="VT100 confidence tests">
            <ctlseq>CSI 2 ; <param-single/> y</ctlseq>
            <ref src="vt100:DECTST"/>
            <ref src="vt132:90"/>
            <ref src="vt220:S4.19.1"/>
            <ref src="vt420:313"/>
            <ref src="vt510:DECTST.html"/>
            <ref src="vt52x:316"/>
            <!-- TODO: WY370 should be excluded from this - WY370 doesn't implement
                        it, and it conflicts with WYMSPLM -->
            <termsupp first="vt100" series="vt" additional="vt132 vt220 vt420 vt510"/>
            <p>power-up self-test,
                data loop back test, EIA modem control test,
                repeat selected tests indefinitely</p>
        </section>
        <section role="ctlseq" id="xtchecksum" mnemonic="XTCHECKSUM"
                 title="Select checksum extension"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> # y</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-pound-y.1F0C"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" groups="isvt420 isxterm" id="decrqcra"
                 mnemonic="DECRQCRA" title="Request Checksum of Rectangular Area">
            <ctlseq>
                CSI
                <param-single symbol="Pi"/> ;
                <param-single symbol="Pg"/> ;
                <param-single symbol="Pt"/> ;
                <param-single symbol="Pl"/> ;
                <param-single symbol="Pb"/> ;
                <param-single symbol="Pr"/> * y
            </ctlseq>
            <ref src="070:434"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pi;Pg;Pt;Pl;Pb;Pr-*-y.21D8"/>
            <ref src="vt420:265"/>
            <ref src="vt510:DECRQCRA.html"/>
            <ref src="vt52x:259"/>
            <termsupp first="vt420" series="vt" additional="v510 wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>
                <param-single symbol="Pi"/> is the request ID,
                <param-single symbol="Pg"/> is the page number,
                and <tt><param-single symbol="Pt"/> ;
                <param-single symbol="Pl"/> ; <param-single symbol="Pb"/> ;
                <param-single symbol="Pr"/></tt> is the rectangle to calculate
                the checksum for. Coordinates are affected by origin mode
                (<a href="#decom">DECOM</a>). If zero is given as the page
                number, the checksum of all pages will be computed.
            </p>
            <p>
                This control sequence only functions if send-data is enabled
                (<tt>set terminal send-data on</tt>). If it is disabled
                (the default), this control sequence is ignored.
            </p>
            <p>
                If the terminal is on the XTerm Alternate Screen, then the
                page is ignored and DECRQCRA operates only on the alternate
                screen.
            </p>
            <p>
                The response is <tt><cc>DCS</cc> <em>Pi</em> ! ~ D...D <cc>ST</cc></tt>
                where <em>Pi</em> is the request ID, and D...D is a string of
                four hexadecimal digits indicating the checksum.
            </p>
            <p>
                You can also compute a checksum using the same algorithm with
                the K95 function <tt>\fterminalchecksum()</tt>.
            </p>
            <p>
                The checksum is computed by subtracting the ordinal value of
                characters from an unsigned 16bit integer which has a starting
                value of 0. Character cells that are in the erased state are
                skipped. If a character cell has attributes set, then those
                attributes are also subtracted from the checksum using the
                following values:
            </p>
            <ul>
                <li>Protected: 0x04</li>
                <li>Invisible: 0x08</li>
                <li>Underline: 0x10</li>
                <li>Reverse: 0x20</li>
                <li>Blink: 0x40</li>
                <li>Bold: 0x80</li>
            </ul>
            <p>
                If a VT525 is being emulated, then the cells color background
                color index is also subtracted from the checksum along with the
                foreground color index multiplied by 16. If a cells color index
                is above 16 or has an RGB color assigned, the nearest color
                from a suitable 16-color palette is used for the checksum
                calculation instead.
            </p>
        </section>
        <section role="ctlseq" id="decpkfmr" mnemonic="DECPKFMR"
                 title="Program Key Free Memory Report"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ; <param-single/> + y</ctlseq>
            <ref src="vt510:DECPKFMR.html"/>
            <ref src="vt52x:242"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="decus" mnemonic="DECUS"
                 title="Update Session"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> , y</ctlseq>
            <ref src="vt52x:323"/>
            <termsupp first="vt520" series="vt" additional=""/>
        </section>

        <!-- ######################### z ######################### -->
        <section role="ctlseq" ctlseq="CSI z" id="h19-reset"
                 badges="h19" title="Reset terminal">
            <p>
                Only if the real terminal type is H19. If a different terminal
                type is chosen that is able to switch into an H19 mode, and K95
                is asked to switch into that H19 mode, this control sequence
                remains unavailable.
            </p>
        </section>
        <section role="ctlseq" ctlseq="CSI z" badges="aaa" mnemonic="zSTE"
                 id="zste" not-implemented="true" title="Set Transfer End"/>
        <section role="ctlseq" not-implemented="true" badges="scoansi"
                 id="ssw" mnemonic="SSW" title="Switch to screen">
            <ctlseq>CSI <param-single/> z</ctlseq>
            <termsupp series="sco" first="sco"/>
            <p>Switch to screen <param-single/></p>
            <!-- TODO: This *could* be supported now that we have paging. Would
                    need to reevaluate calls to VscrnIsDirty for SCO-only escape
                    sequences.
            -->
        </section>

        <section role="ctlseq" id="decvpfs" not-implemented="true" todo="true"
                 mnemonic="DECVPFS" title="Variable Page Format Select">
            <ctlseq>CSI <param-multi/> SP z</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>
        <section role="ctlseq" id="decden" not-implemented="true" todo="true"
                 mnemonic="DECDEN" title="Density Selection">
            <ctlseq>CSI <param-single/> &quot; z</ctlseq>
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:113"/>
        </section>

        <!-- CSI & z - DECSPO - Set Page Orientation (supposedly) -->

        <section role="ctlseq" id="decverp" not-implemented="true" todo="true"
                 mnemonic="DECVERP" title="Set Vertical Pitch">
            <ctlseq>CSI <param-single/> z</ctlseq>
            <termsupp first="la100" series="print" additional=""/>
            <ref src="dap:146"/>
        </section>
        <section role="ctlseq" id="wyscrate" not-implemented="true" todo="true"
                 mnemonic="WYSCRATE" title="Set smooth scroll rate">
            <ctlseq>CSI <param-single/> z</ctlseq>
            <ref src="wy370:76"/>
        </section>
        <section role="ctlseq" not-implemented="true" badges="s97801"
            id="sni-slrm" title="Define left and right margins">
            <ctlseq>CSI <param-single/> ; <param-single/> z</ctlseq>
            <p>
                &quot;This sequence
                affects only the character that immediately follows this sequence. That
                char is used to fill the scroll region using these borders, then the
                borders revert to 1,80&quot;
            </p>
        </section>
        <section role="ctlseq" id="decera"
                 mnemonic="DECERA" title="Erase rectangular area">
            <ctlseq>
                CSI
                <param-single symbol="Pt"/> ;
                <param-single symbol="Pl"/> ;
                <param-single symbol="Pb"/> ;
                <param-single symbol="Pr"/> $ z
            </ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pt;Pl;Pb;Pr-$-z.1FED"/>
            <ref src="070:426"/>
            <ref src="vt420:186"/>
            <ref src="vt510:DECERA.html"/>
            <ref src="vt52x:206"/>
            <termsupp first="vt420" series="vt" additional="v510 tt wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>
                <tt><param-single symbol="Pt"/> ;
                    <param-single symbol="Pl"/> ;
                    <param-single symbol="Pb"/> ;
                    <param-single symbol="Pr"/></tt> is the rectangle to erase.
            </p>
            <p>Pt is the top line, Pb is the bottom line, Pl is the left column,
                and Pr is the right column.
                These coordinates are affected by <a href="#decom">DECOM</a>.
                The left column can not be greater than the right, and the top
                can not be greater than the bottom.
            </p>
            <p>
                Any erased cells within the rectangle are skipped aside from
                having their background color updated to the current erase
                color. Cells are erased with the empty character (STD 070 says
                Space, but the VT420 and VT520 disagree).
            </p>
        </section>
        <section role="ctlseq" id="decelr" mnemonic="DECELR"
                 title="Enable Locator Reporting"
                 not-implemented="true" todo="true">
            <ctlseq>CSI Ps ; Pu ' z</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Pu-'-z.1E0E"/>
            <ref src="vt1000:181"/>
            <ref src="070:1020"/>
            <ref src="vws:115"/>
            <termsupp first="vt1000" series="vt" additional="xt tt"/>
        </section>
        <section role="ctlseq" id="decinvm" mnemonic="DECINVM" groups="isvt420"
                 title="Invoke Macro">
            <ctlseq>CSI <param-single/> * z</ctlseq>
            <ref src="070:439"/>
            <ref src="vt420:69"/>
            <ref src="vt510:DECINVM.html"/>
            <ref src="vt52x:215"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            <p>
                Invokes a macro previously defined with <a href="#decdmac">DECDMAC</a>.
                The parameter <param-single/> is the ID of the macro to invoke.
            </p>
            <p>
                When invoked, the terminal emulator processes data from the macro
                as though it were received from the remote host. Data from the
                remote host is not processed until the macro completes. Any
                changes made to the state of the terminal emulator remain in
                effect at the conclusion of the macro.
            </p>
            <p>
                For more information on defining macros to be invoked with
                DECINVM, see <a href="#decdmac"><em>DECDMAC</em></a>.
            </p>
        </section>
        <section role="ctlseq" id="decpka" mnemonic="DECPKA"
                 title="Program Action Key"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> + z</ctlseq>
            <ref src="vt510:DECPKA.html"/>
            <ref src="vt52x:241"/>
            <termsupp first="vt510" series="vt" additional=""/>
        </section>
        <section role="ctlseq" id="decdlda" mnemonic="DECDLDA"
                 title="Down Line Load Allocation" badges="vt520">
            <ctlseq>CSI <param-single/> ; , z</ctlseq>
            <ref src="vt52x:201"/>
            <termsupp first="vt520" series="vt" additional=""/>
            <p>
                Sets the number of DRCS font buffers available. Valid options
                are 1 or 2. Any other values (or no parameter at all) will
                have no effect. Only available for VT520 emulation. Not
                available for VT525 or K95 terminal types as the VT525 always
                supports two font buffers per session.
            </p>
            <p>
                This setting can be queried via <a href="#decrqss">DECRQSS</a>.
            </p>
        </section>


        <section role="ctlseq" ctlseq="CSI = z" badges="scoansi" id="cat" mnemonic="CAT"
                 title="Clear all tab stops">
            <termsupp series="sco" first="sco"/>
        </section>

        <!-- ######################### { ######################### -->
        <section role="ctlseq" id="decsss" not-implemented="true" todo="true"
                 mnemonic="DECSSS" title="Set Sheet Size">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> ; <param-single/> SP {</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>
        <section role="ctlseq" id="decrfs" not-implemented="true" todo="true"
                 mnemonic="DECRFS" title="Request Font Status">
            <ctlseq>CSI <param-single/> &quot; {</ctlseq>
            <termsupp first="ln03" series="print" additional=""/>
            <ref src="dap:129"/>
        </section>

        <!-- CSI & {    DECSGD      Set Graphics Density (supposedly) -->

        <section role="ctlseq" id="decsle" mnemonic="DECSLE"
                 title="Select Locator Events"
                 not-implemented="true" todo="true">
            <ctlseq>CSI Ps ; Pu ' {</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-'-%7B.1D2C"/>
            <ref src="vt1000:185"/>
            <ref src="070:1024"/>
            <ref src="vws:117"/>
            <termsupp first="vt1000" series="vt" additional="xt tt"/>
        </section>
        <section role="ctlseq" id="xtpushsgr-c" mnemonic="XTPUSHSGR"
                 title="Push video attributes onto stack"
                 not-implemented="true" todo="true">
            <ctlseq>CSI # {</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-pound-%7B.1E41"/>
            <termsupp first="xterm" series="xt" additional="wt"/>
        </section>
        <section role="ctlseq" id="xtpushsgr-d" mnemonic="XTPUSHSGR"
                 title="Push video attributes onto stack"
                 not-implemented="true" todo="true">
            <ctlseq>CSI Pm # {</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-pound-%7B.1F2B"/>
            <termsupp first="xterm" series="xt" additional="wt"/>
        </section>
        <section role="ctlseq" groups="isvt420" id="decsera"
                 mnemonic="DECSERA" title="Selective erase rectangular area">
            <ctlseq>
                CSI
                <param-single symbol="Pt"/> ;
                <param-single symbol="Pl"/> ;
                <param-single symbol="Pb"/> ;
                <param-single symbol="Pr"/> $ {
            </ctlseq>
            <ref src="070:427"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pt;Pl;Pb;Pr-$-%7B.2011"/>
            <ref src="vt420:187"/>
            <ref src="vt510:DECSERA.html"/>
            <ref src="vt52x:286"/>
            <termsupp first="vt420" series="vt" additional="v510 tt wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p> Erases all unerased characters in the specified rectangle with
                the Space character unless those characters have the protected
                attribute set. The rectangle is defined by
                <tt><param-single symbol="Pt"/> ;
                    <param-single symbol="Pl"/> ;
                    <param-single symbol="Pb"/> ;
                    <param-single symbol="Pr"/></tt>.
                Coordinates are affected by <a href="#decom">DECOM</a>.
            </p>
            <p>
                Any existing visual attributes set by <a href="#sgr">SGR</a>,
                protection attributes, and line attributes are unaffected.
            </p>
        </section>
        <section role="ctlseq" id="decstglt" mnemonic="DECSTGLT"
                 title="Select Color Look-Up Table" groups="isvt525">
            <ctlseq>CSI <param-single/> ) {</ctlseq>
            <ref src="070:368"/>
            <ref src="vt52x:305"/>
            <termsupp first="vt525" series="vt" additional=""/>
            <p>You can query the current state of DECSTGLT with <a href="#decrqss">DECRQSS</a></p>

            <section role="parameter" id="decstglt-0"
                    title="Mono">
                <ctlseq><param-text/> = 0</ctlseq>
                <p>
                    Switches to a monochrome palette.
                </p>
            </section>
            <section style="group" role="group">
                <section role="parameter" id="decstglt-1"
                         title="Alternate Color">
                    <ctlseq><param-text/> = 1</ctlseq>
                </section>
                <section role="parameter" id="decstglt-2"
                         title="Alternate Color">
                    <ctlseq><param-text/> = 2</ctlseq>
                    <p>
                        Uses the Bold, Underline, Reverse and Blink attributes
                        to specify text colors from a table of 16
                        foreground-background color pairs, rather than showing
                        text as bold/underline/reverse/blinking. Other text
                        attributes (e.g., italic) are shown as normal text.
                    </p>
                    <p>
                        When in this mode, <a href="#decatcum">DECATCUM</a>
                        and <a href="#decatcbm">DECATCBM</a> can be set to allow
                        text to be blinking and/or underlined <em>in addition to</em>
                        the color associated with those attribute combinations.
                    </p>
                    <p>
                        To set colors for attribute combinations, see
                        <a href="#decatc">DECATC</a>.
                    </p>
                </section>
            </section>
            <section role="parameter" id="decstglt-3"
                     title="ANSI SGR color">
                <ctlseq><param-text/> = 3</ctlseq>
                <p>
                    Enables display of SGR colors. Returns display of
                    reverse, underline, bold and blink attributes to their normal
                    status.
                </p>
            </section>
        </section>
        <section role="ctlseq" id="decszs" mnemonic="DECSZS"
                 title="Select Zero Symbol"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> , {</ctlseq>
            <ref src="vt52x:309"/>
            <termsupp first="vt520" series="vt" additional=""/>
        </section>

        <!-- ######################### | ######################### -->
        <section role="ctlseq" id="decrvec" not-implemented="true" todo="true"
                 mnemonic="DECRVEC" title="Draw Relative Vector">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> SP |</ctlseq>
            <termsupp first="ln05" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>
        <section role="ctlseq" id="decvec" not-implemented="true" todo="true"
                 mnemonic="DECVEC" title="Draw Vector">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> ;
                <param-single/> ; <param-single/> ! |</ctlseq>
            <termsupp first="ln01" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>

        <!-- CSI & |    DECDLG      Deleting Logos Sequence (supposedly) -->

        <section role="ctlseq" id="decttc" mnemonic="DECTTC" title="Transmit Termination Character"
                 not-implemented="true" todo="true" >
            <ctlseq>CSI <param-single/> |</ctlseq>
            <ref src="vt132:91"/>
            <ref src="vt340:158"/>
            <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
            <p>Not Implemented: K95 does not support the VT132 block mode</p>
        </section>
        <section role="ctlseq" id="xtreportsgr" mnemonic="XTREPORTSGR"
                 title="Report selected graphic rendition"
                 not-implemented="true" todo="true">
            <ctlseq>CSI Pt ; Pl ; Pb ; Pr # |</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pt;Pl;Pb;Pr-pound-%7C.2214"/>
            <termsupp first="xterm" series="xt" additional=""/>
        </section>
        <section role="ctlseq" id="decscpp"
                 mnemonic="DECSCPP" title="Set Columns Per Page">
            <ctlseq>CSI <param-single/> $ |</ctlseq>
            <ref src="070:328"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-%7C.1D30"/>
            <ref src="vt340:120"/>
            <ref src="vt420:152"/>
            <ref src="vt510:DECSCPP.html"/>
            <ref src="vt52x:279"/>
            <ref src="vws:108"/>
            <termsupp first="vt330" series="vt" additional="vt340 vt420 v510 putty"/>
            <implchk std070="true"/>
            <p>
                The parameter <param-single/> specifies the new width of the
                terminal. VT emulations treat any width less than 80 as 80, and
                any width above 80 as 132.
            </p>
            <p>DECSCPP is unaffected by <a href="#decncsm">DECNCSM</a> and it
                never clears the entire screen. When the width is reduced, the
                area beyond the new last column is erased however.
            </p>
            <!-- decterm and vtstar behaviour confirmed -->
            <p badges="k95 decterm vtstar">
                Any reasonable width may be chosen. If <param-single/> is 42,
                you will get a with of 42. If <param-single/> is 193 you will
                get a width of 193.
            </p>
            <p badges="xterm"> <!-- as of xterm(390) -->
                Any value other than 80 or 132 is ignored.
            </p>
            <section style="group" role="group">
                <section title="80 columns" id="decscpp-0" role="parameter">
                    <ctlseq><param-single/> = 0</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$--percent-7C:Ps-=-0.21A8"/>
                    <ref src="vt420:152"/>
                    <ref src="vt510:DECSCPP.html"/>
                    <termsupp first="vt420" series="vt" additional="v510"/>
                </section>
                <section title="80 columns" id="decscpp-80" role="parameter">
                    <ctlseq><param-single/> = 80</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$--percent-7C:Ps-=-8-0.220D"/>
                    <ref src="vt420:152"/>
                    <ref src="vt510:DECSCPP.html"/>
                    <termsupp first="vt420" series="vt" additional="v510"/>
                </section>
                <section title="132 columns" id="decscpp-132" role="parameter">
                    <ctlseq><param-single/> = 132</ctlseq>
                    <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$--percent-7C:Ps-=-1-3-2.2268"/>
                    <ref src="vt420:152"/>
                    <ref src="vt510:DECSCPP.html"/>
                    <termsupp first="vt420" series="vt" additional="v510"/>
                </section>
            </section>
        </section>
        <section role="ctlseq" id="decrqlp" mnemonic="DECRQLP"
                 title="Request Locator Position"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> ' |</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-'-%7C.1D33"/>
            <ref src="vt1000:184"/>
            <ref src="070:1023"/>
            <ref src="vws:117"/>
            <termsupp first="vt1000" series="vt" additional="xt tt"/>
        </section>
        <section role="ctlseq" id="decsnls" mnemonic="DECSNLS"
                 title="Select Number of Lines/Screen"
                 groups="isvt420">
            <ctlseq>CSI <param-single/> * |</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-*-%7C.1D36"/>
            <ref src="070:344"/>
            <ref src="vt420:240"/>
            <ref src="vt510:DECSNLS.html"/>
            <ref src="vt52x:294"/>
            <termsupp first="vt420" series="vt" additional="vt510 putty"/>
            <p>
                Sets the number of lines in the terminal screen.
            </p>
        </section>
        <section role="ctlseq" id="xtpopsgr" mnemonic="XTPOPSGR"
                 title="Pop video attributes from stack"
                 not-implemented="true" todo="true">
            <ctlseq>CSI # }</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-pound-%7D.1E43"/>
            <termsupp first="xterm" series="xt" additional="wt"/>
        </section>
        <section role="ctlseq" id="decac" mnemonic="DECAC" title="Assign Color"
                groups="isvt525">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> , |</ctlseq>
            <ref src="vt52x:170"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Pf;Pb_-%7C.1F1C"/>
            <termsupp first="vt525" series="vt" additional="wt"/>

            <p>
                The first parameter specifies the item the color is being assigned
                to, while the second and third parameters are the foreground and
                background color indices respectively.
            </p>
            <p>
                While a real VT525 is limited to 16 colors (0...15), Kermit 95
                accepts any color index that is valid for the current palette
                as chosen by <tt>SET TERMINAL COLOR PALETTE</tt>.
            </p>

            <p>
                You can query the current state of DECAC with
                <a href="#decrqss">DECRQSS</a>
            </p>

            <p>
                <b>Warning:</b> The behavior described here has not been
                checked against a real VT525 and is subject to change should it
                turn out that a VT525 behaves differently.
            </p>

            <section role="parameter" id="decac-1" title="Normal Text">
                <ctlseq><param-text/> = 1</ctlseq>
                <p>
                    Assigns the colors for normal text. This is the default text
                    color for any text that hasn't had some other color specified
                    via SGR or some other mechanism.
                </p>
            </section>
            <section role="parameter" id="decac-2" title="Window Frame"
                not-implemented="true">
                <ctlseq><param-text/> = 2</ctlseq>
            </section>
        </section>

        <!-- ######################### } ######################### -->
        <section role="ctlseq" id="decfin" not-implemented="true" todo="true"
                 mnemonic="DECFIN" title="Document Finishing">
            <ctlseq>CSI <param-single/> ! }</ctlseq>
            <termsupp first="ln08" series="print" additional=""/>
            <!-- Mentioned here: https://vt100.net/emu/ctrlseq_dec.html
                       and here: https://www.zx.net.nz/mirror/deathrow.vistech.net/_cvisors/DEC94MDS/dc32pop1.pdf
               -->
        </section>

        <!-- CSI & }    DECILG      Select Logo Sequence (supposedly) -->

        <section role="ctlseq" id="decpro" mnemonic="DECPRO" title="Protected Fields Attribute"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single/> }</ctlseq>
            <ref src="vt132:87"/>
            <ref src="vt340:143"/>
            <termsupp first="vt132" series="vt" additional="vt330 vt340"/>
            <p>Not Implemented: K95 does not support the VT132 block mode</p>
        </section>
        <section role="ctlseq" id="decatc" mnemonic="DECATC"
                 title="Alternate Text Color" groups="isvt525">
            <ctlseq>CSI <param-single/> ; <param-single/> ; <param-single/> , }</ctlseq>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps;Pf;Pb_-%7D.1F1D"/>
            <ref src="vt52x:176"/>
            <termsupp first="vt525" series="vt" additional=""/>
            <p>
                Sets colors used for text attribute combinations when in
                <a href="#decstglt-2">DECSTGLT Alternate Color Mode</a>.
                The first parameter specifies an attribute combination from
                the table below, the second parameter is the foreground color
                index, and the third parameter is the background color index.
            </p>
            <p>
                You can query the current state of DECATC with
                <a href="#decrqss">DECRQSS</a>
            </p>
            <table>
                <tr>
                    <th>Ps1</th>
                    <th>Attributes</th>
                    <th>Default Foreground</th>
                    <th>Default Background</th>
                </tr>
                <tr>
                    <td>0</td>
                    <td>Normal text</td>
                    <td>2 - Red</td>
                    <td>0 - Black</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Bold</td>
                    <td>1 - Blue</td>
                    <td>0 - Black</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Reverse</td>
                    <td>6 - Yellow</td>
                    <td>4 - Magenta</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Underline</td>
                    <td>6 - Yellow</td>
                    <td>0 - Black</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Blink</td>
                    <td>3 - Green</td>
                    <td>0 - Black</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Bold + Reverse</td>
                    <td>1 - Blue</td>
                    <td>4 - Magenta</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Bold + Underline</td>
                    <td>7 - Gray 50%</td>
                    <td>0 - Black</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Bold + Blink</td>
                    <td>1 - Blue</td>
                    <td>0 - Black</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Reverse + Underline</td>
                    <td>6 - Yellow</td>
                    <td>4 - Magenta</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Reverse + Blink</td>
                    <td>3 - Green</td>
                    <td>4 - Magenta</td>
                </tr>
                <tr>
                    <td>10</td>
                    <td>Underline + Blink</td>
                    <td>7 - Gray 50%</td>
                    <td>0 - Black</td>
                </tr>
                <tr>
                    <td>11</td>
                    <td>Bold + Reverse + Underline</td>
                    <td>7 - Gray 50%</td>
                    <td>4 - Gray on Magenta</td>
                </tr>
                <tr>
                    <td>12</td>
                    <td>Bold + Reverse + Blink</td>
                    <td>5 - Cyan</td>
                    <td>4 - Magenta</td>
                </tr>
                <tr>
                    <td>13</td>
                    <td>Bold + Underline + Blink</td>
                    <td>5 - Cyan</td>
                    <td>0 - Black</td>
                </tr>
                <tr>
                    <td>14</td>
                    <td>Reverse + Underline + Blink</td>
                    <td>7 - Gray 50%</td>
                    <td>4 - Magenta</td>
                </tr>
                <tr>
                    <td>15</td>
                    <td>Bold + Reverse + Underline + Blink</td>
                    <td>5 - Cyan</td>
                    <td>4 - Magenta</td>
                </tr>
            </table>
            <p>
                Color indexes are for the special DECATC palette used only when
                Kermit 95 is in Alternate Color Mode. This palette is arranged
                differently from the normal SGR palette:
            </p>
            <table>
                <tr>
                    <th>Ps2, Ps3</th>
                    <th>Color</th>
                </tr>
                <tr>
                    <td>0</td>
                    <td>Black</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Blue</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Red</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Green</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Magenta</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Cyan</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Yellow</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Gray 50%</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Gray 25%</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Dark Blue</td>
                </tr>
                <tr>
                    <td>10</td>
                    <td>Dark Red</td>
                </tr>
                <tr>
                    <td>11</td>
                    <td>Dark Green</td>
                </tr>
                <tr>
                    <td>12</td>
                    <td>Dark Magenta</td>
                </tr>
                <tr>
                    <td>13</td>
                    <td>Dark Cyan</td>
                </tr>
                <tr>
                    <td>14</td>
                    <td>Dark Yellow</td>
                </tr>
                <tr>
                    <td>15</td>
                    <td>Gray 75%</td>
                </tr>
            </table>
        </section>
        <section role="ctlseq" groups="isvt420" id="decic"
                 mnemonic="DECIC" title="Insert Column">
            <ctlseq>CSI <param-single/> ' }</ctlseq>
            <ref src="070:405"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-'-%7D.1D34"/>
            <ref src="vt420:172"/>
            <ref src="vt510:DECIC.html"/>
            <ref src="vt52x:213"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>Insert <param-single/> blank columns (default 1) at the cursors
                current location, with all columns between the cursor and the
                right margin shifting right. If the cursor is outside the page
                margins, DECIC is ignored.
            </p>
            <p>
                Any <a href="#decdrlbr">Ruled Lines</a> on the screen between
                the cursor and the right margin are unaffected - the are not
                shifted right.
            </p>
        </section>
        <section role="ctlseq" id="decsasd"
                 mnemonic="DECSASD" title="Select Active Status Display">
            <ctlseq>CSI <param-single/> $ }</ctlseq>
            <ref src="070:1047"/>
            <ref src="wy370:74"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-%7D.1D31"/>
            <ref src="vt340:203"/>
            <ref src="vt420:241"/>
            <ref src="vt510:DECSASD.html"/>
            <ref src="vt52x:274"/>
            <termsupp first="vt320" series="vt" additional="vt330 vt340 vt510 tt"/>
            <p>You can query the current state of DECSASD with
                <a href="#decrqss">DECRQSS</a></p>
            <section role="parameter" id="decsasd-term" title="Terminal">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="070:1047"/>
                <ref src="wy370:74"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$--percent-7D:Ps-=-0.21A9"/>
                <ref src="vt420:241"/>
                <ref src="vt510:DECSASD.html"/>
                <termsupp first="vt420" series="vt" additional="vt510"/>
                <p>Select the main display (terminal)</p>
            </section>
            <section role="parameter" id="decsasd-sl" title="Status Line">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="070:1047"/>
                <ref src="wy370:74"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$--percent-7D:Ps-=-1.21AA"/>
                <ref src="vt420:241"/>
                <ref src="vt510:DECSASD.html"/>
                <termsupp first="vt420" series="vt" additional="vt510"/>
                <p>Select status line only if the current status line type is host-writable</p>
            </section>
        </section>

        <section role="ctlseq" id="declfkc" mnemonic="DECLFKC"
                 title="Local Function Key Control"
                 not-implemented="true" todo="true">
            <ctlseq>CSI <param-single symbol="Pk1"/> ; <param-single symbol="Pf1"/> ...
                <param-single symbol="Pkn"/> ; <param-single symbol="Pfn"/> * }</ctlseq>
            <ref src="vt420:219"/>
            <ref src="vt510:DECLFKC.html"/>
            <ref src="vt52x:224"/>
            <termsupp first="vt420" series="vt" additional="vt510"/>
        </section>

        <!-- ######################### ~ ######################### -->
        <!-- CSI & ~        DECFMSR     Request Forms Status (supposedly) -->
        <section role="ctlseq" id="dectme"
                 mnemonic="DECTME" title="Terminal Mode Emulation">
            <ctlseq>
                CSI <param-single/> ; <param-single/> ~
            </ctlseq>
            <ref src="vt510:DECTME.html"/>
            <ref src="vt52x:313"/>
            <termsupp first="vt510" series="vt" additional=""/>

            <section style="group" role="group">
            <section role="parameter"
                     badges="vt220 vt220pc vt320 vt320pc wy370"
                     id="dectme-vt320"
                     title="Return to VT220/VT320/WY370 mode">
                <ctlseq>
                    <param-single/> = 0
                </ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter"
                     id="dectme-vt320-2"
                     title="Return to VT220/VT320/WY370 mode"
                     badges="vt220 vt220pc vt320 vt320pc wy370">
                <ctlseq>
                    <param-single/> = 1
                </ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p> Returns from Terminal Mode Emulation.
                    If two parameters are supplied, and the second parameter is 1 then
                    switch to 7-bit controls, otherwise switch to 8-bit controls</p>
            </section>
            </section>
            <section role="parameter" badges="vt100"
                     id="dectme-vt100" title="Switch to VT100">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="dectme-vt102" title="Switch to VT102">
                <ctlseq><param-single/> = 2</ctlseq>
            </section>
            <section role="parameter" id="dectme-vt52" title="Switch to VT52 mode">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" not-implemented="true"
                     id="dectme-vt520-pct" title="VT420 PCTerm">
                <ctlseq><param-single/> = 4</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>
                    While K95 does support PCTerm mode, <param-single/> = 4
                    currently does nothing.
                </p>
                <!-- TODO: Why? We have PCTerm mode - surely this should switch to it?
                        Is it an omission? Is it so that the remote host can't take over the
                        keyboard unexpectedly?
                -->
            </section>
            <section role="parameter" id="dectme-wyse-60" title="WYSE 60/160">
                <ctlseq><param-single/> = 5</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>Switches to WY60 emulation</p>
            </section>
            <section role="parameter" not-implemented="true" id="dectme-wyse-60-pct"
                title="WYSE 60/160 PCTerm">
                <ctlseq><param-single/> = 6</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>While K95 does support PCTerm mode, <param-single/> = 6
                    currently does nothing.</p>
                <!-- TODO: Are there different versions of PCTerm? Is WY60 PCTerm somehow
                            different from VT420 PCTerm?
                -->
            </section>
            <section role="parameter" id="dectme-wyse-50" title="WYSE 50+">
                <ctlseq><param-single/> = 7</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>Switches to WY50 emulation</p>
            </section>
            <section role="parameter" not-implemented="true"
                     id="dectme-wyse-150" title="WYSE 150/120">
                <ctlseq><param-single/> = 8</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="dectme-tvi-950" title="TVI 950">
                <ctlseq><param-single/> = 9</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="dectme-tvi-925" title="TVI 925">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="dectme-tvi910" title="TVI 910+">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>Switches to TVI 910 emulation</p>
            </section>
            <section role="parameter" not-implemented="true"
                     id="dectme-adds-a2" title="ADDS A2">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
            </section>
            <section role="parameter" id="dectme-sco" title="SCO Console">
                <ctlseq><param-single/> = 13</ctlseq>
                <ref src="vt510:DECTME.html"/>
                <ref src="vt52x:313"/>
                <termsupp first="vt510" series="vt" additional=""/>
                <p>Switches to SCO ANSI emulation</p>
            </section>
            <section role="parameter" not-implemented="true" title="WYSE 325">
                <ctlseq><param-single/> = 14</ctlseq>
                <ref src="vt52x:313"/>
                <termsupp first="vt520" series="vt" additional=""/>
            </section>
        </section>
        <section role="ctlseq" id="decdc" mnemonic="DECDC" title=" Delete Column">
            <ctlseq>CSI <param-single/> ' ~</ctlseq>
            <ref src="070:406"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-'-~.1D12"/>
            <ref src="vt420:171"/>
            <ref src="vt510:DECDC.html"/>
            <ref src="vt52x:191"/>
            <termsupp first="vt420" series="vt" additional="vt510 wt"/>
            <p role="note"><em>Note!</em>
                Because K95 currently lacks a VT420 mode, this is temporarily
                available to VT320-compatible terminal types. In the future,
                this will only be available to VT420 and higher emulations.
            </p>
            <p>Delete <param-single/> columns (default 1), shifting columns from
                the right margin towards the cursor. One or more empty columns
                are inserted at the right margin. If the cursor is outside the
                page margins, DECDC is ignored.
            </p>
            <p>
                Any <a href="#decdrlbr">Ruled Lines</a> on the screen between
                the cursor and the right margin are unaffected - the are not
                shifted towards the cursor.
            </p>
        </section>
        <section role="ctlseq" id="decssdt"
                 mnemonic="DECSSDT" title="Select Status Line Type">
            <ctlseq>CSI <param-single/> $ -</ctlseq>
            <ctlseq>CSI <param-single/> $ ~</ctlseq>
            <ref src="070:1048"/>
            <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-~.1D0F"/>
            <ref src="vt340:203"/>
            <ref src="vt420:242"/>
            <ref src="vt510:DECSSDT.html"/>
            <ref src="vt52x:301"/>
            <termsupp first="vt320" series="vt" additional="vt330 vt340 vt420 vt510 tt"/>
            <p>You can query the current state of DECSSDT with
                <a href="#decrqss">DECRQSS</a></p>
            <p>
                When the status line is hidden (blank), the height of the
                terminal is increased by one line. When the status line is
                shown, the height of the terminal is decreased by one line. This
                differs in behavior from the VT520 which reserves space on the
                screen for the status line and just shows/hides it as required
                without changing the number of terminal lines.
            </p>
            <p>When switching from the Indicator status line to host writable,
                the <a href="#lcf">Last Column Flag</a> is cleared.
            </p>
            <p badges="k95">
                Instead of changing the height of the terminal when showing or
                hiding the status line, the K95 terminal type changes the height
                of the window keeping the number of terminal lines constant,
                matching the VT520s behavior.
            </p>

            <section role="parameter" id="decssdt-blank" title="Blank">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="070:1048"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-~:Ps-=-0.1E61"/>
                <ref src="vt420:242"/>
                <ref src="vt510:DECSSDT.html"/>
                <termsupp first="vt420" series="vt" additional="vt510"/>
                <p>No status line (default)</p>
            </section>
            <section role="parameter" id="decssdt-ind" title="Indicator">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="070:1048"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-~:Ps-=-1.1E62"/>
                <ref src="vt420:242"/>
                <ref src="vt510:DECSSDT.html"/>
                <termsupp first="vt420" series="vt" additional="vt510"/>
                <p>Indicator</p>
                <!-- TODO: Indicator is the default for xterm -->
            </section>
            <section role="parameter" id="decssdt-hw" title="Host-writable">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="070:1048"/>
                <ref src="xt:h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-$-~:Ps-=-2.1E63"/>
                <ref src="vt420:242"/>
                <ref src="vt510:DECSSDT.html"/>
                <termsupp first="vt420" series="vt" additional="vt510"/>
                <p>Host-writable - active status display can be set to the status line</p>
            </section>
        </section>

        <section role="ctlseq" id="decps" mnemonic="DECPS" title="Play Sound"
                 badges="vt520 k95">
            <ctlseq>CSI <param-single symbol="Pvolume"/> ;
                <param-single symbol="Pduration"/> ;
                <param-single symbol="Pnote"/> , ~</ctlseq>
            <ref src="vt52x:243"/>
            <termsupp first="vt510" series="vt" additional="wt"/>
            <p>
                Plays a sound using DirectSound if available, falling back to
                Windows MIDI and then the system beeper. Only available on
                Windows.
            </p>
            <p>
                <param-single symbol="Pvolume"/> sets the volume of the note
                to be played, from 0 (off) to 7 (high).
            </p>
            <p>
                <param-single symbol="Pduration"/> is how long the note should
                play. Units are 1/32 of a second.
            </p>
            <p>
                <param-single symbol="Pnote"/> is the note that should play.
                The VT520 only allows a single note to be specified, while the
                K95 terminal type as an extension allows one or more notes to be
                specified which will play in order with the specified volume and
                duration. Playback of notes is blocking. The available notes
                are:
            </p>
            <table>
                <tr>
                    <th><em>Pnote</em></th>
                    <th>Duration</th>
                    <th>Frequency (Hz)</th>
                </tr>
                <tr>
                    <td>1</td>
                    <td>C5</td>
                    <td>523</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>C#5</td>
                    <td>554</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>D5</td>
                    <td>587</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>D#5</td>
                    <td>622</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>E5</td>
                    <td>659</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>F5</td>
                    <td>698</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>F#5</td>
                    <td>740</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>G5</td>
                    <td>784</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>G#5</td>
                    <td>830</td>
                </tr>
                <tr>
                    <td>10</td>
                    <td>A5</td>
                    <td>880</td>
                </tr>
                <tr>
                    <td>11</td>
                    <td>A#5</td>
                    <td>932</td>
                </tr>
                <tr>
                    <td>12</td>
                    <td>B5</td>
                    <td>988</td>
                </tr>
                <tr>
                    <td>13</td>
                    <td>C6</td>
                    <td>1047</td>
                </tr>
                <tr>
                    <td>14</td>
                    <td>C#6</td>
                    <td>1109</td>
                </tr>
                <tr>
                    <td>15</td>
                    <td>D6</td>
                    <td>1175</td>
                </tr>
                <tr>
                    <td>16</td>
                    <td>D#6</td>
                    <td>1245</td>
                </tr>
                <tr>
                    <td>17</td>
                    <td>E6</td>
                    <td>1319</td>
                </tr>
                <tr>
                    <td>18</td>
                    <td>F6</td>
                    <td>1397</td>
                </tr>
                <tr>
                    <td>19</td>
                    <td>F#6</td>
                    <td>1479</td>
                </tr>
                <tr>
                    <td>20</td>
                    <td>G6</td>
                    <td>1568</td>
                </tr>
                <tr>
                    <td>21</td>
                    <td>G#6</td>
                    <td>1661</td>
                </tr>
                <tr>
                    <td>22</td>
                    <td>A6</td>
                    <td>1760</td>
                </tr>
                <tr>
                    <td>23</td>
                    <td>A#6</td>
                    <td>1865</td>
                </tr>
                <tr>
                    <td>24</td>
                    <td>B6</td>
                    <td>1976</td>
                </tr>
                <tr>
                    <td>25</td>
                    <td>C7</td>
                    <td>2093</td>
                </tr>
            </table>
        </section>

        <section role="ctlseq" id="msk-pm" mnemonic="MSKPROD"
                 title="Product Macro (MS-DOS Kermit)">
            <ctlseq>
                CSI &lt;
                <param-single/> ;
                <param-single/> ;
                <param-single/> ;
                <param-single/> ;
                <param-single/> ;
                <param-single/> ;
                <param-single/> ;
                <param-single/> ;
                <param-single/> ~
            </ctlseq>
            <ref src="msk:195"/>
            <ref src="k95:c7auto"/>
            <p>MS-DOS Kermit PRODUCT Macro: Runs the following Kermit command as though it
                were received as an APC:
                <tt>do product <param-single/> <param-single/> <param-single/>
                    <param-single/> <param-single/> <param-single/>
                    <param-single/> <param-single/> <param-single/></tt>
            </p>
        </section>
    </section>

    <section toc="true" role="text" id="s_osc"
             formats="html:document html:ctlseq-table html:term-ctlseqs html:todo"
             title="Operating System Commands">

        <section role="ctlseq" id="stp" title="Set Text Parameters">
            <ctlseq>OSC <param-single/> ; <param-text/> BEL</ctlseq>
            <ctlseq>OSC <param-single/> ; <param-text/> ST</ctlseq>
            <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST.E65"/>
            <termsupp first="vt520" series="vt" additional="tt"/>

            <p>Kermit 95 supports a selection of operating system commands for
                setting the window title and manipulating color handling. These
                can be terminated with either an <cc>ST</cc>
                (<tt><cc>OSC</cc> <param-single/> ; <param-text/> <cc>ST</cc></tt>)
                or, for compatibility with other terminal emulators, a <cc>BEL</cc>
                (<tt><cc>OSC</cc> <param-single/> ; <param-text/> <cc>BEL</cc></tt>). New
                applications should terminate OSCs with ST - terminating them
                with <cc>BEL</cc> is non-standard and can cause problems with terminals
                that don't understand this.
            </p>

            <p><param-single/> is usually <em>but not always</em> a number,
                and specifies the type of operation:</p>

            <section role="parameter" id="xt-wti"
                     title="Set Icon Name and Window Title (xterm)">
                <ctlseq><param-single/> = 0</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-0.FB7"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Sets the window title to the value supplied, up to 63 characters.</p>
            </section>
            <section role="parameter" id="osc-1" mnemonic=""
                     title="Change icon name" not-implemented="true">
                <ctlseq><param-single/> = 1</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1.FB8"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>
                    Not supported: Windows doesn't provide a way of setting a
                    value for the task bar label that is different from the
                    window title.
                </p>
            </section>
            <section role="parameter" id="xt-wt"
                     title="Window title (xterm)">
                <ctlseq><param-single/> = 2</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-2.FB9"/>
                <termsupp first="xterm" series="xt" additional="tt putty wt"/>
                <p>Sets the window title to the value supplied, up to 63 characters.</p>
            </section>
            <section role="parameter" id="osc-3" mnemonic=""
                     title="Set X property on top-level window"
                     not-implemented="true">
                <ctlseq><param-single/> = 3</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-3.FBA"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-4" mnemonic=""
                     title="Change color number">
                <ctlseq><param-single/> = 4 ; c ; spec</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-4;c;spec.123F"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <!-- PuTTY only implements the query part of OSC-4. It does not
                     support setting colors. As a result, its not listed above
                     as supporting this OSC. -->
                <p>
                    Changes the RGB value for one or more colors in the color
                    palette. Multiple <tt><param-single symbol="c"/> ; <param-single symbol="spec"/> </tt>
                    pairs can be supplied separated by ';' to change multiple
                    entries in the color palette. Only supported in GUI versions
                    of Kermit 95.
                </p>
                <p>
                    The <tt><param-single symbol="c"/></tt> component is the
                    color index to change. Valid values depend on which color
                    palette is currently active: 0-15 for aixterm-16, 0-87 for
                    xterm-88, and 0-255 for xterm-256. The first five values
                    above the range of the current palette (e.g., for the
                    xterm-256 palette: 256, 257, 258, 259, 260) set attribute
                    colors. See <a href="#osc-5">OSC-5</a> for more details.
                </p>
                <p>
                    The <tt><param-single symbol="spec"/></tt> component is a
                    color specification in the form supported by XParseColor.
                    Both the newer <tt>rgb:RRRR/GGGG/BBBB</tt> and older
                    <tt>#RRRRGGGGBBBB</tt> formats are supported, where R/G/B
                    are hex digits (case doesn't matter). X11 color names are
                    also accepted and parsed case-insensitively. For more
                    information on this color specification, see the XParseColor
                    man page, while a list of X11 color names and values can
                    be found <a href="https://en.wikipedia.org/wiki/X11_color_names">on Wikipedia</a>.
                    Other XParseColor formats such as <tt>rgbi:</tt>
                    and <tt>CIEuvY:</tt> are not currently supported.
                </p>
                <p>
                    If the <tt><param-single symbol="spec"/></tt> component is
                    a '?' character then instead of setting a color for the
                    specified color index, the current color is returned in the
                    form of an OSC sequence suitable for restoring the current
                    value. The returned OSC sequence uses the same terminator
                    (<cc>BEL</cc> or <cc>ST</cc>) as the original query OSC sequence.
                </p>
                <p>For example, <tt><cc>OSC</cc> 4 ; 1 ; ? <cc>ST</cc></tt> will cause K95 to
                    send back <tt><cc>OSC</cc> 4 ; 1 ; r g b : 0 0 0 0 / 0 0 0 0 / 8 0 8 0 <cc>ST</cc></tt>
                    for the default RGB value of 0/0/128 for color index 1.
                    If multiple query parameters are supplied (eg <tt><cc>OSC</cc> 4 ; 1 ; ? ; 2 ; ? ; 3 ; ? <cc>ST</cc></tt>
                    then multiple responses will be sent back.
                </p>
                <p>If a color was set by name rather than an RGB value, then
                    when queried that colors RGB value will be returned;
                    Kermit 95 does not remember the original color name used.
                </p>
                <p>
                    The VT525 <a href="#decctr">Color Table Request</a> is also
                    supported for querying the current color palette, and
                    <a href="#decrsts-2">DECRSTS</a> for restoring some or all
                    of the color palette.
                </p>
            </section>
            <section role="parameter" id="osc-5" mnemonic=""
                     title="Change special color number">
                <ctlseq><param-single/> = 5  ; c ; spec</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-5;c;spec.1240"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <p>
                    Changes the foreground color (background color for reverse)
                    of an attribute (<em>special color</em> in xterm),
                    equivalent to <tt>SET TERM COLOR</tt>. Has no visible
                    effect until that attribute is turned off (
                    <a href="#osc-6">OSC-6</a> or <tt>SET TERM ATTRIBUTE</tt>).
                    In the case of Bold and Blink, the attribute must be turned
                    off with <tt>SET TERM ATTRIBUTE {BOLD,BLINK} OFF COLOR</tt>
                    (OSC-6 does this). Changes are reverted on terminal reset
                    or via <a href="#osc-104">OSC-104</a>/<a href="#osc-105">OSC-105</a>.
                </p>
                <p>
                    Multiple c;spec pairs can be supplied in the same fashion
                    as <a href="#osc-4">OSC-4</a>, and the supported formats for
                    <em>spec</em> are the same. The attributes that can be set
                    are:
                </p>
                <ul>
                    <li>0 - bold</li>
                    <li>1 - underline</li>
                    <li>2 - blink</li>
                    <li>3 - reverse</li>
                    <li>4 - italic</li>
                </ul>
                <p>
                    These values can also be set via <a href="#osc-4">OSC-4</a>
                    by adding the above numbers to the maximum number of colors
                    in the current palette (as set by <tt>SET TERM COLOR PALETTE</tt>).
                    For example, if the current palette is xterm-256, then
                    <tt><cc>OSC</cc> 4 ; 257 ; r g b : f f f f / 0 0 0 0 / 0 0 0 0</tt>
                    would set the underline attribute to red.
                </p>
            </section>
            <section role="parameter" id="osc-6" mnemonic=""
                     title="Enable/disable special color number">
                <ctlseq><param-single/> = 6 ; c ; f</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-6;c;f.10FC"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>This is a synonym for <a href="#osc-106">OSC-106</a>
                    (OSC-6 and OSC-106 have identical implementations).
                </p>
            </section>

            <section role="parameter" id="osc-7" mnemonic=""
                     title="Inform current working directory" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 7 ; ...</ctlseq>
                <!-- More info:
                https://github.com/davidrg/ckwin/issues/413
                https://gitlab.freedesktop.org/terminal-wg/specifications/-/issues/20 -->
            </section>
            <section role="parameter" id="osc-8" mnemonic=""
                     title="Hyperlink" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 8 ; params ; URI</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
                <!-- More info:
                https://github.com/davidrg/ckwin/issues/123
                https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
                https://github.com/Alhadis/OSC8-Adoption -->
            </section>

            <section role="parameter" id="osc-9" mnemonic=""
                     title="ConEMU" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 9 ; Ps ; Ps</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
                <!-- More info:
                    https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC
                    Also mentioned in: https://github.com/davidrg/ckwin/issues/413

                    Some of these features are a security risk. Like:
                    Ps = 7 ; cmd - should only be if APC is set to unsafe

                    Others are probably fine:
                    Ps = 4 ; st ; pr - set progress on taskbar icon
                        This is implemented by Windows Terminal and a few others
                        these days too
                    Ps = 9 ; cwd - inform terminal about shell working directory
                        Same idea as to OSC-7?

                    Windows Terminal supports only 4, 9 and 12
                -->
            </section>

            <section role="group" style="group">
            <section role="parameter" id="osc-10" mnemonic=""
                     title="Change VT100 text foreground color">
                <ctlseq><param-single/> = 10</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-0.1015"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>Requires one parameter: a new default foreground color, which
                    does not take effect until attributes are set (eg, with
                    <a href="#sgr-0">SGR-0</a>) and is reset on terminal reset.
                    Format of the color parameter is the same color spec format
                    as <a href="#osc-4">OSC-4</a> (rgb:RRRR/BBBB/GGGG), and if
                    the text parameter is a `?` then the response will be an OSC-10
                    sequence to set the current color.</p>
                <p>Up to nine additional color parameters can be supplied which
                    will be applied to OSC-11 through OSC-19 in order. For
                    example, the sequence
                    <tt>\033]10;rgb:ffff/0000/0000;rgb:0000/ffff/0000\07</tt>
                    would set the foreground to red and background to green.
                    If any of these parameters are `?`, they will be included in
                    the query color response.
                </p>
            </section>
            <section role="parameter" id="osc-11" mnemonic=""
                     title="Change VT100 text background color">
                <ctlseq><param-single/> = 11</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1.1016"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>Requires one parameter: a new default background color, which
                    does not take effect until attributes are set (e.g., with
                    <a href="#sgr-0">SGR-0</a>) and is reset on terminal reset.
                    Format of the color parameter is the same color spec format
                    as <a href="#osc-4">OSC-4</a> (rgb:RRRR/BBBB/GGGG), and if
                    the text parameter is a `?` then the response will be an OSC-11
                    sequence to set the current color.</p>
                <p>Up to eight additional color parameters can be supplied which
                    will be applied to OSC-12 through OSC-19 in order.
                </p>
            </section>
            <section role="parameter" id="osc-12" mnemonic=""
                     title="Change text cursor color">
                <ctlseq><param-single/> = 12</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-2.1017"/>
                <termsupp first="xterm" series="xt" additional="wt"/>
                <p>Requires one parameter: a new text cursor background color,
                    which takes effect immediately and is reset on terminal reset.
                    Format of the color parameter is the same color spec format
                    as <a href="#osc-4">OSC-4</a> (rgb:RRRR/BBBB/GGGG), and if
                    the text parameter is a `?` then the response will be an OSC-12
                    sequence to set the current color.</p>
                <p>Up to seven additional color parameters can be supplied which
                    will be applied to OSC-13 through OSC-19 in order.
                </p>
            </section>
            <section role="parameter" id="osc-13" mnemonic=""
                     title="Change pointer foreground color"
                     not-implemented="true">
                <ctlseq><param-single/> = 13</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-3.1018"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>Not supported. Consumes one color parameter in the same color
                    spec format as <a href="#osc-4">OSC-4</a>
                    (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as
                    K95 does not support changing the pointer color.
                </p>
                <p>Up to six additional color parameters can be supplied which
                    will be applied to OSC-14 through OSC-19 in order.
                </p>
            </section>
            <section role="parameter" id="osc-14" mnemonic=""
                     title="Change pointer background color"
                     not-implemented="true">
                <ctlseq><param-single/> = 14</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-4.1019"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>Not supported. Consumes one color parameter in the same color
                    spec format as <a href="#osc-4">OSC-4</a>
                    (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as
                    K95 does not support changing the pointer color.
                </p>
                <p>Up to five additional color parameters can be supplied which
                    will be applied to OSC-15 through OSC-19 in order.
                </p>
            </section>
            <section role="parameter" id="osc-15" mnemonic=""
                     title="Change tektronix foreground color"
                     not-implemented="true">
                <ctlseq><param-single/> = 15</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-5.101A"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <p>Not supported. Consumes one color parameter in the same color
                    spec format as <a href="#osc-4">OSC-4</a>
                    (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as
                    K95 does not support Tektronix emulation.
                </p>
                <p>Up to four additional color parameters can be supplied which
                    will be applied to OSC-16 through OSC-19 in order.
                </p>
            </section>
            <section role="parameter" id="osc-16" mnemonic=""
                     title="Change tektronix background color"
                     not-implemented="true">
                <ctlseq><param-single/> = 16</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-6.101B"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <p>Not supported. Consumes one color parameter in the same color
                    spec format as <a href="#osc-4">OSC-4</a>
                    (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as
                    K95 does not support Tektronix emulation.
                </p>
                <p>Up to three additional color parameters can be supplied which
                    will be applied to OSC-17 through OSC-19 in order.
                </p>
            </section>
            <section role="parameter" id="osc-17" mnemonic=""
                     title="Change highlight background color">
                <ctlseq><param-single/> = 17</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-7.101C"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>Sets the selection background color. Reset on terminal reset.</p>
                <p>Requires one parameter: a new text selection background color,
                    which is reset on terminal reset. Format of the color
                    parameter is the same color spec format as <a href="#osc-4">OSC-4</a>
                    (rgb:RRRR/BBBB/GGGG), and if
                    the text parameter is a `?` then the response will be an OSC-17
                    sequence to set the current color.</p>

                <p>Up to two additional color parameters can be supplied which
                    will be applied to OSC-18 and OSC-19 in order.
                </p>
            </section>
            <section role="parameter" id="osc-18" mnemonic=""
                     title="Change tektronix cursor color"
                     not-implemented="true">
                <ctlseq><param-single/> = 18</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-8.101D"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>Not supported. Consumes one color parameter in the same color
                    spec format as <a href="#osc-4">OSC-4</a>
                    (rgb:RRRR/BBBB/GGGG), but does not apply it to anything as
                    K95 does not support Tektronix emulation.
                </p>
                <p>One additional color parameters can be supplied which
                    will be applied to OSC-19 in order.
                </p>
            </section>
            <section role="parameter" id="osc-19" mnemonic=""
                     title="Change highlight foreground color">
                <ctlseq><param-single/> = 19</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-9.101E"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <p>Requires one parameter: a new text selection foreground color,
                    which is reset on terminal reset. Format of the color
                    parameter is the same color spec format as <a href="#osc-4">OSC-4</a>
                    (rgb:RRRR/BBBB/GGGG), and if
                    the text parameter is a `?` then the response will be an OSC-19
                    sequence to set the current color.</p>
            </section>
            </section>
            <!-- OSC-20 - not used? -->
            <section role="parameter" id="decswt" mnemonic="DECSWT" title="Set Window Title">
                <ctlseq><param-single/> = 21</ctlseq>
                <ref src="vt52x:310"/>
                <ref src="vws:101"/>
                <termsupp first="vws" series="vt" additional="vt520 putty wt"/>
                <p>Sets the window title to the value supplied, up to 63
                    characters.</p>
                <p>The VWS documentation gives the mnemonic for this OSC as
                    VTESTB.</p>
            </section>
            <section role="parameter" mnemonic="VTESTI"
                     title="Shrink to Icon" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 22 ;
                    <param-single symbol="Pos"/> ;
                    <param-single symbol="Text"/> </ctlseq>
                <ref src="vws:101"/>
            </section>
            <section role="parameter" id="osc-22" mnemonic=""
                     title="Change pointer cursor shape"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 22</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-2-2.1018"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" mnemonic="VTEEFI"
                     title="Expand from Icon" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 23 ; <param-single symbol="Pos"/> </ctlseq>
                <ref src="vws:102"/>
            </section>
            <section role="parameter" mnemonic="VTEMTW" todo="true"
                     title="Move Terminal Window" not-implemented="true">
                <ctlseq><param-single/> = 24 ; <param-single symbol="Pos"/></ctlseq>
                <ref src="vws:102"/>
            </section>
            <section role="parameter" mnemonic="VTEMTI" todo="true"
                     title="Move Terminal Icon" not-implemented="true">
                <ctlseq><param-single/> = 25 ; <param-single symbol="Pos"/></ctlseq>
                <ref src="vws:102"/>
            </section>
            <section role="parameter" mnemonic="VTEDCONK" todo="true"
                     title="Disconnect Keyboard" not-implemented="true">
                <ctlseq><param-single/> = 26</ctlseq>
                <ref src="vws:103"/>
            </section>
            <section role="parameter" mnemonic="VTEDK" todo="true"
                     title="Disable Keyboard" not-implemented="true">
                <ctlseq><param-single/> = 27</ctlseq>
                <ref src="vws:103"/>
            </section>
            <section role="parameter" mnemonic="VTEEK" todo="true"
                     title="Enable Keyboard" not-implemented="true">
                <ctlseq><param-single/> = 28</ctlseq>
                <ref src="vws:103"/>
            </section>
            <section role="parameter" mnemonic="VTEPUSH" todo="true"
                     title="Push Terminal" not-implemented="true">
                <ctlseq><param-single/> = 29</ctlseq>
                <ref src="vws:103"/>
            </section>
            <section role="parameter" mnemonic="VTEPOP" todo="true"
                     title="Pop Terminal" not-implemented="true">
                <ctlseq><param-single/> = 2A</ctlseq>
                <ref src="vws:104"/>
            </section>
            <section role="parameter" mnemonic="VTEDMI" todo="true"
                     title="Disable Menu Item" not-implemented="true">
                <ctlseq><param-single/> = 2B ; <param-single symbol="Item"/> </ctlseq>
                <ref src="vws:104"/>
            </section>
            <section role="parameter" mnemonic="VTEEMI" todo="true"
                     title="Enable a Window Options Menu Item"
                     not-implemented="true">
                <ctlseq><param-single/> = 2C ; <param-single symbol="Item"/> </ctlseq>
                <ref src="vws:104"/>
            </section>
            <section role="parameter" mnemonic="VTECMS" todo="true"
                     title="Change the Size of the Multi-Scroll Feature"
                     not-implemented="true">
                <ctlseq><param-single/> = 2D ; <param-single symbol="Size"/> </ctlseq>
                <ref src="vws:105"/>
            </section>
            <section role="parameter" mnemonic="VTEEWR" todo="true"
                     title="Enable Window Event Reports"
                     not-implemented="true">
                <ctlseq><param-single/> = 2E ; <param-single symbol="Size"/> </ctlseq>
                <ref src="vws:106"/>
                <p>
                    The VWS documentation gives this the "function code" as AI
                    both in the table of OSCs and in the section describing
                    VTEEWR, while the VTEEWR example gives the OSC as "2E".
                    It is not clear which is correct; the true behavior
                    probably needs to be confirmed via testing against VWS.
                </p>
                <p>
                    Reports generated by this feature are OSC-2R.
                </p>
            </section>
            <section role="parameter" mnemonic="VTECTF" todo="true"
                     title="Redraw Window with New Font or Size"
                     not-implemented="true">
                <ctlseq><param-single/> = 2F ;
                    <param-single symbol="Size"/> ;
                    <param-single symbol="Spacing"/> ;
                    <param-single symbol="FamilyName"/></ctlseq>
                <ref src="vws:106"/>
            </section>
            <!--
              2G - ?   \
              2H - ?    \
              2I - ?     +- These not used? Or just not documented on the web?
              2J - ?    /
              2K - ?   /
              2R - VTEEWR Window report (sent by terminal to host)
            -->
            <!-- 2L isn't documented in the VWS documentation, but perhaps
             it was given the Function Code 'L' because G-R were already used
             by something?
            -->
            <section role="parameter" not-implemented="true" id="decsin"
                     mnemonic="DECSIN" title="Set Icon Title">
                <ctlseq><param-single/> = 2L</ctlseq>

                <ref src="vt52x:288"/>
                <termsupp first="vt520" series="vt" additional="tt"/>
                <p>Set Icon Title (VT520)</p>
                <p>Not supported: Windows doesn't provide a way of setting a
                    value for the task bar label that is different from the
                    window title.</p>
            </section>
            <section role="parameter" id="osc-46" mnemonic=""
                     title="Change log file"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 46</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-4-6.101E"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-50" mnemonic=""
                     title="Set font"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 50</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-5-0.1019"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-51" mnemonic=""
                     title="Reserved for emacs shell"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 51</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-5-1.101A"/>
                <p>
                    Reserved for Emacs Shell in January 2000 for a similar
                    purpose to OSC-7 that was never implemented. Not
                    <em>known</em> to be in use anywhere.
                </p>
                <!-- Reserved, but possibly never actually used?
                    https://www.reddit.com/r/emacs/comments/7rxv6d/comment/lpigict/ -->
            </section>
            <section role="parameter" id="osc-52" mnemonic=""
                     title="Manipulate selection (clipboard) data">
                <ctlseq><param-single/> = 52 ; Pc ; Pd</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-5-2.101B"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <!-- Windows Terminal only supports setting the clipboard -->
                <p>
                    The first parameter, <param-single symbol="Pc"/>, specifies
                    which of xterms buffers are being manipulated. One or more
                    of the following can be specified: c p q s 0 1 2 3 4 5 6 7
                </p>
                <p>
                    As Windows and OS/2 only have the clipboard, Kermit 95
                    validates the first parameter but otherwise ignores it.
                    As the first parameter is optional, no value needs to be
                    supplied for it.
                </p>
                <p>
                    The second parameter, <param-single symbol="Pd"/>, is the
                    new base64-encoded <em>text</em> to place in the clipboard.
                    The text (before being base64 encoded) is assumed to be in
                    the same character set as current remote character set.
                    Kermit 95 will attempt to convert it to the local codepage
                    if Unicode is disabled or Kermit 95 is running on a version
                    of Windows that does not support Unicode (Windows 95/98/ME).
                    Kermit 95 does not attempt to convert the character
                    encoding.
                </p>
                <p>
                    If, rather than a base64-encoded string, the second
                    parameter is the question-mark character (?), Kermit 95 will
                    convert the current clipboard data to the remote character
                    set, base64 encode it, and return it in the form:
                    <tt><cc>OSC</cc> 52 ;; Pd <cc>ST</cc></tt>
                </p>
                <p>
                    By default, aside from producing a notification in K95G on
                    Windows 2000 or newer Kermit 95 ignores OSC-52 unless the
                    user has chosen to enable it. Read and Write can be enabled
                    individually via the <tt>SET TERMINAL CLIPBOARD-ACCESS</tt>
                    command.
                </p>
            </section>
            <section role="parameter" id="osc-60" mnemonic="XTQALLOWED"
                     title="Query allowed features"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 60</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-6-0.101A"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-61" mnemonic="XTQDISALLOWED"
                     title="Query disallowed features"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 61</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-6-1.101B"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-62" mnemonic="XTQALLOWABLE"
                     title="Query allowable features"
                     not-implemented="true" todo="true">
                <ctlseq><param-single/> = 62</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-6-2.101C"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-104" mnemonic=""
                     title="Reset color number">
                <ctlseq><param-single/> = 104 ; c</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-0-4;c.1114"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
                <p>
                    Resets one or more colors in the color palette to defaults
                    or values specified by the user via <tt>SET GUI RGBCOLOR</tt>.
                    Multiple color numbers can be specified separated by ';'
                    (e.g., <tt><cc>OSC</cc> 1 0 4 ; 1 ; 2 ; 3 <cc>ST</cc></tt>).  Only supported in
                    GUI versions of Kermit 95.
                </p>
                <p>
                    If no parameters are given (eg, <tt><cc>OSC</cc> 104 <cc>ST</cc></tt>), then
                    the entire color palette is reset.
                </p>
                <p>
                    The first five color numbers above the range of the current
                    palette allow resetting attribute colors in the same way
                    <a href="#osc-4">OSC-4</a> allows setting attribute colors.
                    OSC-104 will not reset all attribute colors in the absence
                    of any parameters however; for that OSC-105 must be used.
                </p>
            </section>
            <section role="parameter" id="osc-105" mnemonic=""
                     title="Reset special color number">
                <ctlseq><param-single/> = 105 ; c</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-0-5;c.1115"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
                <p>
                    Resets one or more attribute colors (<em>special colors</em>
                    in xterm) to their default/user set values. Any number of
                    colors can be specified using the same numberas as for
                    <a href="#osc-5">OSC-5</a>. If none are specified, all
                    attribute colors are reset.
                </p>
            </section>
            <section role="parameter" id="osc-106" mnemonic=""
                     title="Enable/disable special color number">
                <ctlseq><param-single/> = 106 ; c ; f</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-0-6;c;f.11B7"/>
                <termsupp first="xterm" series="xt" additional=""/>
                <p>
                    Enables rendering attributes as color (<em>special color</em>
                    in xterm)—equivalent to <tt>SET TERM ATTRIBUTE x OFF</tt>
                    or, in the case of blink and bold,
                    <tt>SET TERM ATTRIBUTE {BLINK,BOLD} OFF COLOR</tt>.</p>
                <p>
                    The <em>c</em> parameter is the attribute to enable or disable,
                    and the second parameter, <em>f</em> is if it should be
                    disabled (0) or enabled and shown as color (any other value):
                </p>
                <ul>
                    <li>0 - bold</li>
                    <li>1 - underline</li>
                    <li>2 - blink</li>
                    <li>3 - reverse</li>
                    <li>4 - italic</li>
                    <li>5 - colorAttMode</li>
                </ul>
                <p>
                    The colorAttMode (off by default in xterm, on by default in
                    Kermit 95) controls whether attribute colors (when enabled)
                    take priority over SGR colors. When OFF, only text that has
                    the same color as the default attribute (settable with
                    <a href="#decac">DECAC</a>, <a href="#snf">SNF</a>,
                    <a href="#snb">SNB</a>, <a href="#osc-10">OSC-10/11</a>, etc.)
                    will show in its attribute color. When ON, it will show in
                    its attribute color regardless of whether some other SGR color
                    was assigned to that text.
                </p>
            </section>
            <section role="group" style="group">
            <section role="parameter" id="osc-110" mnemonic=""
                     title="Reset VT100 text foreground color">
                <ctlseq><param-single/> = 110</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-0.1073"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
            </section>
            <section role="parameter" id="osc-111" mnemonic=""
                     title="Reset VT100 text background color">
                <ctlseq><param-single/> = 111</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-1.1074"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
            </section>
            <section role="parameter" id="osc-112" mnemonic=""
                     title="Reset text cursor color">
                <ctlseq><param-single/> = 112</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-2.1075"/>
                <termsupp first="xterm" series="xt" additional="wt"/>
            </section>
            <section role="parameter" id="osc-113" mnemonic=""
                     title="Reset pointer foreground color"
                     not-implemented="true">
                <ctlseq><param-single/> = 113</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-3.1076"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-114" mnemonic=""
                     title="Reset pointer background color"
                     not-implemented="true">
                <ctlseq><param-single/> = 114</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-4.1077"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-115" mnemonic=""
                     title="Reset tektronix foreground color"
                     not-implemented="true">
                <ctlseq><param-single/> = 115</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-5.1078"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
            </section>
            <section role="parameter" id="osc-116" mnemonic=""
                     title="Reset Tektronix background color"
                     not-implemented="true">
                <ctlseq><param-single/> = 116</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-6.1079"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
            </section>
            <section role="parameter" id="osc-117" mnemonic=""
                     title="Reset highlight color">
                <ctlseq><param-single/> = 117</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-7.107A"/>
                <termsupp first="xterm" series="xt" additional="tt wt"/>
            </section>
            <section role="parameter" id="osc-118" mnemonic=""
                     title="Reset tektronix cursor color"
                     not-implemented="true">
                <ctlseq><param-single/> = 118</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-8.107B"/>
                <termsupp first="xterm" series="xt" additional=""/>
            </section>
            <section role="parameter" id="osc-119" mnemonic=""
                     title="Reset highlight foreground">
                <ctlseq><param-single/> = 119</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-1-1-9.107C"/>
                <termsupp first="xterm" series="xt" additional="tt"/>
            </section>
            </section>
            <section role="parameter" id="osc-133" mnemonic=""
                     title="FinalTerm Shell Integration" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 133 ; ...</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
                <!--
                    Some info here - iTerm2 suggests it might come from FinalTerm?
                    https://iterm2.com/3.0/documentation-escape-codes.html
                    Konsole implements it too:
                    https://docs.kde.org/stable5/en/konsole/konsole/semantic-shell-integration.html

                    Windows Terminal implements "mark a line as a prompt line" only.
                -->
            </section>

            <section role="parameter" id="osc-633" mnemonic=""
                     title="VSCode Integration" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 663 ; ...</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
                <!--
                    Shell completion stuff?
                -->
            </section>

            <section role="parameter" id="osc-777" mnemonic=""
                     title="Send Notification" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 777 ; ...</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
                <!--
                    Not sure where this comes from originally, but Windows
                    Terminal implemented it in commit
                    93bdbfaa3d62304f4b50b4ca4484da4dd08e4a1f.

                    Format is: OSC 777 ; notify ; title ; body ST
                -->
            </section>

            <section role="parameter" id="osc-1337" mnemonic=""
                     title="iTerm2" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 1337 ; ...</ctlseq>
                <!-- Various iTerm2 operations. We could *probably* support some
                        https://iterm2.com/3.0/documentation-escape-codes.html
                     Windows Terminal only currently implements SetMark
                  -->
            </section>

            <section role="parameter" id="osc-9001" mnemonic=""
                     title="Windows Terminal Command" not-implemented="true" todo="true">
                <ctlseq><param-single/> = 663 ; ...</ctlseq>
                <termsupp first="wt" series="wt" additional=""/>
                <!--
                    Shells can report command-not-found errors via this, which
                    Windows Terminal uses to search WinGet for a package that
                    implements that command.
                -->
            </section>

            <section role="parameter" id="osc-I" mnemonic=""
                     title="Set icon to file"
                     not-implemented="true">
                <ctlseq><param-single/> = I ; c</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-I;c.106E"/>
                <termsupp first="dtterm" series="xt" additional="xterm"/>
                <p>Not supported as the specified icon file specification is
                    likely to reside on a remote host which K95 has no reasonable
                    way of accessing.<!-- This comes from Sun terminal emulator, likely
                    shelltool. -->
                </p>
            </section>
            <section role="parameter" id="osc-l" mnemonic=""
                     title="set Window title">
                <ctlseq><param-single/> = l ; c</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-l;c.1091"/>
                <termsupp first="dtterm" series="xt" additional="xterm"/>
                <p>Sets the window title to the value supplied, up to 63
                    characters. <!-- This comes from Sun terminal emulator, likely
                    shelltool. --></p>
            </section>
            <section role="parameter" id="osc-L" mnemonic=""
                     title="set icon label"
                     not-implemented="true">
                <ctlseq><param-single/> = L ; c</ctlseq>
                <ref src="xt:h4-Operating-System-Commands:OSC-Ps;Pt-ST:Ps-=-L;c.1071"/>
                <termsupp first="dtterm" series="xt" additional="xterm"/>
                <p>Not supported: Windows doesn't provide a way of setting a
                value for the task bar label that is different from the
                window title.<!-- This comes from Sun terminal emulator, likely
                    shelltool. --></p>
            </section>
            <section role="parameter" id="osc-R" mnemonic=""
                     title="Reset palette (linux)" badges="linux">
                <termsupp first="linux" series="linux" additional="putty"/>
                <ctlseq><param-single/> = R</ctlseq>
                <p>
                    This OSC <em>is not terminated!</em> At all! The OSC is,
                    verbatim, <tt><cc>OSC</cc> R</tt>. No <cc>ST</cc> or <cc>BEL</cc> to terminate! For
                    this reason its limited to the linux terminal type.
                </p>
                <p>
                    In GUI versions of Kermit 95, this resets all color palettes
                    to defaults or values specified by the user via
                    <tt>SET GUI RGBCOLOR</tt>. In console versions, this OSC
                    is not acted upon.
                </p>
            </section>
            <section role="parameter" id="osc-P" mnemonic=""
                     title="Set palette (linux)" badges="linux">
                <termsupp first="linux" series="linux" additional="putty"/>
                <ctlseq><param-single/> = P nrrggbb</ctlseq>
                <p>
                    This OSC <em>is not terminated!</em> At all!
                    No <cc>ST</cc> or <cc>BEL</cc> to terminate! For this reason its limited to
                    the linux terminal type.
                </p>
                <p>
                    In GUI versions of Kermit 95, this sets the RGB value for
                    color index <em>n</em> (0–15 in hex) to the RGB value
                    <em>rrggbb</em> (0–255 in hex). In console versions of
                    Kermit 95, this OSC is not acted upon.
                </p>
            </section>
            <section role="parameter" id="osc-W" mnemonic=""
                     title="Set Wordness?" badges="putty"
                     not-implemented="true" todo="true">
                <termsupp first="putty" series="putty" additional=""/>
                <ctlseq><param-single/> = W ...</ctlseq>
                <p>
                    PuTTY extension for doing things to its "wordness" array?
                    "The wordness array is mainly for deciding the disposition of the
                     US-ASCII characters."
                </p>
            </section>
        </section>
    </section>
    <section toc="true" role="text" id="s_pm" formats="html:document"
             title="Privacy Message">
        <p>Kermit 95 does not implement any privacy message functions</p>
    </section>

    </section> <!-- END of ANSI-compatible, VT52 and H19 emulations -->

    <section toc="true" role="text" id="color" formats="html:document"
             title="Color Support in Kermit 95">
        <p>
            Prior to Kermit 95 v3.0 beta.8, Kermit 95 was limited to 16 colors
            (the 8 standard ANSI colors, plus the additional 8 "intense" colors
            from aixterm). Kermit 95 now supports being built with
            multiple distinct color palettes and 24-bit RGB support:
        </p>
        <ul>
            <li><b>aixterm-16</b> - The aixterm 16-color palette (eight standard
                ANSI colors plus their intense variants)</li>
            <li><b>vt525</b> - The VT525 16-color palette</li>
            <li><b>vt525-mono</b> - The
                <a href="#decstglt-0">VT525 Monochrome mode</a></li>
            <li><b>vt525-alternate</b> - Special
                <a href="#decstglt-2">VT525 Alternate Color mode</a>
            </li>
            <li><b>xterm-88</b> - Xterms 88-color palette</li>
            <li><b>xterm-256</b> - Xterms 256-color palette</li>
            <li><b>xterm-rgb</b> - Xterms 256-color palette, with direct RGB color support enabled</li>
        </ul>

        <p> The first 16 colors are equivalent in each palette except for the
            VT525 palettes. You can change the currently active color palette
            via the <tt>SET TERM COLOR PALETTE</tt> command. This setting is
            primarily for the GUI version of K95 and affects:
        </p>
        <ul>
            <li>How the terminal is rendered</li>
            <li>The range of color indexes available for customization via
                <a href="#osc-4">OSC-4</a></li>
            <li>The range of color indexes that can be set via
                <a href="#sgr-38-ic">SGR-38</a> and <a href="#sgr-48-ic">SGR-48</a>
            </li>
        </ul>
        <p>
            As Kermit 95 does not store a palette ID alongside each color attribute
            (this would waste too much RAM), changing the active color palette has
            an immediate effect on the current contents of the terminal and the
            scroll-back buffer. Switching from a larger palette to a smaller one
            mid-session will result in incorrect colors being displayed. As this
            is just a rendering setting, switching back to the previous palette will
            immediately restore correct color for the terminal screen and scrollback
            buffer.
        </p>

        <p>
            The color related build options primarily affect the size of the
            data structure used for storing color information for each cell in the
            terminal buffer:
        </p>
        <ul>
            <li>8-bits (2x4-bit colors: 16 color palette only)</li>
            <li>16-bits (2x8-bit colors: 16-color, 88-color and 256-color palettes)</li>
            <li>56-bits (8-bits for flags, and two 24-bit colors which can each store either a
                24-bit RGB value, or an 8-bit color (as above) in the blue channel).</li>
        </ul>

        <section id="rgbcolor" title="24-bit RGB support" role="text">
            <p>
                If Kermit 95 was not compiled with 24-bit RGB support, or the current
                color palette is not one with RGB support (something other than
                <tt>xterm-rgb</tt>), Kermit 95 uses color quantization to select
                the nearest color in the current color palette to 24bit RGB colors
                set via <a href="#sgr-38-ic">SGR-38</a> and <a href="#sgr-48-ic">SGR-48</a>.
                That palette color is then stored, rather than the RGB value.
            </p>
            <p>
                As Kermit 95 uses the same data structure for storing
                attributes-as-colors (special colors in xterm) as it does for
                storing color attributes in the terminal buffer, Kermit 95 only
                supports <a href="#osc-5">OSC-5</a> (Change special color number)
                when built with 24-bit RGB support as OSC-5 does not support
                setting color indexes, only RGB values.
            </p>
            <p>
                To help applications on the remote host detect 24-bit color support,
                Kermit 95 will automatically set the <tt>COLORTERM</tt> environment
                variable to <tt>truecolor</tt> on the remote host when making a
                telnet or SSH connection. In the unlikely event this behavior causes
                problems, it can be disabled for telnet connections with
                <tt>SET TELNET SEND-COLORTERM OFF</tt>. For SSH connections there
                is no disable option as SSH servers will usually reject this
                environment variable by default unless its added to <tt>AcceptEnv</tt>
                in <tt>/etc/ssh/sshd_config</tt>
            </p>
        </section>

        <section id="customcolor" title="Customising the Color Palette" role="text">
            <p>
                GUI versions of Kermit 95 keep <em>two</em> copies of each color
                palette in memory: the active copy, and the saved copy. When
                Kermit 95 is launched, both copies contain the same data. At any time,
                you can change the RGB value in both copies of the <em>current</em>
                color palette with the <tt>SET GUI RGBCOLOR</tt> command, and
                the <em>active</em> copy of the current color palette only with
                <a href="#osc-4">OSC-4</a> or (for the linux terminal type)
                <a href="#osc-P">OSC-P</a>.
            </p>
            <p>
                When the terminal is reset, the active copies of all color palettes
                are overwritten by their saved copies. This results in changes
                made via <a href="#osc-4">OSC-4</a> being undone without
                affecting changes made via <tt>SET GUI RGBCOLOR</tt>.
            </p>
            <p>
                As <tt>SET GUI RGBCOLOR</tt> and <a href="#osc-4">OSC-4</a> only
                affect the <em>current</em> palette, if you make a change while
                the <tt>aixterm-16</tt> palette is selected you only made a change
                to the definition of the <tt>aixterm-16</tt> palette specifically.
                If you switch to the <tt>xterm-256</tt> palette, your change will
                not be visible until you switch back to the <tt>aixterm-16</tt> palette.
            </p>
        </section>
        <section id="consolecolor" title="Color in Console versions of Kermit 95" role="text">
            <p>
                Console builds of Kermit 95 (or custom 16-color builds of GUI Kermit 95)
                only support 16 colors max. This is a limitation in the OS/2 VIO Window,
                and the Windows NT/9x console host prior to Windows 10 v1809. This is
                stored as a pair of 4-bit values packed into an 8-bit integer.
            </p>
            <p>
                Console versions of Kermit 95 have no control over the appearance
                of these 16 colors; that is up to the console environment K95 is
                running under. Because of this, console builds of K95 do not support
                customizing the color palette via <a href="#osc-4">OSC-4</a> or
                <tt>SET GUI RGBCOLOR</tt>.
            </p>
            <p>
                To retain compatibility with software blindly expecting 256-color or
                24-bit RGB color support, 16-color versions of Kermit 95 still
                support the <tt>SET TERM COLOR PALETTE</tt> command and implements
                <a href="#sgr-38-ic">SGR-38</a> and <a href="#sgr-48-ic">SGR-48</a>.
                When the host tries to set a color via SGR-38 or SGR-48, that
                request is translated into something valid for the aixterm-16
                color palette.
            </p>
            <p>
                If a color index was specified for SGR-38 or SGR-48, then the
                RGB value for that color is looked up in the current color
                palette, then the aixterm-16 palette is searched for the
                nearest match to that RGB value. If a 24bit RGB value was
                specified for SGR-38 or SGR-48, then the aixterm-16 palette is
                searched for the nearest match to that RGB value.
            </p>
            <p>
                Once the nearest match in the aixterm-16 palette is found, that
                color index is then stored <em>rather than the supplied index
                or RGB value</em>. To not waste memory storing color indexes
                the console environment can't actually display, 16-color builds
                of K95 only have 4 bits each for the foreground and background
                colors, making them incapable of actually storing color indexes
                above 16 or per-cell RGB values.
            </p>
        </section>
    </section>
    <section toc="true" role="text" id="paging" formats="html:document"
             title="Paging">
        <p>
            Starting with version 3.0 beta 8 Kermit 95 includes full support for
            both Paging as found on the VT330 and up, and XTerms Alternate
            Screen mode.
        </p>
        <section role="text" id="vtpaging" title="VT Paging"
            groups="isvt330 isvt420">
            <p>
                DEC terminals starting with the VT330 included support for
                multiple pages which the cursor and display could be moved
                between independently. When Kermit 95 is emulating one of these
                terminals, or when it is set to its "self" personality (the K95
                terminal type) it provides compatible paging support.
            </p>
            <p>
                As Kermit 95 does not currently emulate any DEC terminals that
                supported paging, paging features are <em>temporarily</em>
                available via the VT320 emulation. When a VT420 emulation is
                eventually added to Kermit 95, paging will no longer be
                available on the VT320 emulation.
            </p>
            <p>
                Terminals supporting scrollback (called <em>Review previous
                lines</em> on the VT520) only supported either scrollback or
                multiple pages, not both - Kermit 95 does not enforce this
                restriction in its emulation. The first page always has
                scrollback (unless you turn it off), while subsequent pages are
                only the size of the window (the scrollbar and scrolling KVerbs
                are disabled).
            </p>

            <p>
                To move the cursor to another page, you can use one of the
                following control sequences:
            </p>
            <ul>
                <li><a href="#np">NP</a> - Move forward to another page and home the cursor</li>
                <li><a href="#pp">PP</a> - Move backward to another page and home the cursor</li>
                <li><a href="#ppa">PPA</a> - Move to a specific page</li>
                <li><a href="#ppr">PPR</a> - Move forward to another page</li>
                <li><a href="#ppb">PPB</a> - Move backward to another page</li>
                <li><a href="#decrc">DECRC</a> - Moves the cursor to the page
                    it was on when the cursor was last saved with
                    <a href="#decsc">DECSC</a></li>
            </ul>
            <p>
                In all cases trying to move beyond the first or last page will
                put the cursor on the first or last page.
            </p>

            <p>
                The page the cursor is currently on can be requested with an
                <a href="#dsr-decxcpr">Extended Cursor Position Report</a>, and
                you can find out which page is currently being displayed with
                <em>Request Displayed Extent</em> (<a href="#decrqde">DECRQDE</a>)
            </p>

            <p>
                If <em>Page Cursor Coupling</em> (<a href="#decpccm">PCCM</a>) is
                enabled (the default), when the cursor moves to another page the
                display will also move to that page. If you want to be able to
                make changes to the content of a page without the user seeing,
                you can turn PCCM off before moving the cursor. When you turn
                PCCM back on, the display will automatically move to the page
                with the cursor on.
            </p>
            <p>
                You can also use <a href="#deccra">DECCRA</a> to copy characters
                and attributes between pages allowing the screen to be quickly
                updated with pre-prepared content, and
                <a href="#decrqcra">DECRQCRA</a> can be used to compute a
                checksum of the content in an area of a particular page.
            </p>

            <p>
                When setting margins with <a href="#decstbm">DECSTBM</a>,
                margins are set for the current page only - each page can have
                its own set of margins. <a href="#decom">DECOM</a> is not set
                per-page however.
            </p>

            <p>Paging can be configured with the <tt>SET TERM PAGE</tt> command,
                allowing the number of pages and cursor page to be changed, and
                page cursor coupling to be enabled/disabled.
            </p>
        </section>
        <section role="text" id="altscreen" badges="k95"
                 title="Xterm Alternate Screen">
            <p>
                XTerm has long provided a feature that is similar to a subset of
                VT paging which many other terminal emulators also now support.
                Kermit 95, when using the k95 terminal type, also supports this
                feature. The main differences from VT paging are:
            </p>
            <ul>
                <li>Only two pages - the normal and alternate screens</li>
                <li>The two pages do not have distinct margins. An
                    <a href="#decslrm">DECSLRM</a> or
                    <a href="#decstbm">DECSTBM</a> on the alternate screen
                    also sets margins for the normal screen (page 1 in K95) and
                    vice versa.
                </li>
                <li>Page Cursor Coupling is always on - moving between screens
                    moves both the cursor and the display</li>
                <li>The current page is selected via one of a number of DEC Private
                    Modes, such as <a href="#xt-1049">Mode 1049</a>.
                </li>
                <li>The VT page movement control sequences (NP, etc) are not
                    supported</li>
                <li><a href="#deccra">DECCRA</a> and
                    <a href="#decrqcra">DECRQCRA</a> only act on the current
                    page - you can not copy data between pages</li>
                <li><a href="#decsc">DECSC</a> and <a href="#decrc">DECRC</a>
                    do not save and restore the active page</li>
                <li>When the cursor is saved on the alternate screen with
                    DECSC, it does not overwrite any saved cursor on the normal
                    screen
                </li>
            </ul>
            <p>
                At the time of writing few terminal emulators support both VT
                paging and the Xterm alternate screen, and those that do tend to
                implement the Xterm alternate screen feature specially.
                Kermit 95 however just treats the Xterm alternate screen as an
                extra page with some special rules: You can't get to/from the
                Xterm alternate screen using DEC VT paging functions, and when
                on the Xterm alternate screen DECCRA and DECRQCRA can only
                access the current page while DECSC saves the cursor in a
                different location.
            </p>
            <p>
                As the Alternate Screen is mostly a subset of VT Paging,
                you can get a similar effect on DEC terminals (or emulations)
                that support that feature:
            </p>
            <table>
                <tr>
                    <th>XTerm Mode</th>
                    <th>Set</th>
                    <th>Reset</th>
                </tr>
                <tr>
                    <td><a href="#xt-use-altbuf">1047</a></td>
                    <td><a href="#np"><tt><cc>CSI</cc> U</tt></a></td>
                    <td><tt><a href="#ed"><cc>CSI</cc> 2 J</a> <a href="#pp"><cc>CSI</cc> V</a></tt></td>
                </tr>
                <tr>
                    <td><a href="#xt-1048">1048</a></td>
                    <td><tt><a href="#decsc"><cc>ESC</cc> 7</a></tt></td>
                    <td><tt><a href="#decrc"><cc>ESC</cc> 8</a></tt></td>
                </tr>
                <tr>
                    <td><a href="#xt-1049">1049</a></td>
                    <td><tt><a href="#decsc">ESC 7</a> <a href="#np"><cc>CSI</cc> U</a> <a href="#ed"><cc>CSI</cc> 2 J</a></tt></td>
                    <td><a href="#pp"><cc>CSI</cc> V</a> <tt><a href="#decrc"><cc>ESC</cc> 8</a></tt></td>
                </tr>
            </table>

            <p>
                If you do not wish for applications to make use of the XTerm
                Alternate Screen, you can try disabling it with the command
                <tt>SET TERMINAL ALTERNATE-BUFFER DISABLED</tt> but note that
                the host can also change this setting via
                <a href="#xt-ena-altbuf">Mode 1046</a>.
            </p>
        </section>
    </section>
    <section id="lcf" title="The Last Column Flag" role="text">
        <p>
            The <em>Last Column Flag</em> is a detail specific the way autowrap
            was implemented in the line of video terminals manufactured by
            Digital Equipment Corporation starting with the VT100.
        </p>
        <p>
            Normally when the terminal receives a graphic character or space
            character, the cursor is immediately advanced to the next column
            after the character has been added to the display. If the cursor
            is in the last column of the page and advancing would cause a wrap,
            instead of advancing the cursor the terminal sets the
            <em>Last Column Flag</em> causing the wrap to be deferred until the
            next character is received.
        </p>
        <p>
            If a graphic character or space is received while the
            <em>Last Column Flag</em> is set, then the cursor is advanced to the
            first column position on the next line <em>before</em> the received
            character is added to the display and the <em>Last Column Flag</em>
            is reset.
        </p>

        <p>
            Most control sequences and control characters that potentially move
            the cursor reset the Last Column Flag. This includes CR and LF.
        </p>
        <!-- TODO: Include a table here showing what the various emulations do
                -->
        <p>
            This feature both enables cursors to be placed in the bottom right
            corner of the display without resulting in the terminal scrolling,
            and allows a full 80 column line of text terminated with CR+LF to be
            output to the terminal without an additional line breaks as both the
            CR and LF control characters clear the <em>Last Column Flag</em>.
        </p>
    </section>
</document>
