Skip to content
forked from jetho/Hclip

A small cross-platform library for reading and modifying the system clipboard

License

Notifications You must be signed in to change notification settings

jcpetruzza/Hclip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hclip

A small cross-platform library for reading and modifying the system clipboard.

Hclip works on Windows, Mac OS X and Linux (but see the requirements below!).

Requirements

  • Windows: No additional requirements.
  • Mac OS X: Requires the pbcopy and pbpaste commands, which ship with Mac OS X.
  • Linux: Requires xclip or xsel installed.

Example Usage

λ: :m System.Hclip
λ: setClipboard "Haskell"
λ: getClipboard
"Haskell"
λ: modifyClipboard (reverse . map toUpper)
"LLEKSAH"
λ: :m +Control.Exception
λ: let f = zipWith ($) (cycle [toUpper, toLower])
λ: try (modifyClipboard (reverse . f)) :: IO (Either ClipboardException String)
Right "HaSkElL"

About

A small cross-platform library for reading and modifying the system clipboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published