mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-08 16:01:53 -07:00
XMonad.Prompt.Unicode: use spawnPipe instead of runProcessWithInput
This commit is contained in:
@@ -112,8 +112,10 @@ mkUnicodePrompt prog args unicodeDataFilename config =
|
||||
let m = searchUnicode entries s
|
||||
return . map (\(c,d) -> printf "%s %s" [c] d) $ take 20 m
|
||||
paste [] = return ()
|
||||
paste (c:_) = do
|
||||
runProcessWithInput prog args [c]
|
||||
paste (c:_) = liftIO $ do
|
||||
handle <- spawnPipe $ unwords $ prog : args
|
||||
hPutChar handle c
|
||||
hClose handle
|
||||
return ()
|
||||
|
||||
-- | Prompt the user for a Unicode character to be inserted into the paste buffer of the X server.
|
||||
|
Reference in New Issue
Block a user