Sponsored Content
Top Forums Shell Programming and Scripting How to type ISO_8859_1 characters in shell script? Post 302414237 by jim mcnamara on Monday 19th of April 2010 02:52:15 PM
Old 04-19-2010
Did you try ALT-194 - hold down the alt key, then enter 1 9 4 on the numeric keypad?

What does
Code:
locale

show for you?
 

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
KEYBOARD(4)						   BSD Kernel Interfaces Manual 					       KEYBOARD(4)

NAME
keyboard -- pc keyboard interface DESCRIPTION
The PC keyboard is used as the console character input device. The keyboard is owned by the current virtual console. To switch between the virtual consoles use the sequence ALT+Fn, which means hold down ALT and press one of the function keys. The virtual console with the same number as the function key is then selected as the current virtual console and given exclusive use of the keyboard and display. The console allows entering values that are not physically present on the keyboard via a special keysequence. To use this facility press and hold down ALT, then enter a decimal number from 0-255 via the numerical keypad, then release ALT. The entered value is then used as the ASCII value for one character. This way it is possible to enter any ASCII value, not present on the keyboard. The console driver also includes a history function. It is activated by pressing the scroll-lock key. This holds the display, and enables the cursor arrows for scrolling up and down through the last scrolled out lines. The keyboard is configurable to suit the individual user and the different national layout. The keys on the keyboard can have any of the following functions: Normal key Enter the ASCII value associated with the key. Function key Enter a string of ASCII values. Switch Key Switch virtual console. Modifier Key Change the meaning of another key. The keyboard is seen as a number of keys numbered from 1 to n. This number is often referred to as the "scancode" for a given key. The num- ber of the key is transmitted as an 8 bit char with bit 7 as 0 when a key is pressed, and the number with bit 7 as 1 when released. This makes it possible to make the mapping of the keys fully configurable. The meaning of every key is programmable via the PIO_KEYMAP ioctl call, that takes a structure keymap_t as argument. The layout of this structure is as follows: struct keymap { u_short n_keys; struct key_t { u_char map[NUM_STATES]; u_char spcl; u_char flgs; } key[NUM_KEYS]; }; The field n_keys tells the system how many keydefinitions (scancodes) follows. Each scancode is then specified in the key_t substructure. Each scancode can be translated to any of 8 different values, depending on the shift, control, and alt state. These eight possibilities are represented by the map array, as shown below: alt scan cntrl alt alt cntrl code base shift cntrl shift alt shift cntrl shift map[n] 0 1 2 3 4 5 6 7 ---- ------------------------------------------------------ 0x1E 'a' 'A' 0x01 0x01 'a' 'A' 0x01 0x01 This is the default mapping for the key labelled 'A' which normally has scancode 0x1E. The eight states are as shown, giving the 'A' key its normal behavior. The spcl field is used to give the key "special" treatment, and is interpreted as follows. Each bit corresponds to one of the states above. If the bit is 0 the key emits the number defined in the corresponding map[] entry. If the bit is 1 the key is "special". This means it does not emit anything; instead it changes the "state". That means it is a shift, control, alt, lock, switch-screen, function- key or no-op key. The bitmap is backwards i.e., 7 for base, 6 for shift etc. The flgs field defines if the key should react on caps-lock (1), num-lock (2), both (3) or ignore both (0). The kbdcontrol(1) utility is used to load such a description into/outof the kernel at runtime. This makes it possible to change the key assignments at runtime, or more important to get (GIO_KEYMAP ioctl) the exact key meanings from the kernel (e.g. used by the X server). The function keys can be programmed using the SETFKEY ioctl call. This ioctl takes an argument of the type fkeyarg_t: struct fkeyarg { u_short keynum; char keydef[MAXFK]; char flen; }; The field keynum defines which function key that is programmed. The array keydef should contain the new string to be used (MAXFK long), and the length should be entered in flen. The GETFKEY ioctl call works in a similar manner, except it returns the current setting of keynum. The function keys are numbered like this: F1-F12 key 1 - 12 Shift F1-F12 key 13 - 24 Ctrl F1-F12 key 25 - 36 Ctrl+shift F1-F12 key 37 - 48 Home key 49 Up arrow key 50 Page Up key 51 (keypad) - key 52 Left arrow key 53 (keypad) 5 key 54 Right arrow key 55 (keypad) + key 56 End key 57 Down arrow key 58 Page down key 59 Insert key 60 Delete key 61 Left window key 62 Right window key 63 Menu key 64 The kbdcontrol(1) utility also allows changing these values at runtime. AUTHORS
Soren Schmidt <sos@FreeBSD.org> BSD
January 8, 1995 BSD
All times are GMT -4. The time now is 11:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy