AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / unix / Perguntas / 414235
Accepted
user1610950
user1610950
Asked: 2018-01-02 21:05:12 +0800 CST2018-01-02 21:05:12 +0800 CST 2018-01-02 21:05:12 +0800 CST

fonte unicode xterm

  • 772

Estou tendo alguns problemas com o rxvt-unicode usando grandes quantidades de RAM, talvez por causa do uso de fontes CJK.

Por outro lado, não consigo fazer com que o XTerm exiba o texto CJK.

Aqui está o meu XTerm Xresources.

!------------- XTerm Setup ----------------------!
XTerm.termName: xterm-256color
XTerm.vt100*locale: true
XTerm.vt100*utf8: 2
XTerm.vt100*jumpScroll: true
XTerm.vt100*loginshell: true

XTerm.vt100*cursorBlink:          true
XTerm.vt100*cursorColor:          #657b83
XTerm.vt100*cursorUnderline:      false
XTerm.vt100*saveLines: 999999999999999999999999

!------------- copy-paste ----------------------!
XTerm.vt100*selectToClipboard: true
XTerm.vt100*translations: #override \
        Ctrl Alt <Key>C: copy-selection(CLIPBOARD) \n\
        Ctrl Alt <Key>V: insert-selection(CLIPBOARD) \n\
        Ctrl <Key> minus: smaller-vt-font() \n\
        Ctrl <Key> plus: larger-vt-font() \n\
        Ctrl <Key> 0: set-vt-font(d)

!------------- fonts ----------------------!
XTerm.vt100*allow_bold: true
XTerm.vt100*faceName: Noto Mono
XTerm*faceSize: 8
XTerm*renderFont: true

!------------- solarized ----------------------!
XTerm.vt100*background: #002b36
XTerm.vt100*foreground: #657b83
XTerm.vt100*fadeColor: #002b36
XTerm.vt100*pointerColorBackground: #586e75
XTerm.vt100*pointerColorForeground: #93a1a1

!! black dark/light
XTerm.vt100*color0: #073642
XTerm.vt100*color8: #002b36

!! red dark/light
XTerm.vt100*color1: #dc322f
XTerm.vt100*color9: #cb4b16

!! green dark/light
XTerm.vt100*color2: #859900
XTerm.vt100*color10: #586e75

!! yellow dark/light
XTerm.vt100*color3: #b58900
XTerm.vt100*color11: #657b83

!! blue dark/light
XTerm.vt100*color4: #268bd2
XTerm.vt100*color12: #839496

!! magenta dark/light
XTerm.vt100*color5: #d33682
XTerm.vt100*color13: #6c71c4

!! cyan dark/light
XTerm.vt100*color6: #2aa198
XTerm.vt100*color14: #93a1a1

!! white dark/light
XTerm.vt100*color7: #eee8d5
XTerm.vt100*color15: #fdf6e3

!!! white color for BOLD TEXT
!!! green color for ITALICS TEXT
XTerm.vt100*colorBD: white
XTerm.vt100*colorIT: green

! mouse curson settings
XTerm.vt100*theme: whiteglass
XTerm.vt100*size: 32

minha configuração RXvt é bem parecida:

xft.dpi:                    220
xft.antialias:              false
xft.rgba:                   rgb
xft.hinting:                true
xft.hintstyle:              hintslight

! mouse curson settings
xcursor.theme: whiteglass
xcursor.size: 32

configuração do urxvt

urxvt.termname:             rxvt-unicode-256color
urxvt.depth:                32
urxvt.geometry:             90x30
urxvt.transparent:          false
urxvt.fading:               0
urxvt.loginshell:           true
urxvt.savelines:            100000000
urxvt.internalborder:       3
urxvt.linespace:            0

! ibus
urxvt.inputmethod: ibus
urxvt.preedittype: overthespot

! fonts
urxvt.allow_bold:           true
urxvt*font: xft:fira mono-regular:pixelsize=24
urxvt*boldfont: xft:fira mono-bold:pixelsize=28


! fix font space
urxvt*letterspace: -1

! scrollbar
urxvt.scrollstyle:          rxvt
urxvt.scrollbar:            false

! perl extensions
urxvt.perl-ext-common:      default,matcher
urxvt.matcher.button:       1
urxvt.urllauncher:          firefox

! cursor
urxvt.cursorblink:          true
urxvt.cursorcolor:          #657b83
urxvt.cursorunderline:      false

! pointer
urxvt.pointerblank:         true

!!source http://github.com/altercation/solarized

urxvt.background: #002b36
urxvt.foreground: #657b83
urxvt.fadecolor: #002b36
urxvt.pointercolorbackground: #586e75
urxvt.pointercolorforeground: #93a1a1

!! black dark/light
urxvt.color0: #073642
urxvt.color8: #002b36

!! red dark/light
urxvt.color1: #dc322f
urxvt.color9: #cb4b16

!! green dark/light
urxvt.color2: #859900
urxvt.color10: #586e75

!! yellow dark/light
urxvt.color3: #b58900
urxvt.color11: #657b83

!! blue dark/light
urxvt.color4: #268bd2
urxvt.color12: #839496

!! magenta dark/light
urxvt.color5: #d33682
urxvt.color13: #6c71c4

!! cyan dark/light
urxvt.color6: #2aa198
urxvt.color14: #93a1a1

!! white dark/light
urxvt.color7: #eee8d5
urxvt.color15: #fdf6e3

urxvt.colorbd: white
urxvt.colorit: green

Meu script de inicialização do X executa esses comandos.

setenv XIM ibus
setenv GTK_IM_MODULE ibus
setenv QT_IM_MODULE ibus
setenv XMODIFIERS @im=ibus
setenv XIM_PROGRAM ibus-daemon
setenv XIM_ARGS "--daemonize --replace --xim"

ibus-daemon --daemonize --replace --xim & 
ibus engine chewing &

Com isso, o XTerm falha ao digitar qualquer fonte unicode, nenhuma entrada ou saída CJK, copiar e colar mostra espaços vazios.

RXVT-Unicode funciona, mas usa muito ram 10719 usuário 1 20 0 22697M 253M select 3 0:01 0,47%

urxvt
 8197 user        1  20    0 22693M   250M select  7   0:01   0.00% urxvt
10184 user        1  20    0 11411M   252M select  5   0:01   0.00% urxvt
 8123 user        1  20    0 11402M   249M select  5   0:01   0.00% urxvt
 8090 user        1  20    0 11402M   249M select  1   0:26   0.00% urxvt
10706 user        1  20    0 11402M   249M select  6   0:00   0.00% urxvt
 8257 user        1  20    0 11401M   249M select  2   0:28   0.05% urxvt

Alguma ideia para; Corrigir o alto uso de RAM no RXvt-unicode Obter XTerm para exibir Unicode Outros emuladores de terminal leves?

terminal memory
  • 1 1 respostas
  • 1884 Views

1 respostas

  • Voted
  1. Best Answer
    Thomas Dickey
    2018-01-03T00:58:48+08:002018-01-03T00:58:48+08:00

    A limitação é com estas configurações:

    XTerm.vt100*faceName: Noto Mono
    XTerm*faceSize: 8
    XTerm*renderFont: true
    

    O xterm suporta uma única fonte (sem conjuntos de fontes, que são mesclados em tempo de execução). Nenhuma das fontes TrueType cobre o suficiente de CJK para ser interessante. As fontes de bitmap usadas nas configurações de recurso padrão do xterm são boas o suficiente para a maioria dos usos.

    • 3

relate perguntas

  • traceroute, imprima apenas as informações do gateway

  • Como posso dar uma olhada no ssh?

  • Área de memória Flash Nand de backup

  • Programa de monitoramento de recursos de memória

  • Um processo pode alocar memória cache de forma que o kernel possa aproveitá-la quando necessário?

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Como exportar uma chave privada GPG e uma chave pública para um arquivo

    • 4 respostas
  • Marko Smith

    ssh Não é possível negociar: "nenhuma cifra correspondente encontrada", está rejeitando o cbc

    • 4 respostas
  • Marko Smith

    Como podemos executar um comando armazenado em uma variável?

    • 5 respostas
  • Marko Smith

    Como configurar o systemd-resolved e o systemd-networkd para usar o servidor DNS local para resolver domínios locais e o servidor DNS remoto para domínios remotos?

    • 3 respostas
  • Marko Smith

    Como descarregar o módulo do kernel 'nvidia-drm'?

    • 13 respostas
  • Marko Smith

    apt-get update error no Kali Linux após a atualização do dist [duplicado]

    • 2 respostas
  • Marko Smith

    Como ver as últimas linhas x do log de serviço systemctl

    • 5 respostas
  • Marko Smith

    Nano - pule para o final do arquivo

    • 8 respostas
  • Marko Smith

    erro grub: você precisa carregar o kernel primeiro

    • 4 respostas
  • Marko Smith

    Como baixar o pacote não instalá-lo com o comando apt-get?

    • 7 respostas
  • Martin Hope
    rocky Como exportar uma chave privada GPG e uma chave pública para um arquivo 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Wong Jia Hau ssh-add retorna com: "Erro ao conectar ao agente: nenhum arquivo ou diretório" 2018-08-24 23:28:13 +0800 CST
  • Martin Hope
    Evan Carroll status systemctl mostra: "Estado: degradado" 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim Como podemos executar um comando armazenado em uma variável? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S Por que /dev/null é um arquivo? Por que sua função não é implementada como um programa simples? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 Como ver as últimas linhas x do log de serviço systemctl 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - pule para o final do arquivo 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla Por que verdadeiro e falso são tão grandes? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis Substitua a string em um arquivo de texto enorme (70 GB), uma linha 2017-12-30 06:58:33 +0800 CST
  • Martin Hope
    Bagas Sanjaya Por que o Linux usa LF como caractere de nova linha? 2017-12-20 05:48:21 +0800 CST

Hot tag

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve