From nobody Sat Feb 4 09:49:45 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P877n47Y1z3mvqt; Sat, 4 Feb 2023 09:51:01 +0000 (UTC) (envelope-from Mathias.Picker@virtual-earth.de) Received: from www94.your-server.de (www94.your-server.de [213.133.104.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4P877m4mlzz4dHT; Sat, 4 Feb 2023 09:51:00 +0000 (UTC) (envelope-from Mathias.Picker@virtual-earth.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=virtual-earth.de header.s=default_1811 header.b=azdMHDuf; spf=pass (mx1.freebsd.org: domain of Mathias.Picker@virtual-earth.de designates 213.133.104.94 as permitted sender) smtp.mailfrom=Mathias.Picker@virtual-earth.de; dmarc=pass (policy=none) header.from=virtual-earth.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtual-earth.de; s=default_1811; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:In-reply-to:Date:Subject:Cc:To:From:References:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Fwi2ZSoabyNVVID4NLTBNm4r6C9mAskLPpLlHfyJ5ms=; b=azdMHDufkQCx6E2QSiUHL2+EV6 dDPqCA/Rlcb+4jwBxs+9JMxAaQbdowsWP7VMCNQvSBRCbfGDeWdOBxoBfMaMGgi9xyZb+8nTLEVd4 syPZA8eUdV/Cal79jCTf1z0xavwbo4/hjbEyzAql+qi6C69/6VG2KNHFGv5CLhmG3dsdFJGkK+24N WCiRW0jWQas44s0g1aKdRQOUnK+kDqwTSK/vpFjbZWs3r7wLcGL7YJtYkrw9hwpZ3FE3TzkJV5w+6 GlZt2uHpGLO5JFuzFQ5DeO6inYGA4U3WnqdkLH/56PuDdZmWvMm5wZKCU0ww826hy7MWW+SRnGbwa Vy3zL3xQ==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www94.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pOFCF-0001p5-Qd; Sat, 04 Feb 2023 10:50:59 +0100 Received: from [2a01:c23:c1f6:2000:4a2a:e3ff:fe1a:da58] (helo=danton.virtual-earth.de) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pOFCF-000UyU-5o; Sat, 04 Feb 2023 10:50:59 +0100 References: User-agent: mu4e 1.8.14; emacs 28.2 From: Mathias Picker To: Archimedes Gaviola Cc: freebsd-questions@freebsd.org, questions@freebsd.org Subject: Re: xterm key mapping Date: Sat, 04 Feb 2023 10:49:45 +0100 In-reply-to: Message-ID: <86v8khbvy5.fsf@virtual-earth.de> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: Mathias.Picker@virtual-earth.de X-Virus-Scanned: Clear (ClamAV 0.103.7/26802/Sat Feb 4 09:50:11 2023) X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[virtual-earth.de,none]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[virtual-earth.de:s=default_1811]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:24940, ipnet:213.133.96.0/19, country:DE]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org,questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[213.133.104.94:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[virtual-earth.de:+]; TO_DN_SOME(0.00)[]; TAGGED_RCPT(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_X_AS(0.00)[] X-Rspamd-Queue-Id: 4P877m4mlzz4dHT X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Change the translations as in: XTerm.VT100.translations: #override \ F5: string("presed F5") \n\ An xterm resource with lots of helpful comments:=20 https://www.in-ulm.de/~mascheck/X11/xterm/XTerm Cheers, Mathias Archimedes Gaviola writes: > Hi, > > Is there a way to change the xterm key mapping values? For=20 > example changing the value of kf5=3D\E[15~ which is function key=20 > F5 with value > of \E[15~ changed into something different. I'm using FreeBSD=20 > 14.0-CURRENT and below is the xterm key mapping.=20 > > root@siquijor:~ # infocmp -x xterm > # Reconstructed via infocmp from file:=20 > /usr/share/terminfo/x/xterm > xterm|xterm terminal emulator (X Window System), > OTbs, am, bce, km, mc5i, mir, msgr, npc, xenl, AX, XT, > colors#8, cols#80, it#8, lines#24, pairs#64, > acsc=3D``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, > bel=3D^G, blink=3D\E[5m, bold=3D\E[1m, cbt=3D\E[Z,=20 > civis=3D\E[?25l, > clear=3D\E[H\E[2J, cnorm=3D\E[?12l\E[?25h, cr=3D\r, > csr=3D\E[%i%p1%d;%p2%dr, cub=3D\E[%p1%dD, cub1=3D^H, > cud=3D\E[%p1%dB, cud1=3D\n, cuf=3D\E[%p1%dC, cuf1=3D\E[C, > cup=3D\E[%i%p1%d;%p2%dH, cuu=3D\E[%p1%dA, cuu1=3D\E[A, > cvvis=3D\E[?12;25h, dch=3D\E[%p1%dP, dch1=3D\E[P, dim=3D\E[2m, > dl=3D\E[%p1%dM, dl1=3D\E[M, ech=3D\E[%p1%dX, ed=3D\E[J, el=3D\E[K, > el1=3D\E[1K, flash=3D\E[?5h$<100/>\E[?5l, home=3D\E[H, > hpa=3D\E[%i%p1%dG, ht=3D^I, hts=3D\EH, ich=3D\E[%p1%d@, > il=3D\E[%p1%dL, il1=3D\E[L, ind=3D\n, indn=3D\E[%p1%dS, > invis=3D\E[8m, is2=3D\E[!p\E[?3;4l\E[4l\E>, kDC=3D\E[3;2~, > kEND=3D\E[1;2F, kHOM=3D\E[1;2H, kIC=3D\E[2;2~, kLFT=3D\E[1;2D, > kNXT=3D\E[6;2~, kPRV=3D\E[5;2~, kRIT=3D\E[1;2C, ka1=3D\EOw, > ka3=3D\EOy, kb2=3D\EOu, kbeg=3D\EOE, kbs=3D^H, kc1=3D\EOq,=20 > kc3=3D\EOs, > kcbt=3D\E[Z, kcub1=3D\EOD, kcud1=3D\EOB, kcuf1=3D\EOC,=20 > kcuu1=3D\EOA, > kdch1=3D\E[3~, kend=3D\EOF, kent=3D\EOM, kf1=3D\EOP,=20 > kf10=3D\E[21~, > kf11=3D\E[23~, kf12=3D\E[24~, kf13=3D\E[1;2P, kf14=3D\E[1;2Q, > kf15=3D\E[1;2R, kf16=3D\E[1;2S, kf17=3D\E[15;2~,=20 > kf18=3D\E[17;2~, > kf19=3D\E[18;2~, kf2=3D\EOQ, kf20=3D\E[19;2~, kf21=3D\E[20;2~, > kf22=3D\E[21;2~, kf23=3D\E[23;2~, kf24=3D\E[24;2~, > kf25=3D\E[1;5P, kf26=3D\E[1;5Q, kf27=3D\E[1;5R, kf28=3D\E[1;5S, > kf29=3D\E[15;5~, kf3=3D\EOR, kf30=3D\E[17;5~, kf31=3D\E[18;5~, > kf32=3D\E[19;5~, kf33=3D\E[20;5~, kf34=3D\E[21;5~, > kf35=3D\E[23;5~, kf36=3D\E[24;5~, kf37=3D\E[1;6P,=20 > kf38=3D\E[1;6Q, > kf39=3D\E[1;6R, kf4=3D\EOS, kf40=3D\E[1;6S, kf41=3D\E[15;6~, > kf42=3D\E[17;6~, kf43=3D\E[18;6~, kf44=3D\E[19;6~, > kf45=3D\E[20;6~, kf46=3D\E[21;6~, kf47=3D\E[23;6~, > kf48=3D\E[24;6~, kf49=3D\E[1;3P, kf5=3D\E[15~, kf50=3D\E[1;3Q, > kf51=3D\E[1;3R, kf52=3D\E[1;3S, kf53=3D\E[15;3~,=20 > kf54=3D\E[17;3~, > kf55=3D\E[18;3~, kf56=3D\E[19;3~, kf57=3D\E[20;3~, > kf58=3D\E[21;3~, kf59=3D\E[23;3~, kf6=3D\E[17~, kf60=3D\E[24;3~, > kf61=3D\E[1;4P, kf62=3D\E[1;4Q, kf63=3D\E[1;4R, kf7=3D\E[18~, > kf8=3D\E[19~, kf9=3D\E[20~, khome=3D\EOH, kich1=3D\E[2~, > kind=3D\E[1;2B, kmous=3D\E[<, knp=3D\E[6~, kpp=3D\E[5~, > kri=3D\E[1;2A, mc0=3D\E[i, mc4=3D\E[4i, mc5=3D\E[5i, meml=3D\El, > memu=3D\Em, mgc=3D\E[?69l, nel=3D\EE, op=3D\E[39;49m, rc=3D\E8, > rep=3D%p1%c\E[%p2%{1}%-%db, rev=3D\E[7m, ri=3D\EM, > rin=3D\E[%p1%dT, ritm=3D\E[23m, rmacs=3D\E(B, rmam=3D\E[?7l, > rmcup=3D\E[?1049l\E[23;0;0t, rmir=3D\E[4l, rmkx=3D\E[?1l\E>, > rmm=3D\E[?1034l, rmso=3D\E[27m, rmul=3D\E[24m, rs1=3D\Ec, > rs2=3D\E[!p\E[?3;4l\E[4l\E>, sc=3D\E7, setab=3D\E[4%p1%dm, > setaf=3D\E[3%p1%dm, > setb=3D\E[4%?%p1%{1}%=3D%t4%e%p1%{3}%=3D%t6%e%p1%{4}%=3D%t1%e%p1%= {6}%=3D%t3%e%p1%d%;m, > setf=3D\E[3%?%p1%{1}%=3D%t4%e%p1%{3}%=3D%t6%e%p1%{4}%=3D%t1%e%p1%= {6}%=3D%t3%e%p1%d%;m, > sgr=3D%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%= p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m, > sgr0=3D\E(B\E[m, sitm=3D\E[3m, smacs=3D\E(0, smam=3D\E[?7h, > smcup=3D\E[?1049h\E[22;0;0t, smglp=3D\E[?69h\E[%i%p1%ds, > smglr=3D\E[?69h\E[%i%p1%d;%p2%ds, > smgrp=3D\E[?69h\E[%i;%p1%ds, smir=3D\E[4h, smkx=3D\E[?1h\E=3D, > smm=3D\E[?1034h, smso=3D\E[7m, smul=3D\E[4m, tbc=3D\E[3g, > u6=3D\E[%i%d;%dR, u7=3D\E[6n, u8=3D\E[?%[;0123456789]c, > u9=3D\E[c, vpa=3D\E[%i%p1%dd, Cr=3D\E]112\007, > Cs=3D\E]12;%p1%s\007, E3=3D\E[3J, Ms=3D\E]52;%p1%s;%p2%s\007, > Se=3D\E[2 q, Ss=3D\E[%p1%d q, > XM=3D\E[?1006;1000%?%p1%{1}%=3D%th%el%;, kDC3=3D\E[3;3~, > kDC4=3D\E[3;4~, kDC5=3D\E[3;5~, kDC6=3D\E[3;6~, kDC7=3D\E[3;7~, > kDN=3D\E[1;2B, kDN3=3D\E[1;3B, kDN4=3D\E[1;4B, kDN5=3D\E[1;5B, > kDN6=3D\E[1;6B, kDN7=3D\E[1;7B, kEND3=3D\E[1;3F,=20 > kEND4=3D\E[1;4F, > kEND5=3D\E[1;5F, kEND6=3D\E[1;6F, kEND7=3D\E[1;7F, > kHOM3=3D\E[1;3H, kHOM4=3D\E[1;4H, kHOM5=3D\E[1;5H, > kHOM6=3D\E[1;6H, kHOM7=3D\E[1;7H, kIC3=3D\E[2;3~,=20 > kIC4=3D\E[2;4~, > kIC5=3D\E[2;5~, kIC6=3D\E[2;6~, kIC7=3D\E[2;7~, kLFT3=3D\E[1;3D, > kLFT4=3D\E[1;4D, kLFT5=3D\E[1;5D, kLFT6=3D\E[1;6D, > kLFT7=3D\E[1;7D, kNXT3=3D\E[6;3~, kNXT4=3D\E[6;4~, > kNXT5=3D\E[6;5~, kNXT6=3D\E[6;6~, kNXT7=3D\E[6;7~, > kPRV3=3D\E[5;3~, kPRV4=3D\E[5;4~, kPRV5=3D\E[5;5~, > kPRV6=3D\E[5;6~, kPRV7=3D\E[5;7~, kRIT3=3D\E[1;3C, > kRIT4=3D\E[1;4C, kRIT5=3D\E[1;5C, kRIT6=3D\E[1;6C, > kRIT7=3D\E[1;7C, kUP=3D\E[1;2A, kUP3=3D\E[1;3A, kUP4=3D\E[1;4A, > kUP5=3D\E[1;5A, kUP6=3D\E[1;6A, kUP7=3D\E[1;7A, ka2=3D\EOx, > kb1=3D\EOt, kb3=3D\EOv, kc2=3D\EOr, kp5=3D\EOE, kpADD=3D\EOk, > kpCMA=3D\EOl, kpDIV=3D\EOo, kpDOT=3D\EOn, kpMUL=3D\EOj,=20 > kpSUB=3D\EOm, > kpZRO=3D\EOp, rmxx=3D\E[29m, smxx=3D\E[9m, > xm=3D\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;, > > Thanks, > Archimedes --=20 Mathias Picker=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 Gesch=C3=A4ftsf=C3=BChrer Mathias.Picker@virtual-earth.de virtual earth Gesellschaft f=C3=BCr Wissens re/pr=C3=A4 sentation mbH http://www.virtual-earth.de/ HRB126870 support@virtual-earth.de Westendstr. 142 089 / 1250 3943=20=20=20=20=20=20=20=20=20=20=20=20