From ee0a58ea0a471eb423a96e1778832f35b5bff43f Mon Sep 17 00:00:00 2001 From: gwern0 Date: Wed, 24 Oct 2007 02:13:41 +0200 Subject: Run.hs, SshPrompt.hs, ShellPrompt.hs: mv runInXTerm back into Run.hs per suggestions darcs-hash:20071024001341-f7719-6ea9cf7134f0300c53e85cddfff1e320039c115b.gz --- ShellPrompt.hs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'ShellPrompt.hs') diff --git a/ShellPrompt.hs b/ShellPrompt.hs index c24c842..a8222fd 100644 --- a/ShellPrompt.hs +++ b/ShellPrompt.hs @@ -20,7 +20,6 @@ module XMonadContrib.ShellPrompt ( , split , prompt , safePrompt - , runInXTerm ) where import System.Environment (getEnv) @@ -76,12 +75,6 @@ safePrompt c config = mkXPrompt Shell config (getShellCompl [c]) run unsafePrompt c config = mkXPrompt Shell config (getShellCompl [c]) run where run a = unsafeSpawn $ c ++ " " ++ a --- This may be better done as a specialization of 'prompt' -runInXTerm :: String -> X () -runInXTerm com = do - c <- io $ catch (getEnv "XTERMCMD") (const $ return "xterm") - spawn ("exec " ++ c ++ " -e " ++ com) - getShellCompl :: [String] -> String -> IO [String] getShellCompl cmds s | s == "" || last s == ' ' = return [] | otherwise = do -- cgit v1.2.3