on master help sign in
BuildUnicodeTable: print out configuration advice after finishing
commitbd07727819ef698fb3ebe72a7235a063806442c8 authorJonathan Daugherty <cygnus@foobox.com> dateMon 2 Mar 2020, 14:27 (7 years ago) parentb73efb4
1 file changed+9−1
tools/BuildUnicodeTable.hs+9−1
tools/BuildUnicodeTable.hs+9−1
@@ -6,7 +6,7 @@ import System.Environment (getArgs, getProgName)
66import System.Exit (exitFailure)
77import System.Console.GetOpt
88
9−import Graphics.Vty.Config (terminalWidthTablePath)
9+import Graphics.Vty.Config (terminalWidthTablePath, currentTerminalName)
1010import Graphics.Vty.UnicodeWidthTable.IO
1111import Graphics.Vty.UnicodeWidthTable.Query
1212
@@ -77,3 +77,11 @@ main = do
7777 builtTable <- buildUnicodeWidthTable
7878 writeUnicodeWidthTable outputPath builtTable
7979 putStrLn $ "\nOutput table written to " <> outputPath
80+
81+ Just tName <- currentTerminalName
82+ putStrLn ""
83+ putStrLn "To configure your Vty-based applications to use this map, add"
84+ putStrLn "the following line to ~/.vty/config:"
85+ putStrLn ""
86+ putStrLn $ " widthMap " <> show tName <> " " <> show outputPath
87+ putStrLn ""