Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 關於伺服器

SecureCRT 中文亂碼與全螢幕選單消失完美解決方案

編輯:關於伺服器

問題一:中文顯示亂碼 (方塊字/亂碼)

根因

遠端 Linux 系統 Locale 與 SecureCRT 字元編碼設定不一致,導致 UTF-8 字元無法正確渲染。

解決步驟

  1. 修改遠端 Linux Locale 為 UTF-8:
    # 編輯 locale 設定
    sudo vim /etc/sysconfig/i18n   # CentOS/RHEL 6
    # 或
    sudo vim /etc/locale.conf      # CentOS/RHEL 7+, Ubuntu, Debian
    
    # 設定為 UTF-8 中文或英文
    LANG="zh_CN.UTF-8"
    # 或 (推薦,避免終端機顯示中文選單亂碼)
    LANG="en_US.UTF-8"
    
    # 重新登入生效,或執行
    source /etc/sysconfig/i18n
  2. 設定 SecureCRT 會話編碼為 UTF-8:
    • 選單:Options → Session Options → Appearance
    • Character encoding 選擇 UTF-8
    • 確定 → 斷線重連
  3. 字型設定 (可選): 同頁面 Font 選擇支援中文的等寬字型 (如 Microsoft JhengHei、Consolas + Microsoft YaHei 連結字型)。

問題二:全螢幕模式下選單列消失,無法退出全螢幕

快速鍵解法

動作Windows/LinuxmacOS
切換全螢幕Alt + EnterCtrl + Cmd + F
彈出選單列 (Windows)Alt + V → 取消勾選 Full Screen—
macOS 選單列—滑鼠移至螢幕最上方 → 選單列自動顯示 → View → Full Screen 取消

永久設定:預設不進入全螢幕

  • Options → Global Options → General
  • 取消勾選 Start in full screen mode (若有)。

進階:鍵盤對應與終端機類型

  • Terminal → Emulation → Terminal:建議 xterm-256color 或 linux。
  • Terminal → Keyboard:Backspace 鍵送 DEL (ASCII 127) 或 Ctrl+H,視遠端 stty 設定調整。

總結檢查清單

  1. 遠端 LANG=*.UTF-8
  2. SecureCRT Session Options → Appearance → Character encoding = UTF-8
  3. 字型支援中文
  4. 全螢幕熱鍵:Alt+Enter (Win/Linux) / Ctrl+Cmd+F (Mac)

完成以上設定,SecureCRT 即可完美支援中文顯示與全螢幕操作。

Copyright © Windows教程網 All Rights Reserved