Skip to content

A kernel module (driver) that acts as a command line clip board

Notifications You must be signed in to change notification settings

AnthonyChiavelli/gclip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

-- Under construction --

gclip

Gclip is a simple stack-based clipboard utility for the command line. It is interfaces through a char device file (/dev/gclip). Clippings are written to this file and added to a stack. Reading from the file yields (and removes) the top clipping in the stack.

Usage

To install gclip:
      tar -xvf gclip.tar.gz
      cd gclip
      make
      sudo make install

      Note: If you wish to create the device file yourself, skip the install step

To use:
      echo "Hello" > /dev/gclip
      echo "World" > /dev/gclip
      cat /dev/gclip
            $ World
      cat /dev/gclip
            $ Hello

Details

Gclip is a kernel module that is interfaced through a char device file. Characters are read in until an EOF is indicated, at which point stack memory is allocated and the clipping is placed on the stack. Reading from /dev/gclip will yield characters until the end of thc clipping is reached, at which point gclip will fail to return further data until another write request is made.

About

A kernel module (driver) that acts as a command line clip board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages