12-08-2005
There's several ways do that in vi...maybe you were using map
:map ; o123^V^M^V^[
^V = control V
^M = cntrol M
^[ = escape
Now ; will add a line with just 123.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hey all,
i am trying to connect my mac to my sony DVD changer so that i can control one aspect of it with any kind of shell script or program.
the DVD player allows you to plug in a PS/2 keyboard to navigate it's on screen menu. what i want to do is use my mac to navigate my own menus, then... (0 Replies)
Discussion started by: drzoomn
0 Replies
2. UNIX for Dummies Questions & Answers
A long time ago, I frequently used a small X11 utility that allows you to manage multiple systems at the same time.
It worked by opening a small window that had a button you used to "Add" X Clients to it. These would be xterms on different systems for example.
You would then type inside that... (5 Replies)
Discussion started by: Alon.Albert
5 Replies
3. Shell Programming and Scripting
Hello,
I have a ksh which can be run interactively with read etc waiting for input and so forth.
Do you have an idea how can I invoke the ksh and supply a sequence of keystrokes that will feed the executable flow so that it will automatically run as if someone actually walked through one prompt... (7 Replies)
Discussion started by: gio001
7 Replies
4. OS X (Apple)
I'm trying to find a good keylogger that doesn't come with any viruses. It happens to me several times that my browser crashes when I am in article writing or some other thing, very annoying. Thus, I need a keylogger to keep all my keystroke recorded. I 'v tried some, like the Aobo Mac Keylogger,... (1 Reply)
Discussion started by: Bluerosen
1 Replies
5. Programming
I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
Discussion started by: Ultrix
4 Replies
6. UNIX for Advanced & Expert Users
The third-party ERP system used by our company has no idle-out facility and we sometimes have issues because users simply walk away from their computers and leave sessions logged in for hours or even go home without logging out. (We are in a factory environment so it is hard to raise the care... (7 Replies)
Discussion started by: Wayne Ivory
7 Replies
7. Shell Programming and Scripting
We have a FORTRAN program that creates a report for our client. The client makes a number of selections as to what will appear on the report. However, the client has to repeat this everytime the report is run. I am trying to find a way to record what they've selected (their keystrokes) in UNIX and... (22 Replies)
Discussion started by: KathyB148
22 Replies
8. UNIX for Advanced & Expert Users
The last few weeks I've had a problem with Comcast in San Francisco (anyone else sharing the same issue ? Please share !)
During the late afternoon throughout early morning hours I see a high amount of dropped packets and increased latency when pinging my favorite destinations, like 8.8.8.8.
... (1 Reply)
Discussion started by: SandmanCL
1 Replies
9. Shell Programming and Scripting
Hello,
Need help using egrep
file format:
test.gz
Date, time, , number 1, number 2, counter...
20130618,912154, ,009912345678,911111111111,10000, , ,abc
20130618,982148, ,009101373810,034028791952294,8999, , ,gh
Want to extract number1 OR number2 records in files based on a two or... (8 Replies)
Discussion started by: vegasluxor
8 Replies
LEARN ABOUT OSX
glutignorekeyrepeat
glutIgnoreKeyRepeat(3GLUT) GLUT glutIgnoreKeyRepeat(3GLUT)
NAME
glutIgnoreKeyRepeat - determines if auto repeat keystrokes are reported to the current window
SYNTAX
#include <GLUT/glut.h>
void glutIgnoreKeyRepeat(int ignore);
ARGUMENTS
ignore Non-zero indicates auto repeat keystrokes should not be reported by the keyboard and special callbacks; zero indicates that auto
repeat keystrokes will be reported.
DESCRIPTION
glutIgnoreKeyRepeat determines if auto repeat keystrokes are reported to the current window. The ignore auto repeat state of a window can
be queried with glutDeviceGet(GLUT_DEVICE_IGNORE_KEY_REPEAT).
Ignoring auto repeated keystrokes is generally done in conjunction with using the glutKeyboardUpFunc and glutSpecialUpFunc callbacks to
repeat key releases. If you do not ignore auto repeated keystrokes, your GLUT application will experience repeated release/press call-
backs. Games using the keyboard will typically want to ignore key repeat.
GLUT IMPLEMENTATION NOTES FOR X11
X11 sends KeyPress events repeatedly when the window system's global auto repeat is enabled. glutIgnoreKeyRepeat can prevent these auto
repeated keystrokes from being reported as keyboard or special callbacks, but there is still some minimal overhead by the X server to con-
tinually stream KeyPress events to the GLUT application. The glutSetKeyRepeat routine can be used to actually disable the global sending
of auto repeated KeyPress events. Note that glutSetKeyRepeat affects the global window system auto repeat state so other applications will
not auto repeat if you disable auto repeat globally through glutSetKeyRepeat.
SEE ALSO
glutSetKeyRepeat, glutDeviceGet, glutKeyboardFunc, glutKeyboardUpFunc, glutSpecialFunc, glutSpecialUpFunc
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT
3.7 glutIgnoreKeyRepeat(3GLUT)