New answers tagged xterm
If xterm isn't a necessity, one solution is changing terminals. Terminator has built-in split capability, horizontal and vertical, and the size of each section can be adjusted with keyboard shortcuts. Each section can also be further split. Should be available in repos. http://linux.die.net/man/1/terminator http://linux.die.net/man/5/terminator_config
Inside your .zshrc, put [[ $TMUX = "" ]] && export TERM="xterm-256color" And, inside your .tmux.conf set -g default-terminal "screen-256color"
As a slight simplification to the previous answer, I found it easier to just run: tput cup $LINES in the beginning of .bashrc or .zshrc. It just does the job. Pros: it only prints once, when you start your shell Cons: when clearing screen with ^L, it doesn't print and aliasing clear to clear; tput ... doesn't help; prompt moves elsewhere when ...
Well, I had to ditch xfce4-terminal, because keybindings were a nightmare, and go back to xterm. I actually prefer having several windows to tabs anyway, it turns out. Here is what I did for keybindings for xterm<-->bash # ctrl-backspace "\C-h":shell-backward-kill-word # meta-backspace "ÿ":shell-backward-kill-word # ctrl-delete ...
The supported terminal capability depends on your terminal emulator (xterm, ...). The terminal emulator should set the term info correctly. It does usually not make much sense to use "another terminal" (except maybe xterm-256color instead of xterm or if the $TERM variable is set wrongly). You should use libraries like ncurses which deals automatically with ...
Top 50 recent answers are included