Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Escape sequence for Function keys - terminfo Post 302909318 by clemansy on Wednesday 16th of July 2014 05:15:23 AM
Old 07-16-2014
Escape sequence for Function keys - terminfo

Having a doubt on how Function keys are mapped.
1. In my HPUX box my infocmp shows that kf1 (F1 key mapping) is not mapped. But somehow I am able to use an Informix form which requires navigation using F1 keys.

Code:
vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video),
        bce, bw, ccc, chts, cpix, crxm, da, daisy, db, eo,
        eslok, gn, hc, hls, hs, hz, in, km, lpix, mc5i, mir,
        msgr, ndscr, npc, nrrmc, nxon, os, sam, ul, xhp,
        xhpa, xon, xsb, xt, xvpa,
        cols#132, lines#24, vt#3,
        bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25I,
        clear=\E[2J\E[H, cnorm=\E[?25h, cr=\r,
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
        cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[1P,
        dl=\E[%p1%dM, dl1=\E[1M, ed=\E[0J, el=\E[0K,
        home=\E[1;1H, ht=\t, hts=\EH, il=\E[%p1%dL, il1=\E[1L,
        ind=\n, kbs=\177, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
        kcuu1=\EOA, knp=\E[U, kpp=\E[V, rc=\E8, rev=\E[7m,
        rmir=\E[4l, rmkx=\E[?1l, rmso=\E[m, rmul=\E[m,
        rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, sc=\E7,
        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
        sgr0=\E[0m, smir=\E[4h, smkx=\E[?1h, smso=\E[7m,
        smul=\E[4m, tbc=\E[3g,

2. My attempts to send F1 command to the form from a script has all failed (was able to send cursor down command cud1 etc):
Code:
    a. echo "^[Oa"  (verified that escape seq is Oa by using ^V)
     b. tput kf1

(obviously because kf1 is not mapped)

Had an interesting observation while I tee'd the stdin. Can add if needed. Please shed some light on how this works.

Moderator's Comments:
Mod Comment Please use code tags.

Last edited by jim mcnamara; 07-16-2014 at 07:35 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Escape sequence

Hi, I have got an application through which an user will submit an address like "c:\tuser\abc". This application calls a script and passes the address to the scripts positional parameter say $1. So $1 should contain "c:\tuser\abc", but when $1 is echoed the "\t" and "\a" are interpreted to... (4 Replies)
Discussion started by: puspendu
4 Replies

2. UNIX for Advanced & Expert Users

want to view the escape sequence

Hi, Is it possible to view the escape sequence in the ascii file. That is I want to see the newlinw character,tab ........ etc Thanks Sweta (4 Replies)
Discussion started by: sweta
4 Replies

3. UNIX for Dummies Questions & Answers

Both HOME and INSERT key send same escape sequence on ssh

I couldn't seem to make 'HOME' key work on my remote windows ssh client to a Fedora Core3 server (the home key works perfectly when i'm physically on site.) To my surprise, using control+V it seems that both my home and insert key send the same escape sequence ^So it must be my windows SSH client... (0 Replies)
Discussion started by: grossgermany
0 Replies

4. Shell Programming and Scripting

escape sequence for $

Hi all, I have a requirement where the variable name starts with $, like $Amd=/home/student/test/ How to work wit it? can some one help me, am in gr8 confusion:confused: (5 Replies)
Discussion started by: shreekrishnagd
5 Replies

5. Shell Programming and Scripting

Removing Escape Sequence Characters

Hi All, I have added the script command to user profile so that to record the on-screen data.But when i i checked the O/P i could see lot of escape sequence is there way to remove it. (2 Replies)
Discussion started by: cutechaps
2 Replies

6. Shell Programming and Scripting

Help with escape sequence for '$' symbol in EGREP function

$table is the variable which contains name of the file. Filename may have the special character $. Need to escape $ . Tried below options to escape dollar: \$$table "\$"$table"" what is the escape sequence for egrep function..? Below is the code snippet- my $table; foreach... (3 Replies)
Discussion started by: xylus77
3 Replies

7. Red Hat

Grep doesn't understand escape sequence?

I ran the following grep and sed command. grep "\t" emp.txt sed -n '/\t/p' emp.txt grep treated the '\' as to escape t and took the pattern as literal t whereas sed took the pattern as tab. That means , grep doesn't understand escape sequence!!!!!! what to do to make grep... (8 Replies)
Discussion started by: ravisingh
8 Replies

8. Shell Programming and Scripting

Ignore escape sequence in sed

Friends, In the file i am having more then 100 lines like, File1 had the values like this: #Example East.server_01=EAST.SERVER_01 East.server_01=EAST.SERVER_01 West.server_01=WEST.SERVER_01 File2 had the values like this: #Example EAST.SERVER_01=http://yahoo.com... (3 Replies)
Discussion started by: jothi basu
3 Replies

9. Solaris

Escape Sequence for Capital Letters Input at Shell Not Working

Hello, I am running Solaris 8. When issuing the command "stty lcase" all text which is output to the terminal are capitalized. Letters that are supposed to be capitals are preceded by a backslash during output. All text which is input is converted to lower case. This is the expected behaviour... (5 Replies)
Discussion started by: rstor
5 Replies

10. Shell Programming and Scripting

Escape Sequence Overide in XML file

Hi I am try to use sed to remove decleration information from an XML file however their are special characters in the string and sed is not able to parse it . I am using the following commond. sed -e "s/xmlns=http://www.abc.com/integration/services/testtemplate1//g" Orginal.xml... (3 Replies)
Discussion started by: jimmyb
3 Replies
wnn_cvt_key_tbl(4)						   File Formats 						wnn_cvt_key_tbl(4)

NAME
wnn_cvt_key_tbl - Kana-Kanji conversion front end processor (uum) key code conversion table file SYNOPSIS
/usr/lib/locale/ja/wnn/cvt_key_tbl DESCRIPTION
cvt_key_tbl defines the conversion table for terminfo entry and key code. uum(1) converts the input strings to key code by using of ter- minfo and cvt_key_tbl. If each escape sequence character is input for more than 1 second, uum converts it as each separate character. Syntax terminfo_entry code A space character is necessary between terminfo_entry and code. Lines beginning with a semicolon (;) are comments. terminto_Therfollowing terminfo entries are converted. kf0 kf1 kf2 kf3 kf4 kf5 kf6 kf7 kf8 kf9 kf10 kf11 kf12 kf13 kf14 kf15 kf16 kf17 kf18 kf19 kf20 kf21 kf22 kf23 kf24 kf25 kf26 kf27 kf28 kf29 kf30 kf31 kbs ktbc kclr kctab kdch1 kdl1 kcud1 krmir kel ked khome kich1 kil1 kcub1 kll knp kpp kcuf1 kind kri khts kcuu1 code One charaIndicatesuliteralacharacter.nd "^" ^ charactcharacter indicates @, A (a), B (b), C (c), D (d), E (e), F (f), ..., Z (z), [, , ], ^, and _, ^@ indicates control + space (0x00), ^A indicates control + A (0x01), ..., and ^_ indicates control + _ (0x1f). octal nuDirectlyospecifiesecharactermcode.mber, xhexadecimal number , , , , f, e, E indicates newline, indicates tab,  indicates backspace, indicates return (RETURN), f indicates form feed, e indicates escape (ESC), and E indicates escape (ESC). charactePossible characters are any characters except the following: 0 through 7, o, d, x, n, t, b, r, f, e, E. itself is repreasented by "\". EXAMPLES
Example 1: kf1 x81 kf2 x82 kf3 x83 kf4 x84 kcud1 x92 kcub1 x91 kcuf1 x90 kcuu1 x93 SEE ALSO
uum(1), uumkey(4), wnn_2A_CTRL(4) NOTES
Code converted by this table is evaluated by the roman character-Kana conversion Automaton table 2A_CTRL (default) and then by uumkey. SunOS 5.10 10 Jan 2003 wnn_cvt_key_tbl(4)
All times are GMT -4. The time now is 08:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy