10 More Discussions You Might Find Interesting
1. Red Hat
Hello everybody
At the beginning i would like to apologize for my english and im not sure if this thread is in the right place so if it isn't please move it to other one.
Ok let's start.
I have to admit that i am totally beginner with ldap but i really would like to learn how to configure it.... (0 Replies)
Discussion started by: alan200
0 Replies
2. UNIX for Advanced & Expert Users
I'm having an issue with keystoke logging. As we know in unix you can press tab to auto-complete a command or whatever it is you are typing. Well keystoke logging in /var/log/ks, tabs are actually showing up as tabs rather than whatever the auto-completion was.
Any ideas? (5 Replies)
Discussion started by: scj2012
5 Replies
3. UNIX for Dummies Questions & Answers
i have the below script:
#!/bin/bash
echo "enter a"
read a
echo "enter b"
read b
let c=a+b
echo $c
at any point of time between entering the value for a and b,if user presses ctrl+a key combination, then it should start from the beginning(the script should be restarted).
it should... (4 Replies)
Discussion started by: pandeesh
4 Replies
4. Shell Programming and Scripting
Hi All ,
I am writing a shell script for a 3D test case . The 3D Test case involves the user to press some keys to see the changes in the 3d test case . The user has to press p , r , a , z etc to observe the changes on screen .
Now please let me know how can i implement the keystroke p , a ,... (1 Reply)
Discussion started by: dskonnur
1 Replies
5. Cybersecurity
Hi all,
Does anyone know if there is a tool in the market that could do the following when System Admin log to the server as root and perform activities according to his change request:
- trap or log his keystroke for the entire duration
- provide a report on the changes SA has made to the... (3 Replies)
Discussion started by: mohzub
3 Replies
6. UNIX for Advanced & Expert Users
can anyone please guide me for changing objectclass
Current objectclass
objectClasses: ( 2.5.6.6 NAME 'person' DESC 'RFC2256: a person' SUP top STRUCTURAL MUST ( sn $ cn ) MAY ( userPassword $ telephoneNumber $ seeAlso $ description ) )
Wanted like this
objectClasses: ( 2.5.6.6 NAME... (0 Replies)
Discussion started by: jagnikam
0 Replies
7. Shell Programming and Scripting
Hello All,
I wounder if any one know if perl have the ability to run script in the background which record each keyboard keystorke?
If yes , how can I implement the part which reading the keyboard keystroke?
Is there any moudle that handle it ?
Thanks a head
Alalush (1 Reply)
Discussion started by: Alalush
1 Replies
8. Solaris
Hello
I am unable to enter my password because the OS does not respond to my keystrokes in the password field at the log-in menu, even though it does in the username field. I have no clue how to troubleshoot this. Please help me out.
Thank you (11 Replies)
Discussion started by: dai2809
11 Replies
9. UNIX for Dummies Questions & Answers
Hi,
How to track/trap the keyboard strokes in the script
say for eg, in normal scene, when a script is running, if a press control c, the program gets terminated...
so in this case, how do i trap the keystrokes so as to avoid the abort of the program..
pls help (1 Reply)
Discussion started by: vasikaran
1 Replies
10. Linux
Don't you just hate crackers?
Ok, I have a user on my server who is always causing trouble. He is constantly trying to get into files, change stuff, get users passwords, etc. I was wondering if Linux has a built in keystroke log, or event log of some sort that I may use to track his movements. ... (4 Replies)
Discussion started by: Phobos
4 Replies
cdk_traverse(3) Library Functions Manual cdk_traverse(3)
NAME
cdk_traverse - functions to support keyboard traversal
SYNOPSIS
cc [ flag ... ] file ... -lcdk [ library ... ]
#include <cdk.h>
CDKOBJS *getCDKFocusCurrent (CDKSCREEN *screen);
CDKOBJS *setCDKFocusCurrent (CDKSCREEN *screen, CDKOBJS *obj);
CDKOBJS *setCDKFocusFirst (CDKSCREEN *screen);
CDKOBJS *setCDKFocusLast (CDKSCREEN *screen);
CDKOBJS *setCDKFocusNext (CDKSCREEN *screen);
CDKOBJS *setCDKFocusPrevious (CDKSCREEN *screen);
int traverseCDKScreen (CDKSCREEN *screen);
void exitOKCDKScreen (CDKSCREEN *screen);
void exitCancelCDKScreen (CDKSCREEN *screen);
void resetCDKScreen (CDKSCREEN *screen);
void exitOKCDKScreenOf(CDKOBJS *obj);
void exitCancelCDKScreenOf (CDKOBJS *obj);
void resetCDKScreenOf (CDKOBJS *obj);
void traverseCDKOnce (
CDKSCREEN *screen,
CDKOBJS *curobj,
int keyCode,
boolean functionKey,
CHECK_KEYCODE funcMenuKey);
DESCRIPTION
The functions above handle the traversal of a screen populated with various widgets. Once the screen has been created and populated with
widgets, a single call to traverseCDKScreen() will allow the user to move between widgets and enter data (or otherwise manipulate widgets).
Other functions are provided for use as callbacks by the widgets on the screen. Finally, there are several functions which allow the call-
er to manipulate the state of the traversal, i.e., the object which has focus.
In order for widgets to be used on a screen which is to be handled by traverseCDKScreen(), it must have the following methods available:
injectCharObj
inputWindowObj
focusObj
unfocusObj
saveDataObj
refreshDataObj
In addition, the following object properties must be properly handled:
acceptsFocus
hasFocus
inputWindow
dataPtr
dataType
At the time of this writing, not all widgets have been modified to work with the screen-traversal facility.
AVAILABLE FUNCTIONS
int traverseCDKScreen (CDKSCREEN *screen);
This function contains the main screen traversal engine. It does the following:
1. Calls the refreshData method on each of the widgets to tell them to update their appearance to match the data which are referenced
by their respective data pointers.
2. Calls the focusObject method on the first widget.
3. Repeats the following until one of the exit functions listed above has been called:
* Read a keystroke from the keyboard.
* If the keystroke is ESCAPE and a menu widget is present, activate the menu and traverse it until the user selects an entry or
hits TAB.
* If the keystroke is TAB/BACKTAB then call the unfocusObject method on the current widget, and move focus to the next/previous
widget (not counting menu widgets). Call the focusObject method on the newly current widget.
* If the keystroke is the EXIT-SAVE keystroke, then call the saveData method on each widget and return 1.
* If the keystroke is the EXIT-CANCEL keystroke, return 0 without saving changes made by the user.
* If the keystroke is the RESET-DATA keystroke, then call the refreshData method on each of the widgets to reset their appearance
to match the data values that were present upon entry.
* Otherwise, pass the keystroke to the current widget.
CDKOBJS *getCDKFocusCurrent (CDKSCREEN *screen);
Return a pointer to the object which currently has focus in the given screen.
CDKOBJS *setCDKFocusCurrent (CDKSCREEN *screen, CDKOBJS *obj);
Set the focus to the given object, if the screen contains that object. If the screen does not contain the object, return null. Oth-
erwise, return the object.
CDKOBJS *setCDKFocusFirst (CDKSCREEN *screen);
Set focus on the first object in the given screen.
CDKOBJS *setCDKFocusLast (CDKSCREEN *screen);
Set focus on the last object in the given screen.
CDKOBJS *setCDKFocusNext (CDKSCREEN *screen);
Set focus on the next object in the given screen.
CDKOBJS *setCDKFocusPrevious (CDKSCREEN *screen);
Set focus on the previous object in the given screen.
exitOKCDKScreen
Causes the traversal engine to exit after calling the saveData method for each of the widgets.
exitOKCDKScreenOf
Calls exitOKCDKScreen() on the screen associated with widget obj. This function was designed to be used as a callback routine for a
button widget used as an OK button on a data-entry screen.
exitCancelCDKScreen
Causes the traversal engine to exit without saving user modified data.
exitCancelCDKScreenOf
Calls exitCancelCDKScreen() on the screen associated with widget obj. This function was designed to be used as a callback routine for a
button widget used as a Cancel button on a data-entry screen.
resetCDKScreen
Causes the traversal engine to call the refreshData method for each widget. This will cause any unsaved changes to be discarded and the
widget states will be restored to their initial values.
resetCDKScreenOf
Calls resetCDKScreen() on the screen associated with widget obj. This function was designed to be used as a callback routine for a but-
ton widget used as a Reset button on a data-entry screen.
traverseCDKOnce
This is a utility function, one of the pieces from which you can construct a customized version of traverseCDKScreen.
BUGS
Not all widgets have had the extra methods added so that they work with the screen traversal engine.
AUTHOR
Grant Edwards, Aspen Research Corporation
Thomas Dickey and contributors.
SEE ALSO
cdk(3), cdk_binding(3), cdk_display(3), cdk_screen(3)
cdk_traverse(3)