mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-09 08:21:51 -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
|
Added `compgenDirectories` and `compgenFiles` to get the directory/filename completion
|
||||||
matches returned by the compgen shell builtin.
|
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`
|
* `XMonad.Hooks.DynamicLog`
|
||||||
|
|
||||||
Added `statusBar'` function, like existing `statusBar` but accepts a pretty
|
Added `statusBar'` function, like existing `statusBar` but accepts a pretty
|
||||||
|
@@ -112,8 +112,10 @@ mkUnicodePrompt prog args unicodeDataFilename config =
|
|||||||
let m = searchUnicode entries s
|
let m = searchUnicode entries s
|
||||||
return . map (\(c,d) -> printf "%s %s" [c] d) $ take 20 m
|
return . map (\(c,d) -> printf "%s %s" [c] d) $ take 20 m
|
||||||
paste [] = return ()
|
paste [] = return ()
|
||||||
paste (c:_) = do
|
paste (c:_) = liftIO $ do
|
||||||
runProcessWithInput prog args [c]
|
handle <- spawnPipe $ unwords $ prog : args
|
||||||
|
hPutChar handle c
|
||||||
|
hClose handle
|
||||||
return ()
|
return ()
|
||||||
|
|
||||||
-- | Prompt the user for a Unicode character to be inserted into the paste buffer of the X server.
|
-- | 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