qian
V2EX  ›  问与答

怎么提高 iTerm2 log 可读性

  •  
  •   qian · Apr 20, 2014 · 2963 views
    This topic created in 4496 days ago, the information mentioned may be changed or developed.
    在 Prefs > Profiles > Session > 勾上 Automatically log session input to files in

    Log 是:
    Last login: Sun Apr 20 11:20:20 on ttys000
    [1m [7m% [27m [1m [0m

    ]2;username@hostname: ~ ]1;~
    [0m [27m [24m [J [01;32m➜ [01;32m [36m~ [01;34m [01;34m [00m [K [?1h =

    这些貌似叫“escaped characters”的东西怎么去掉...

    Thx..
    2 replies    1970-01-01 08:00:00 +08:00
    ijse
        1
    ijse  
       Apr 20, 2014
    把终端改成Linux, 选上ANSI Color, Character encoding 改成UTF-8
    qian
        2
    qian  
    OP
       Apr 20, 2014
    @ijse 在GUI上改的。iTerm2 Pref > Profiles > Terminal > Char Encoding 默认就是 UTF-8, 把 Report Term Type xterm 改成 linux。

    iTerm2 Pref > Profiles > Colors 默认就是选上 ANSI Color 的吧。

    iTerm2 重新打开,看log,还是跟以前一样。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   949 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:07 · PVG 04:07 · LAX 13:07 · JFK 16:07
    ♥ Do have faith in what you're doing.