From jrcharney, 3 Years ago, written in Bash.
# A few questions:
# 1. How do I prevent the "/home/pi/.rbenv/shims:/home/pi/.rbenv/bin:/usr/local/qt5/bin" part of the $PATH from appearing more than once.
# On some systems, this happens when I open tmux inside of a bash shell, on ther systems it happens when I do so inside of fbterm.
# 2. What's a good monospace font that I can use that supports unicode in fbterm?
# Otherwise, characters will appear as blocks or ð, and all the keys turn into üëþüëþéëßðßð mush characters.
# The default font seems too big and the defaut font that fbterm uses is too small. Something slightly smaller than the default font would be nice.
# a. Which fonts in /usr/share/fonts or some other dierectory would be ideal?
# b. Should I use one that has a profile in /usr/share/fontconfig/conf.avail?
# c. Is there a package I should download either via apt-get or from github?
# 3. How do I get fbterm and tmux to support 256 color terminals?
# a. Which terminfo profiles in either /lib/terminfo or /usr/share/terminfo should I use to enable both unicode and a minimum of 256 color support?
# b. Is there a terminal profile that supports more than 256 fonts?
$ echo '#!/bin/bash' > termstats.sh
$ echo 'printf "TERM: %s\tSIZE: %dx%d\tCOLORS: %d\n" $TERM $(tput cols) $(tput lines) $(tput colors)' >> termstats.sh
$ echo 'PATH:' >> termstats.sh
$ echo "echo \$PATH | sed 's/:/\n/gp'" >> termstats.sh
$ chmod u+x termstats.sh
$ ./termstats.sh
TERM: linux SIZE: 170x48 COLORS: 8
PATH:
/home/pi/.rbenv/shims
/home/pi/.rbenv/bin
/usr/local/qt5/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/local/games
/usr/games
$ fbterm -v
[input] can't change kernel keymap table, all the shortcuts will NOT work! see SECURITY NOTES section of man page for solution.
[screen] driver: BCM2708 FB, mode: 1366x768-16bpp, scrolling: redraw
[font] width: 7px, height: 14px, ordered list: DejaVu Sans Mono, Nimbus Mono L, FreeMono, FreeSans, FreeSerif, OpenSymbol, DejaVu Sans, DejaVu Serif, Gentium Basic, Standard Symbols L
[term] size: 195x54, default codec: UTF-8
$ ./termstats.sh
TERM: linux SIZE: 195x54 COLORS: 8
PATH:
/home/pi/.rbenv/shims
/home/pi/.rbenv/bin
/usr/local/qt5/bin
/home/pi/.rbenv/shims
/home/pi/.rbenv/bin
/usr/local/qt5/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/local/games
/usr/games
$ tmux
$ ./termstats.sh
TERM: screen SIZE: 195x53 COLORS: 8
PATH:
/home/pi/.rbenv/shims
/home/pi/.rbenv/bin
/usr/local/qt5/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/local/games
/usr/games
$
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}