Hi, I'm just wondering where in the source files of a linux kernel I would be able to find the code which takes care of copying and pasting? I'm interested in modifying it but don't know where to look to find it.
Thanks
Hi, I'm just wondering where in the source files of a linux kernel I would be able to find the code which takes care of copying and pasting? I'm interested in modifying it but don't know where to look to find it.
Thanks
I don't think Linux handles copy paste. The kernel's function is to handle interaction between the hardware and the OS.
Usually that behavior(copy/paste) is part of the applications you may use.
Try looking in the source code for emacs or vi for examples.
Clipboard functionality is indeed not handled by the kernel but instead by the X window system and the active desktop manager (Gnome, KDE).
Take a look here: http://en.wikipedia.org/wiki/Clipboard_%28software%29#X_Window_System
The usage and handling of various selections is not standardized. However most modern toolkits and desktop environments, such as GNOME or KDE, follow a widely accepted convention, outlined in the freedesktop.org specification.
This sort of thing is not handled by the kernel, but by the X windowing system and applications.
I suggest you read this wikipedia article on X Window selection
All you X addicts forget about the lovely console (and with that I don't mean terminal emulators like xterm and urxvt)! At the console, the copy-paste functionality is provided by gpm.