AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-140921

user1610950's questions

Martin Hope
user1610950
Asked: 2018-01-02 21:05:12 +0800 CST

xterm unicode 字体

  • 1

我在使用大量 ram 的 rxvt-unicode 方面遇到了一些问题,可能是因为使用了 CJK 字体。

另一方面,我无法让 XTerm 显示 CJK 文本。

这是我的 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

我的 RXvt 配置非常相似:

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

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

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

我的 X 启动脚本运行这些命令。

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 &

由于 XTerm 无法键入任何 unicode 字体,没有 CJK 输入或输出,复制和粘贴显示空白。

RXVT-Unicode 有效,但使用 ram 10719 用户 1 20 0 22697M 253M 选择 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

任何想法;修复 RXvt-unicode 上的高 ram 使用率 Get XTerm to display Unicode 其他轻量级终端仿真器?

terminal memory
  • 1 个回答
  • 1884 Views
Martin Hope
user1610950
Asked: 2017-12-17 18:08:16 +0800 CST

GNU make dep 究竟做了什么?

  • -1

我正在尝试了解 GNU Make 并尝试了解一些 c 代码和 GNU 自动工具。

有一个文件夹,比方说 lib,包含三个子文件夹和一个 makefile。

lib
...libA
...---compile.sh
...---file.h
...---file.c
...libB
...---file1.h
...---file2.h
...---file3.h
...---file.c
...---Makefile
...libC
...---file1.h
...---file1.c
...---file2.c
...---file3.c
...---file4.c
...Makefile

因此,在查看此文件夹结构和make dep命令后,程序进入文件夹,运行make dep然后完成。

运行配置脚本以检测和设置环境后,将调用上述make dep命令。

究竟在make dep做什么?

c make
  • 1 个回答
  • 3618 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

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

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve