diff options
author | gwern0 <gwern0@gmail.com> | 2007-10-19 20:09:00 +0200 |
---|---|---|
committer | gwern0 <gwern0@gmail.com> | 2007-10-19 20:09:00 +0200 |
commit | b1b88b0feda71b8092386963d36da11a8d0472be (patch) | |
tree | 7628d2bb5b002aa4142c376a2dd56271f84c9373 /Run.hs | |
parent | 24f22c3a558181ac176c28f8ca836db6d51b011b (diff) | |
download | XMonadContrib-b1b88b0feda71b8092386963d36da11a8d0472be.tar.gz XMonadContrib-b1b88b0feda71b8092386963d36da11a8d0472be.tar.xz XMonadContrib-b1b88b0feda71b8092386963d36da11a8d0472be.zip |
Run.hs, ShellPrompt.sh: mv runInXTerm to ShellPrompt.hs
darcs-hash:20071019180900-f7719-6d6ef4a67f2ccae639e9e79c49fd80dd32d746c5.gz
Diffstat (limited to 'Run.hs')
-rw-r--r-- | Run.hs | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -18,7 +18,6 @@ module XMonadContrib.Run ( -- * Usage -- $usage - runInXTerm, runProcessWithInput, runProcessWithInputAndWait, seconds @@ -78,13 +77,9 @@ runProcessWithInputAndWait cmd args input timeout = do getProcessStatus True False pid return () -runInXTerm :: String -> X () -runInXTerm com = do - c <- io $ catch (getEnv "XTERMCMD") (const $ return "xterm") - spawn ("exec " ++ c ++ " -e " ++ com) - --- | Multiplies by ONE MILLION, for use with runProcessWithInputAndWait. --- Use like: --- > (5.5 `seconds`) +{- | Multiplies by ONE MILLION, for use with runProcessWithInputAndWait. + Use like: + > (5.5 `seconds`) +-} seconds :: Rational -> Int seconds = fromEnum . (* 1000000) |