Sponsored Content
Top Forums Shell Programming and Scripting How to type ISO_8859_1 characters in shell script? Post 302414271 by Scrutinizer on Monday 19th of April 2010 04:21:55 PM
Old 04-19-2010
Also, in putty, make sure you select the proper character set is selected:
Putty configuration -> window -> translation
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Specifying font type and color in a shell script

Hi, I am new to shell script. Can you please tell me, whether can we specify font type and color in a shell script? If so, how to do this? Thanks in advance. (4 Replies)
Discussion started by: Vani_Govind
4 Replies

2. Shell Programming and Scripting

How to type the Omega symbol Ω in unix shell script

Hi, I have a data file delimited by Ω symbol, I would like to use this in grep and cut command. but How to type this Omega symbol. Thanks Murugesan (1 Reply)
Discussion started by: NagaMurugesan
1 Replies

3. Shell Programming and Scripting

help removing characters for output file in shell script

hi i'm new to shell scripts and have a small problem i am running a batch converter that returns all flash .flv files in a directory and create a png image from each one the problem i have is the $1 variable , its ok on the first call but on the secound call $1.png , i have extra... (1 Reply)
Discussion started by: wingchun22
1 Replies

4. Shell Programming and Scripting

converting the data type in unix shell script

I am writing a unix shell script that will extract records from table and write into a file. ====================================== #! /bin/ksh ############################ # AFI Monitor Script ############################ . /db2/uszlad48/sqllib/db2profile export... (5 Replies)
Discussion started by: kmanivan82
5 Replies

5. Shell Programming and Scripting

Bold characters in a file using Shell script

Hi, When I am running below mentioned script then the characters become bold but after opening the same file in Windows, Instead of getting bold characters i am getting some garbage value for \033Kunal Dixit Output in Windows (after ftp the file): but in windows , i am getting My name is... (0 Replies)
Discussion started by: kunal_dixit
0 Replies

6. Shell Programming and Scripting

How to call last 14 characters with grep/sed in shell script.

Hi. This is my first post on the forums. I am trying to write a script that will parse a folder of files "oneverylongfilenamexyz.pdf" and create a .dat file named "oneverylongfilenamexyz.dat" with the first line of each .dat file saying variable="xyz" where xyz is the last 14 characters of $i... (4 Replies)
Discussion started by: attonbitusira
4 Replies

7. Shell Programming and Scripting

How do you delete characters in a shell script?

I have printed a character on the screen using a shell script. I want to move that character one space to the left. I have tried moving the cursor to the top left corner of the screen and printing a backspace, like this: tput cup 1 1; printf "\b"; The backspace supposedly deletes the... (5 Replies)
Discussion started by: Ultrix
5 Replies

8. UNIX for Dummies Questions & Answers

Assistance with shell script to check file type and move to a folder.

Hi, Below is some code that I would like to implement however I am getting these errors: (what I am attempting to do is to check if a zip file has ascii files and if ascii and not binary then move the ascii files to a folder. some of the files are in xml format but are ascii and i will be moving... (0 Replies)
Discussion started by: bwcberb
0 Replies

9. UNIX for Dummies Questions & Answers

[Solved] Removing control-m characters from shell script

Hi All, I need to remove control m character from a file. Steps which i am doing in shell script are: 1) We are comparing the header of the file to the database table header Here the file header has control-m characters. How do i remove it. Please help. Below are the steps i am using,... (12 Replies)
Discussion started by: abhi_123
12 Replies

10. Homework & Coursework Questions

Shell script to find file type

1. The problem statement, all variables and given/known data: Write a shell script that takes a single command line parameter, a file path (might be relative or absolute). The script should examine that file and print a single line consisting of the phrase: Windows ASCII if the files is an... (4 Replies)
Discussion started by: kwatt019
4 Replies
XSelectExtensionEvent(3X11)					    X FUNCTIONS 				       XSelectExtensionEvent(3X11)

NAME
XSelectExtensionEvent, XGetSelectedExtensionEvents - select extension events, get the list of currently selected extension events SYNTAX
XSelectExtensionEvent(display, w, event_list, event_count) Display *display; Window w; XEventClass *event_list; int event_count; XGetSelectedExtensionEvents(display, w, this_client_event_count_return, this_client_event_list_return, all_clients_event_count_return, all_clients_event_list_return) Display *display; Window w; int this_client_event_count_return; XEventClass *this_client_event_list_return; int all_clients_event_count_return; XEventClass *all_clients_event_list_return; ARGUMENTS
display Specifies the connection to the X server. w Specifies the window whose events you are interested in. event_list Specifies the list of event classes that describe the events you are interested in. event_count Specifies the count of event classes in the event list. this_client_event_count_return Returns the count of event classes selected by this client. this_client_event_list_return Returns a pointer to the list of event classes selected by this client. all_clients_event_count_return Returns the count of event classes selected by all clients. all_clients_event_list_return Returns a pointer to the list of event classes selected by all clients. DESCRIPTION
The XSelectExtensionEvent request causes the X server to report the events associated with the specified list of event classes. Initially, X will not report any of these events. Events are reported relative to a window. If a window is not interested in a device event, it usu- ally propagates to the closest ancestor that is interested, unless the do_not_propagate mask prohibits it. Multiple clients can select for the same events on the same window with the following restrictions: o Multiple clients can select events on the same window because their event masks are disjoint. When the X server generates an event, it reports it to all interested clients. o Only one client at a time can select a DeviceButtonPress event with automatic passive grabbing enabled, which is associated with the event class DeviceButtonPressGrab. To receive DeviceButtonPress events without automatic passive grabbing, use event class DeviceBut- tonPress but do not specify event class DeviceButtonPressGrab. The server reports the event to all interested clients. Information contained in the XDevice structure returned by XOpenDevice is used by macros to obtain the event classes that clients use in making XSelectExtensionEvent requests. Currently defined macros include DeviceKeyPress, DeviceKeyRelease, DeviceButtonPress, DeviceButton- Relese, DeviceMotionNotify, DeviceFocusIn, DeviceFocusOut, ProximityIn, ProximityOut, DeviceStateNotify, DeviceMappiingNotify, ChangeDevi- ceNotify, DevicePointerMotionHint, DeviceButton1Motion, DeviceButton2Motion, DeviceButton3Motion, DeviceButton4Motion, DeviceButton5Motion, DeviceButtonMotion, DeviceOwnerGrabButton, DeviceButtonPressGrab, and NoExtensionEvent. To obtain the proper event class for a particular device, one of the above macros is invoked using the XDevice structure for that device. For example, DeviceKeyPress (*device, type, eventclass); returns the DeviceKeyPress event type and the eventclass for selecting DeviceKeyPress events from this device. XSelectExtensionEvent can generate a BadWindow or BadClass error. The XGetSelectedExtensionEvents request reports the extension events selected by this client and all clients for the specified window. This request returns pointers to two XEventClass arrays. One lists the input extension events selected by this client from the specified window. The other lists the event classes selected by all clients from the specified window. You should use XFree to free these two arrays. XGetSelectedExtensionEvents can generate a BadWindow error. DIAGNOSTICS
BadWindow A value for a Window argument does not name a defined Window. BadClass A value for an XEventClass argument is invalid. SEE ALSO
Programming with Xlib XFree86 Version 4.7.0 XSelectExtensionEvent(3X11)
All times are GMT -4. The time now is 02:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy