mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-09 00:11:52 -07:00
XMonad.Prompt.Unicode: use spawnPipe instead of runProcessWithInput
This commit is contained in:
@@ -119,6 +119,11 @@
|
||||
Added `compgenDirectories` and `compgenFiles` to get the directory/filename completion
|
||||
matches returned by the compgen shell builtin.
|
||||
|
||||
* `XMonad.Prompt.Unicode`
|
||||
|
||||
Reworked internally to be call `spawnPipe` (asynchronous) instead of
|
||||
`runProcessWithInput` (synchronous), which fixes `typeUnicodePrompt`.
|
||||
|
||||
* `XMonad.Hooks.DynamicLog`
|
||||
|
||||
Added `statusBar'` function, like existing `statusBar` but accepts a pretty
|
||||
|
@@ -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