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.
		
	
			
		
			
				
	
	
		
			119 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			119 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # unsupported xterm caps are (getting) commented. 
 | |
| # as soon as they work, uncomment them.
 | |
| st| simpleterm,
 | |
| 	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
 | |
| 	am,
 | |
| #	bce,
 | |
| 	bel=^G,
 | |
| #	blink=\E[5m,
 | |
| 	bold=\E[1m,
 | |
| 	cbt=\E[Z,
 | |
| 	cvvis=\E[?25h,
 | |
| 	civis=\E[?25l,
 | |
| 	clear=\E[H\E[2J,
 | |
| 	cnorm=\E[?12l\E[?25h,
 | |
| 	colors#8,
 | |
| 	cols#80,
 | |
| 	cr=^M,
 | |
| 	csr=\E[%i%p1%d;%p2%dr,
 | |
| 	cub=\E[%p1%dD,
 | |
| 	cub1=^H,
 | |
| 	cud1=^J,
 | |
| 	cud=\E[%p1%dB,
 | |
| 	cuf1=\E[C,
 | |
| 	cuf=\E[%p1%dC,
 | |
| 	cup=\E[%i%p1%d;%p2%dH,
 | |
| 	cuu1=\E[A,
 | |
| 	cuu=\E[%p1%dA,
 | |
| 	dch=\E[%p1%dP,
 | |
| 	dch1=\E[P,
 | |
| 	dl=\E[%p1%dM,
 | |
| 	dl1=\E[M,
 | |
| 	ech=\E[%p1%dX,
 | |
| 	ed=\E[J,
 | |
| 	el=\E[K,
 | |
| 	el1=\E[1K,
 | |
| 	flash=\E[?5h\E[?5l,
 | |
| 	fsl=^G,
 | |
| 	home=\E[H,
 | |
| 	hpa=\E[%i%p1%dG,
 | |
| 	hs,
 | |
| 	ht=^I,
 | |
| 	hts=\EH,
 | |
| 	ich=\E[%p1%d@,
 | |
| 	il1=\E[L,
 | |
| 	il=\E[%p1%dL,
 | |
| 	ind=^J,
 | |
| 	indn=\E[%p1%dS,
 | |
| 	invis=\E[8m,
 | |
| 	in2=\E[4l\E>,
 | |
| 	it#8,
 | |
| 	kbs=\177,
 | |
| 	kcub1=\E[D,
 | |
| 	kcud1=\E[B,
 | |
| 	kcuf1=\E[C,
 | |
| 	kcuu1=\E[A,
 | |
| 	kLFT=\E[d,
 | |
| 	kRIT=\E[c,
 | |
| 	kind=\E[a,
 | |
| 	kri=\E[b,
 | |
| 	kdch1=\E[3~,
 | |
| 	kich1=\E[2~,
 | |
| 	kend=\E[4~,
 | |
| 	kf10=\E[21~,
 | |
| 	kf11=\E[23~,
 | |
| 	kf12=\E[24~,
 | |
| 	kf1=\EOP,
 | |
| 	kf2=\EOQ,
 | |
| 	kf3=\EOR,
 | |
| 	kf4=\EOS,
 | |
| 	kf5=\E[15~,
 | |
| 	kf6=\E[17~,
 | |
| 	kf7=\E[18~,
 | |
| 	kf8=\E[19~,
 | |
| 	kf9=\E[20~,
 | |
| 	khome=\E[1~,
 | |
| 	knp=\E[6~,
 | |
| 	kmous=\E[M,
 | |
| 	kpp=\E[5~,
 | |
| 	lines#24,
 | |
| 	mir,
 | |
| 	msgr,
 | |
| 	ncv#3,
 | |
| 	op=\E[39;49m,
 | |
| 	pairs#64,
 | |
| 	rc=\E8,
 | |
| 	rs1=\Ec,
 | |
| 	rs2=\E[4l\E>,
 | |
| 	rev=\E[7m,
 | |
| 	ri=\EM,
 | |
| 	rmacs=\E(B,
 | |
| 	rmcup=\E[?1049l,
 | |
| 	rmso=\E[23m,
 | |
| 	rmul=\E[m,
 | |
| 	sc=\E7,
 | |
| 	setab=\E[4%p1%dm,
 | |
| 	setaf=\E[3%p1%dm,
 | |
| 	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
 | |
| 	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
 | |
| 	sgr0=\E[0m,
 | |
| 	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
 | |
| 	smacs=\E(0,
 | |
| 	smcup=\E[?1049h,
 | |
| 	smso=\E[3m,
 | |
| 	smul=\E[4m,
 | |
| 	tbc=\E[3g,
 | |
| 	tsl=\E]0;,
 | |
| 	ul,
 | |
| 	xenl,
 | |
| 	vpa=\E[%i%p1%dd,
 | |
| 
 | |
| 
 | |
| st-256color| simpleterm with 256 colors,
 | |
| 	use=st,
 | |
| 	colors#256,
 | |
| 	pairs#32767,
 | |
| #	Nicked from xterm-256color
 | |
| 	setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
 | |
| 	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
 |