Sponsored Content
Full Discussion: Very new newbie question
Top Forums UNIX for Dummies Questions & Answers Very new newbie question Post 91052 by ppierald on Tuesday 29th of November 2005 03:48:04 PM
Old 11-29-2005
Are you using X?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

newbie question

hi im thinking of getting unix but i have no idea where to start I know that its an OS similar to linux but what hardware does in run on? i've heard of solaris but im not quit sure what it is thankxs (3 Replies)
Discussion started by: ninja
3 Replies

2. UNIX Desktop Questions & Answers

Newbie Question

I am fairly new to *nix/linux and I have just installed SuSe 8.2. I am wondering what skills would be good to learn. I know that I will need to learn how to write scripts, but what scripting languages should I learn. I greatly appreciate any and all comments. ... (5 Replies)
Discussion started by: Ntalektual
5 Replies

3. UNIX for Dummies Questions & Answers

Newbie Question

Hi, I have a file, that is delimited by :: and the purpose of this file is none of your business. ;) There are about 65000 lines in this file, and there are lines that I would like to remove. About 45000 of them. Is there some sort of commands that I can run, to remove word(s) from this... (4 Replies)
Discussion started by: th3gh05t
4 Replies

4. Shell Programming and Scripting

Newbie question

Hello, I have text file while looks this test1 test2 test3 test4 test5 test6 and if I want to parse it and make new file which would like this test1 test2 test3 test4 test5 test6 How can I do this in korn shell script Thanks (9 Replies)
Discussion started by: peeyush_23
9 Replies

5. UNIX for Dummies Questions & Answers

newbie question

I am taking a db classes toward oracle 10g. I am taking unix as well . I need to know what is the best option for os . should I use linux fedora. or get a sun box and start learning from there. Thanks (6 Replies)
Discussion started by: xzyan
6 Replies

6. UNIX for Dummies Questions & Answers

Newbie question?

What is the best way to learn UNIX on the web, with out buying books? any link would be much help. Thank you in advance, L (1 Reply)
Discussion started by: lsoria1
1 Replies

7. Programming

Newbie question

Dear all, I have a question related to parallel programing and if you can give me some hints on how to deal with it, it would be really great. I would like to run a small application on a supercompter of 128 CPUs. Unfortunately, on this machine only jobs which require 32 CPUs are allowed to... (1 Reply)
Discussion started by: Eduard
1 Replies

8. UNIX for Dummies Questions & Answers

UNIX newbie NEWBIE question!

Hello everyone, Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware. I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies

9. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

10. UNIX for Dummies Questions & Answers

newbie question

Hi all, I am sure this is very simple but I cant quite get it. I am trying to search textfile1.txt for a string then take the results of the search and append the result to textfile3.txt So far I have used $ find file1.txt -exec grep "string i am looking for" '{}' \; -print this... (2 Replies)
Discussion started by: radgator
2 Replies
XChangeKeyboardControl()												  XChangeKeyboardControl()

Name
  XChangeKeyboardControl - change the keyboard preferences such as key click.

Synopsis
  XChangeKeyboardControl(display, value_mask, values)
	Display *display;
	unsigned long value_mask;
	XKeyboardControl *values;

Arguments
  display   Specifies a connection to an X server; returned from XOpenDisplay().

  value_mask
	    Specifies a mask composed of ORed symbols from the table shown in the Structures section below, specifying which fields to set.

  values    Specifies the settings for the keyboard preferences.

Description
  XChangeKeyboardControl()  sets user preferences such as key click, bell volume and duration, light state, and keyboard auto-repeat.  Chang-
  ing some or all these settings may not be possible on all servers.

  The value_mask argument specifies which values are to be changed; it is made by combining any number of the mask symbols

  The values structure contains the values to be set, as follows:

  key_click_percent sets the volume for key clicks between 0 (off) and 100 (loud) inclusive.  Setting to -1 restores the default.

  bell_percent sets the base volume for the bell between 0 (off) and 100 (loud) inclusive.  Setting to -1 restores the default.

  bell_pitch sets the pitch (specified in Hz) of the bell.  Setting to -1 restores the default.

  bell_duration sets the duration (specified in milliseconds) of the bell.  Setting to -1 restores the default.

  led_mode is either LedModeOn or LedModeOff.  led is a number between 1 and 32 inclusive  that  specifies  which  light's  state  is  to  be
  changed.  If both led_mode and led are specified, then the state of the LED specified in led is changed to the state specified in led_mode.
  If only led_mode is specified, then all the LEDs assume the value specified by led_mode.

  auto_repeat_mode is either AutoRepeatModeOn, AutoRepeatModeOff, or AutoRepeatModeDefault.  key is a keycode between 7  and  255  inclusive.
  If  both  auto_repeat_mode  and  key	are  specified,  then  the  auto-repeat  mode  of  the	key  specified	by key is set as specified by
  auto_repeat_mode.  If only auto_repeat_mode is specified, then the global auto repeat mode for the  entire  keyboard	is  changed,  without
  affecting  the  settings for each key.  If the auto_repeat_mode is AutoRepeatModeDefault for either case, the key or the entire keyboard is
  returned to its default setting for the server, which is normally to have all non-modal keys repeat.

  When a key is being used as a modifier key, it does not repeat regardless of the individual or global auto repeat mode.

  The order in which the changes are performed is server-dependent, and some may be completed when another causes an error.

  For more information on user preferences, see Volume One, Chapter 9, The Keyboard and Pointer.

Structures
     /* masks for ChangeKeyboardControl */

     #define KBKeyClickPercent	  (1L<<0)
     #define KBBellPercent	  (1L<<1)
     #define KBBellPitch	  (1L<<2)
     #define KBBellDuration	  (1L<<3)
     #define KBLed		  (1L<<4)
     #define KBLedMode		  (1L<<5)
     #define KBKey		  (1L<<6)
     #define KBAutoRepeatMode	  (1L<<7)

     /* structure for ChangeKeyboardControl */

     typedef struct {
	 int key_click_percent;
	 int bell_percent;
	 int bell_pitch;
	 int bell_duration;
	 int led;
	 int led_mode;		  /* LedModeOn or LedModeOff */
	 int key;
	 int auto_repeat_mode;	  /* AutoRepeatModeOff, AutoRepeatModeOn,
					 AutoRepeatModeDefault */
     } XKeyboardControl;

Errors
  BadMatch  values.key specified but values.auto_repeat_mode not specified.
	    values.led	specified but values.led_mode not specified.

  BadValue  values.key_click_percent < -1.
	    values.bell_percent < -1.
	    values.bell_pitch < -1.
	    values.bell_duration < -1.

See Also
  XAutoRepeatOff(), XAutoRepeatOn(), XBell(), XGetDefault(), XGetKeyboardControl(), XGetPointerControl().

Xlib - User Preferences 												  XChangeKeyboardControl()
All times are GMT -4. The time now is 12:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy