on master help sign in
always use xterm instead of xterm-color

Ignore-this: 8d4cfa341737290052743ff390ed4882 darcs-hash:20091118011646-f0a0d-857b09771d19b8bd9ee626e1b45499a070ef9998.gz

commit16d01cb72cb4d174a3a09a3840514e547b115163 authorcoreyoconnor <coreyoconnor@gmail.com> dateTue 17 Nov 2009, 17:16 (17 years ago) parentb637a64
1 file changed+5−2
src/Graphics/Vty/Terminal/XTermColor.hs+5−2
src/Graphics/Vty/Terminal/XTermColor.hs+5−2
@@ -25,9 +25,12 @@ data XTermColor = XTermColor
2525-- Regardless of what is output the text encoding is assumed to be UTF-8
2626terminal_instance :: ( Applicative m, MonadIO m ) => String -> m XTermColor
2727terminal_instance variant = do
28+ -- If the terminal variant is xterm-color use xterm instead since, more often than not,
29+ -- xterm-color is broken.
30+ let variant' = if variant == "xterm-color" then "xterm" else variant
2831 flushed_put set_utf8_char_set
29− t <- TerminfoBased.terminal_instance variant >>= new_terminal_handle
30− return $ XTermColor variant t
32+ t <- TerminfoBased.terminal_instance variant' >>= new_terminal_handle
33+ return $ XTermColor variant' t
3134
3235flushed_put :: MonadIO m => String -> m ()
3336flushed_put str = do