LJ Archive

Listing 1. Terminal definition for color xterms

xterm|color xterm Terminal Emulator:\
        :cl=\E[H\E[J:cm=\E%i[%d;%dH:co#80:li#25:\
        :al=\E[L:dl=\E[M:ce=\E[K:\
        :ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:kh=\E[H:kb=\177:\
        :se=\E[m:so=\E[7m:\
        :kP=\E[5~:kN=\E[6~:\
# Function keys
        :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:\
        :k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
        :k9=\E[20~:k0=\E[21~:F1=\E[23~:F2=\E[24~:\
        :kI=\E[2~:@7=\E[F:\
        :kD=\177:\
        :Z0:\
#       :ac=\`afgjklmnopqrstuvwxyz{|}~:\
        :ac=jklmqtuvwxyz{|}~:\
        :as=\E(0:ae=\E(B:\
# colors foreground
        :Z1=\E[30m:Z2=\E[34m:Z3=\E[32m:Z4=\E[36m:\
        :Z5=\E[31m:Z6=\E[35m:Z7=\E[33m:Z8=\E[37m:\
# colors background
        :Za=\E[40m:Zb=\E[44m:Zc=\E[42m:Zd=\E[46m:\
        :Ze=\E[41m:Zf=\E[45m:Zg=\E[43m:Zh=\E[47m:
        :vi=^[[7m:ve=^[[m:\
LJ Archive