st - 짜증 없는 단순 터미널, v0.9

5013 단어 emojiterminallinuxwsl

TL;DR



이 데비안 패키지는 스크롤백 버퍼를 제공하고 컬러 이모티콘도 지원하며 중국어를 아름답게 보여줍니다.



왜 귀찮게



수십 년 동안 나는 놀라운 핫키와 지원하지 않는 색상 이모티콘과 같은 모든 단점에도 불구하고 중국어를 표시하기 위해 urxvt에 정착했습니다.

그러나 낙타의 등을 부러뜨린 마지막 지푸라기가 된 것은 WSL에서 "유용한"앤티 앨리어싱 글꼴 효과입니다.



WSL에서 위의 앤티 앨리어싱 효과를 제거할 수 없었기 때문입니다.

날렵함이 없는 이유



다음과 같은 reddit의 의견에 동의합니다.

Alacritty를 사용하는 것은 괜찮습니다.

if you really want something a bit more bloated, and don't mind using rust software.

Alacritty
Like GNOME, it may look nice, but it consumes way too much RAM for a barebone terminal emulator IMO.

$ ps -eo comm,rss,pcpu | grep -E 'xterm|alacritty'

xterm 13052 0.0
alacritty 38884 0.1

Depending on your distribution, the packaged alacritty may be fatter than others. Here on Fedora (rawhide) is the new GNOME 42 terminal...



ps -eo comm,rss,pcpu | grep -E 'terminal|kitty|st'
kitty           83668  0.5
alacritty       69668  1.3
gnome-terminal- 61260  6.4
st              10172  0.3 (unpatched)


사전 컴파일된 Debian/Ubuntu 패키지를 얻을 수 있는 한 (실제로 어떤 패키지도 직접 컴파일하고 싶지 않기 때문에) 크기가 4+st인 것은 괜찮습니다. 그러나 here에 게시된 정확한 이유 때문에 alacritty를 포기했습니다.

Something to note when using a gpu based terminal. Having the terminal emulator open will make the gpu ramp up a few power states. My 1080ti goes into power state 3, which results in an extra ~30 watts at the wall over using st, urxvt, etc.
Don't get me wrong, alacritty is amazing, but it's not worth the extra power draw for me.



즉, 그것이 얼마나 놀라운지에도 불구하고, 멋진 시각 효과를 위해 노트북이 항상 뜨거워지고 배터리 시간이 줄어들지는 않을 것입니다.

사전 컴파일된 공식 Debian/Ubuntu 패키지를 고수하지 않는 이유는 무엇입니까?



내가 패키지를 컴파일하는 것을 얼마나 싫어하는지에도 불구하고 사전 컴파일된 공식 Debian/Ubuntu 패키지는 스크롤백 버퍼를 제공하지 않고 색상 이모지를 표시할 때 충돌하기 때문에 참을 수 없습니다.

미리 컴파일된 Ubuntu 패키지



저는 어떤 패키지도 직접 컴파일하고 싶지 않고 st를 얻을 수 있는 유일한 방법은 직접 컴파일하는 것이므로 저와 같은 사람에게 도움이 되기를 바라며 이 미리 컴파일된 Ubuntu 패키지를 제공하고 있습니다. 소스 git repo에서 바로 빌드되었으므로 이제 컬러 이모티콘을 지원하고 항상 최신 버전을 제공합니다. 게다가 스크롤백 버퍼를 제공하도록 패치를 추가했습니다.



Debian 11 bullseye 아래에 설치하는 방법은 다음과 같습니다(Ubuntu는 비슷하지만 더 간단합니다).

https://launchpad.net/~suntong001/+archive/ubuntu/ppa:에서 ppa:suntong001/ppa를 확인하세요.

이 PPA는 아래 줄을 복사하고 시스템의 소프트웨어 소스에 추가하여 Debian 11 시스템에 수동으로 추가할 수 있습니다.

deb https://ppa.launchpadcontent.net/suntong001/ppa/ubuntu focal main 
deb-src https://ppa.launchpadcontent.net/suntong001/ppa/ubuntu focal main 


그런 다음 apt update 후에 다음을 수행합니다.

apt-cache policy stterm libxft2
apt install stterm libxft2


재확인:

$ apt-cache policy stterm libxft2
stterm:
  Installed: 0.9.1~20221004~ubuntu20.04.1
  Candidate: 0.9.1~20221004~ubuntu20.04.1
  Version table:
 *** 0.9.1~20221004~ubuntu20.04.1 500
        500 http://ppa.launchpad.net/suntong001/ppa/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.5-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
     0.8.4-1 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
     0.8.2-1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages

libxft2:
  Installed: 2.3.6-1
  Candidate: 2.3.6-1
  Version table:
 *** 2.3.6-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
     2.3.6-1~202209251622~ubuntu20.04.1 500
        500 http://ppa.launchpad.net/suntong001/ppa/ubuntu focal/main amd64 Packages
     2.3.2-2 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        500 http://deb.debian.org/debian buster/main amd64 Packages


그게 다야. 즐기세요 😃.

좋은 웹페이지 즐겨찾기