(wrong string) »Add initialization strings in terminfo« || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Mon, 3 Sep 2012 21:52:34 +0200 (CEST)

changeset: 262:cd73991ab465
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Mon Sep 03 21:50:22 2012 +0200
files: st.info
description:
Patch from Roberto Vargas. »Add initialization strings in terminfo«

Taken from the description:

When tput init is executed the list of task performed are (taken from
terminfo(5)):

              run the program
                     iprog

              output is1 is2

              set the margins using
                     mgc, smgl and smgr

              set tabs using
                     tbc and hts

              print the file
                     if

              and finally
                     output is3.

When reset is executed, a more stronger initialization process is performed,
so the terminal can return from an unknown state. rs1, rs2 and rs3 are used
in this case instead of
using is1, is2 and is3.

This patch makes is2 = rs2, resets insert mode and set normal keypad
mode. For rs1 it performs a full initilization using ^[c.


diff -r 866dc7edd5f8 -r cd73991ab465 st.info
--- a/st.info Sun Sep 02 19:53:50 2012 +0200
+++ b/st.info Mon Sep 03 21:50:22 2012 +0200
_AT_@ -46,6 +46,7 @@
         ind=^J,
         indn=\E[%p1%dS,
         invis=\E[8m,
+ in2=\E[4l\E>,
         it#8,
         kbs=\177,
         kcub1=\E[D,
_AT_@ -82,6 +83,8 @@
         op=\E[39;49m,
         pairs#64,
         rc=\E8,
+ rs1=\Ec,
+ rs2=\E[4l\E>,
         rev=\E[7m,
         ri=\EM,
         rmacs=\E(B,
Received on Mon Sep 03 2012 - 21:52:34 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 03 2012 - 22:00:10 CEST