Sponsored Content
Top Forums Shell Programming and Scripting Sending "Shift-F1" to a process Post 14182 by pbritta on Tuesday 29th of January 2002 06:02:25 AM
Old 01-29-2002
Question Sending "Shift-F1" to a process

Hi,

I need to find out the ASCII code for ALT-F1. The reason is that I'm using Expect to interact with an application and although I have the codes for keys such as 'Escape' (/033); F1 (\033\117\120) and ALT-F1 (\033\133\064\071\176) I have no idea where to find the code for Shift-F1.

The other codes I found in an existing script. Is there a UNIX utility which can tell me this? Otherwise, does anyone have any idea where I could look?

Many thanks.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Process seen in "ps aux" but not "top"

Hi, I have a process that can be seen after "ps aux" command. However when I do "top" command. This process cannot be seen. How can this happen? Is there anything wrong with my code? (3 Replies)
Discussion started by: monkfan
3 Replies

2. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

3. Red Hat

"service" , "process" and " daemon" ?

Friends , Anybody plz tell me what is the basic difference between "service" , "process" and " daemon" ? Waiting for kind reply .. .. (1 Reply)
Discussion started by: shipon_97
1 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

AIX function example with "shift" command

Hello, I am reading one of the AIX manuals about shell scripting and (AIX 5) and I found this example when introducing to functions: function usage { prog="$1"; shift print -u2 "$prog: usage: $prog $@" exit 1 } This example is meant to be easy but I don't understand what it is... (5 Replies)
Discussion started by: Kibou
5 Replies

6. Shell Programming and Scripting

How to express "shift+enter"?

Hi expert "enter" can be expressed by "\n" in python, how about "shift+enter"? Thanks (1 Reply)
Discussion started by: yanglei_fage
1 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
QKeySequence(3qt)														 QKeySequence(3qt)

NAME
QKeySequence - Encapsulates a key sequence as used by accelerators SYNOPSIS
#include <qkeysequence.h> Inherits Qt. Public Members QKeySequence () QKeySequence ( const QString & key ) QKeySequence ( int key ) QKeySequence ( int k1, int k2, int k3 = 0, int k4 = 0 ) QKeySequence ( const QKeySequence & keysequence ) ~QKeySequence () uint count () const bool isEmpty () const Qt::SequenceMatch matches ( const QKeySequence & seq ) const operator QString () const operator int () const (obsolete) int operator[] ( uint index ) const QKeySequence & operator= ( const QKeySequence & keysequence ) bool operator== ( const QKeySequence & keysequence ) const bool operator!= ( const QKeySequence & keysequence ) const RELATED FUNCTION DOCUMENTATION
QDataStream & operator<< ( QDataStream & s, const QKeySequence & keysequence ) QDataStream & operator>> ( QDataStream & s, QKeySequence & keysequence ) DESCRIPTION
The QKeySequence class encapsulates a key sequence as used by accelerators. A key sequence consists of up to four keyboard codes, each optionally combined with modifiers, e.g. SHIFT, CTRL, ALT, META, or UNICODE_ACCEL. For example, CTRL + Key_P might be a sequence used as a shortcut for printing a document. The key codes are listed in qnamespace.h. As an alternative, use UNICODE_ACCEL with the unicode code point of the character. For example, UNICODE_ACCEL + 'A' gives the same key sequence as Key_A. Key sequences can be constructed either from an integer key code, or from a human readable translatable string such as" Ctrl+X,Alt+Space". A key sequence can be cast to a QString to obtain a human readable translated version of the sequence. Translations are done in the "QAccel" context. See also QAccel and Miscellaneous Classes. MEMBER FUNCTION DOCUMENTATION
QKeySequence::QKeySequence () Constructs an empty key sequence. QKeySequence::QKeySequence ( const QString & key ) Creates a key sequence from the string key. For example" Ctrl+O" gives CTRL+UNICODE_ACCEL+'O'. The strings "Ctrl"," Shift", "Alt" and "Meta" are recognized, as well as their translated equivalents in the "QAccel" context (using QObject::tr()). Multiple key codes (up to four) may be entered by separating them with commas, e.g. "Alt+X,Ctrl+S,Q". This contructor is typically used with tr(), so that accelerator keys can be replaced in translations: QPopupMenu *file = new QPopupMenu( this ); file->insertItem( tr("&Open..."), this, SLOT(open()), QKeySequence( tr("Ctrl+O", "File|Open") ) ); Note the "File|Open" translator comment. It is by no means necessary, but it provides some context for the human translator. QKeySequence::QKeySequence ( int key ) Constructs a key sequence that has a single key. The key codes are listed in qnamespace.h and can be combined with modifiers, e.g. with SHIFT, CTRL, ALT, META or UNICODE_ACCEL. QKeySequence::QKeySequence ( int k1, int k2, int k3 = 0, int k4 = 0 ) Constructs a key sequence with up to 4 keys k1, k2, k3 and k4. The key codes are listed in qnamespace.h and can be combined with modifiers, e.g. with SHIFT, CTRL, ALT, META or UNICODE_ACCEL. QKeySequence::QKeySequence ( const QKeySequence & keysequence ) Copy constructor. Makes a copy of keysequence. QKeySequence::~QKeySequence () Destroys the key sequence. uint QKeySequence::count () const Returns the number of keys in the key sequence. The maximum is 4. bool QKeySequence::isEmpty () const Returns TRUE if the key sequence is empty; otherwise returns FALSE. Qt::SequenceMatch QKeySequence::matches ( const QKeySequence & seq ) const Matches the sequence with seq. Returns Qt::Identical if successful, Qt::PartialMatch for matching but incomplete seq, and Qt::NoMatch if the sequences have nothing in common. Returns Qt::NoMatch if seq is shorter. QKeySequence::operator QString () const Creates an accelerator string for the key sequence. For instance CTRL+Key_O gives "Ctrl+O". If the key sequence has multiple key codes they are returned comma-separated, e.g." Alt+X, Ctrl+Y, Z". The strings, "Ctrl", "Shift", etc. are translated (using QObject::tr()) in the "QAccel" scope. If the key sequence has no keys, QString::null is returned. On Mac OS X, the string returned resembles the sequence that is shown in the menubar. QKeySequence::operator int () const This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. For backward compatibility: returns the first keycode as integer. If the key sequence is empty, 0 is returned. bool QKeySequence::operator!= ( const QKeySequence & keysequence ) const Returns TRUE if keysequence is not equal to this key sequence; otherwise returns FALSE. QKeySequence &; QKeySequence::operator= ( const QKeySequence & keysequence ) Assignment operator. Assigns keysequence to this object. bool QKeySequence::operator== ( const QKeySequence & keysequence ) const Returns TRUE if keysequence is equal to this key sequence; otherwise returns FALSE. int QKeySequence::operator[] ( uint index ) const Returns a reference to the element at position index in the key sequence. This can only be used to read an element. RELATED FUNCTION DOCUMENTATION
QDataStream &; operator<< ( QDataStream & s, const QKeySequence & keysequence ) Writes the key sequence keysequence to the stream s. See also Format of the QDataStream operators. QDataStream &; operator>> ( QDataStream & s, QKeySequence & keysequence ) Reads a key sequence from the stream s into the key sequence keysequence. See also Format of the QDataStream operators. SEE ALSO
http://doc.trolltech.com/qkeysequence.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qkeysequence.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QKeySequence(3qt)
All times are GMT -4. The time now is 01:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy