You are not logged in.

#1 2016-08-21 19:18:44

Evergreen
Member
Registered: 2016-08-14
Posts: 16

Setting up 256 color terminal

Being a new user, I have too many questions regarding how to best set up my system. I am trying to avoid gui as far as possible so that I am forced to get used to the commandline tools. However the basic tty is just too basic. I need colors to make things somewhat pretty and cool smile  Has anyone here used a 256 color framebuffer like yaft or fbterm? Is it worth setting it up if i want to avoid gui as far as possible? Or should I just get a zsh theme that looks nice in linux console?


I am currently trying to use yaft to see how much of a difference it makes. However the results are not what I expected-

1) yaft does not reflect all zshrc changes. For example it is not using color for cmmands like ls, grep etc although I have set them in ~/.zshrc. It however shows the correct zsh theme.

2) using "set background=dark" in ~/.vimrc for the solarized color scheme does not have intended effect as I still get the light background. fixed

3) If I use a background wallpaper in yaft, is there a way to make the terminal fonts change color/contrast depending on the background?

4) Overall yaft looks uglier than the linux console. Shouldn't it look better ? big_smile


~/.vimrc

execute pathogen#infect()

if $TERM == 'yaft-256color'
        syntax enable
        set background=dark
        let g:solarized_termcolors=256
        colorscheme solarized
endif

filetype plugin indent on
syntax on


~/.zshrc

# Created by newuser for 5.2
# The following lines were added by compinstall

zstyle ':completion:*' completer _complete _ignored
zstyle :compinstall filename '/home/soul/.zshrc'

autoload -Uz compinit promptinit 
compinit
promptinit

zstyle ':completion:*' menu select

autoload -Uz colors && colors

prompt walters

bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward


#autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
#zle -N up-line-or-beginning-search
#zle -N down-line-or-beginning-search

#[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-beginning-search
#[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-beginning-search

# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
# End of lines configured by zsh-newuser-install

alias diff='diff --color=auto'
alias grep='grep -n --color=auto'
alias ls='ls --color=auto'
eval $(dircolors -b)


export LESSOPEN="| /usr/bin/source-highlight-esc.sh %s"
export LESS='-R '
export LESS_TERMCAP_mb=$'\E[1;31m'
export LESS_TERMCAP_md=$'\E[1;36m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[1;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[1;32m'


source /usr/share/doc/pkgfile/command-not-found.zsh

ttyctl -f

Last edited by Evergreen (2016-08-25 10:49:03)

Offline

#2 2016-08-21 20:17:48

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Setting up 256 color terminal

Your vimrc looks odd - here's my snippet, for setting the colors:

if &t_Co > 2
    if &term =~ "256"
        set t_Co=256
        set background=dark
        colorscheme tir_black
    else
        set t_Co=8
        colorscheme wuye
    endif
endif

Offline

#3 2016-08-25 10:47:55

Evergreen
Member
Registered: 2016-08-14
Posts: 16

Re: Setting up 256 color terminal

I fixed the vim color problem in yaft, by putting "let g:solarized_termcolors=256" before the set background rule. However, the color scheme looks odd in linux console. Anyway, my current problem is

How to change font in Yaft? Do I need to rebuild it every time I want to change the font? A simple example command will be helpful as I am not understanding what bdf fonts mean and what glyph file is.

Offline

Board footer

Powered by FluxBB