Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Adder timer to 1 of these columns Post 303038490 by bigvito19 on Wednesday 4th of September 2019 08:09:06 AM
Old 09-04-2019
Quote:
Originally Posted by Neo
What is your question, exactly?
I have 2 files that print on the same line at the same time. I wanted to add time.sleep() to 1 of the textfiles. I wanted to delay the time that 1 textfile prints with the other 1 in this script. I wanted to have the files to create new lines instead of printing the same combinations when they both print.
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

reply timer

Neo, can u please shorten the reply timer to like 1 min or so. It is prolly just me but i end up passing on replying to posts due to i hate waiting for my timer to reset w/ a 2.5 mins wait. (2 Replies)
Discussion started by: Optimus_P
2 Replies

2. AIX

how to implement timer

anyone can help me how to implement the timer on AIX? I tried with 'setitimer' and its related functions, but it does not work correctly,the program exited each time. thanks (2 Replies)
Discussion started by: Frank2004
2 Replies

3. Shell Programming and Scripting

writing a timer

Hi!, My shell script takes a quite a long time to execute.. Nothing appears on the screen during this period.. User are left guessing... whats going on???????????? Any ideas on how to create a small timer script which print a word on screen say " wait.. Program running" after every 10 seconds... (3 Replies)
Discussion started by: jyotipg
3 Replies

4. Shell Programming and Scripting

timer

Hi all, Wanted to a create a shell script ----------------------------------------------------------------------- 1) which when called will start a timer and wait for 48 hours. after 48 hours it will call some function(say XYZ) 2) Whenever this shell script is called (can be called... (3 Replies)
Discussion started by: k_oops9
3 Replies

5. Shell Programming and Scripting

VNC Timer

Hello fellows, I am new in this forum, i would appreciate your assistance. I need a timming system for my vnc desktops (Cybercafe timer stuff). Each unix user login to my server only with vnc, and i want to write a program that can generate timer tickets and have control on the time used for... (0 Replies)
Discussion started by: foweja
0 Replies

6. UNIX for Advanced & Expert Users

Timer for VNC

Hello fellows, I am new in this forum, i would appreciate your assistance. I need a timming system for my vnc desktops (Cybercafe timer stuff). Each unix user login to my server only with vnc, and i want to write a program that can generate timer tickets and have control on the time used for... (1 Reply)
Discussion started by: foweja
1 Replies

7. UNIX for Dummies Questions & Answers

timer interrupt

hello all since a process running in kernel mode cannnot be preempted by any other process what would be the status of Timer interrupt that occurs when the time quantum of a process is elapsed? thanks (2 Replies)
Discussion started by: compbug
2 Replies

8. Shell Programming and Scripting

Timer

Is there a way to make a timer? E.g Please give the seconds... ... (6 Replies)
Discussion started by: aekaramg20
6 Replies

9. UNIX for Dummies Questions & Answers

Timer

is there a timer function in unix without using C? for example i want to display a message after 5 seconds how do i do that? (2 Replies)
Discussion started by: khestoi
2 Replies

10. Shell Programming and Scripting

Timer as output

How do you set timer as output to the command line so that you get an output like Has been waiting for 5 seconds Has been waiting for 6 seconds ... Where only the number changes. (2 Replies)
Discussion started by: locoroco
2 Replies
XkbGetSlowKeysDelay(3)						   XKB FUNCTIONS					    XkbGetSlowKeysDelay(3)

NAME
XkbGetSlowKeysDelay - Gets the SlowKeys acceptance delay for a keyboard device SYNOPSIS
Bool XkbGetSlowKeysDelay (Display *display, unsigned int device_spec, unsigned int *delay_rtrn); ARGUMENTS
- display connection to X server - device_spec device ID, or XkbUseCoreKbd - delay_rtrn backfilled with SlowKeys delay, ms DESCRIPTION
Some users may accidentally bump keys while moving a hand or typing stick toward the key they want. Usually, the keys that are accidentally bumped are just hit for a very short period of time. The SlowKeys control helps filter these accidental bumps by telling the server to wait a specified period, called the SlowKeys acceptance delay, before delivering key events. If the key is released before this period elapses, no key events are generated. Users can then bump any number of keys on their way to the one they want without accidentally getting those characters. Once they have reached the key they want, they can then hold the desired key long enough for the computer to accept it. SlowKeys is a boolean control with one configurable attribute. When the SlowKeys control is active, the server reports the initial key press, subsequent acceptance or rejection, and release of any key to interested clients by sending an appropriate AccessXNotify event (see section 10.6.4). The server can generate XkbAccessXNotify events for some of the global keyboard controls. The detail field describes what AccessX event just occurred and can be any of the values in Table 1. The server can generate XkbAccessXNotify events for some of the global keyboard controls. The detail field describes what AccessX event just occurred and can be any of the values in Table 1. Table 1 AccessXNotify Events ------------------------------------------------------------- detail Reason ------------------------------------------------------------- XkbAXN_SKPress A key was pressed when SlowKeys was enabled. XkbAXN_SKAccept A key was accepted (held longer than the SlowKeys delay). XkbAXN_SKRelease An accepted SlowKeys key was released. XkbAXN_SKReject A key was rejected (released before the SlowKeys delay expired). XkbAXN_BKAccept A key was accepted by BounceKeys. XkbAXN_BKReject A key was rejected (pressed before the BounceKeys delay expired). XkbAXN_AXKWarning AccessXKeys is about to turn on/off StickyKeys or BounceKeys. The keycode field reports the keycode of the key for which the event occurred. If the action is related to SlowKeys, the slowKeysDelay field contains the current SlowKeys acceptance delay. If the action is related to BounceKeys, the debounceDelay field contains the current BounceKeys debounce delay. Selecting for AccessX Events To receive XkbAccessXNotify events under all possible conditions, use XkbSelectEvents and pass XkbAccesXNotifyMask in both bits_to_change and values_for_bits. To receive XkbStateNotify events only under certain conditions, use XkbSelectEventDetails using XkbAccessXNotify as the event_type and specifying the desired state changes in bits_to_change and values_for_bits using mask bits from Table 2. Table 2 AccessXNotify Event Details ------------------------------------------------------------------------- XkbAccessXNotify Event Details Value Circumstances ------------------------------------------------------------------------- XkbAXN_SKPressMask (1<<0) Slow key press notification wanted XkbAXN_SKAcceptMask (1<<1) Slow key accept notification wanted XkbAXN_SKRejectMask (1<<2) Slow key reject notification wanted XkbAXN_SKReleaseMask (1<<3) Slow key release notification wanted XkbAXN_BKAcceptMask (1<<4) Bounce key accept notification wanted XkbAXN_BKRejectMask (1<<5) Bounce key reject notification wanted XkbAXN_AXKWarningMask (1<<6) AccessX warning notification wanted XkbAllAccessXEventsMask (0x7f) All AccessX features notifica- tions wanted XkbGetSlowKeysDelay requests the attributes of the SlowKeys control from the server, waits for a reply and backfills delay_rtrn with the SlowKeys delay attribute. XkbGetSlowKeysDelay returns True if successful; , XkbGetSlowKeysDelay returns False. RETURN VALUES
True The XkbGetSlowKeysDelay function returns True if the request of the Slowkeys control from the server was successful. False The XkbGetSlowKeysDelay function returns False if a compatible version of the Xkb extension is not available in the server. STRUCTURES
The structure for the XkbAccessXNotify event type is as follows: typedef struct { int type; /* Xkb extension base event code */ unsigned long serial; /* X server serial number for event */ Bool send_event; /* True => synthetically generated */ Display * display; /* server connection where event generated */ Time time; /* server time when event generated */ int xkb_type; /* XkbAccessXNotify */ int device; /* Xkb device ID, will not be XkbUseCoreKbd */ int detail; /* XkbAXN_* */ KeyCode keycode; /* key of event */ int slowKeysDelay; /* current SlowKeys delay */ int debounceDelay; /* current debounce delay */ } XkbAccessXNotifyEvent; X Version 11 libX11 1.6.0 XkbGetSlowKeysDelay(3)
All times are GMT -4. The time now is 11:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy