From jrcharney, 3 Years ago, written in Bash.
  1. # A few questions:
  2. # 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.
  3. #       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.
  4. # 2. What's a good monospace font that I can use that supports unicode in fbterm?
  5. #       Otherwise, characters will appear as blocks or ð, and all the keys turn into üëþüëþéëßðßð mush characters.
  6. #       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.
  7. #       a. Which fonts in /usr/share/fonts or some other dierectory would be ideal?
  8. #       b. Should I use one that has a profile in /usr/share/fontconfig/conf.avail?
  9. #       c. Is there a package I should download either via apt-get or from github?
  10. # 3. How do I get fbterm and tmux to support 256 color terminals?
  11. #       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?
  12. #       b. Is there a terminal profile that supports more than 256 fonts?
  13.  
  14.  
  15. $ echo '#!/bin/bash' > termstats.sh
  16. $ echo 'printf "TERM: %s\tSIZE: %dx%d\tCOLORS: %d\n" $TERM $(tput cols) $(tput lines) $(tput colors)' >> termstats.sh
  17. $ echo 'PATH:' >> termstats.sh
  18. $ echo "echo \$PATH | sed 's/:/\n/gp'" >> termstats.sh
  19. $ chmod u+x termstats.sh
  20. $ ./termstats.sh
  21. TERM: linux     SIZE: 170x48    COLORS: 8
  22. PATH:
  23. /home/pi/.rbenv/shims
  24. /home/pi/.rbenv/bin
  25. /usr/local/qt5/bin
  26. /usr/local/sbin
  27. /usr/local/bin
  28. /usr/sbin
  29. /usr/bin
  30. /sbin
  31. /bin
  32. /usr/local/games
  33. /usr/games
  34. $ fbterm -v
  35. [input] can't change kernel keymap table, all the shortcuts will NOT work! see SECURITY NOTES section of man page for solution.
  36. [screen] driver: BCM2708 FB, mode: 1366x768-16bpp, scrolling: redraw
  37. [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
  38. [term] size: 195x54, default codec: UTF-8
  39. $ ./termstats.sh
  40. TERM: linux     SIZE: 195x54    COLORS: 8
  41. PATH:
  42. /home/pi/.rbenv/shims
  43. /home/pi/.rbenv/bin
  44. /usr/local/qt5/bin
  45. /home/pi/.rbenv/shims
  46. /home/pi/.rbenv/bin
  47. /usr/local/qt5/bin
  48. /usr/local/sbin
  49. /usr/local/bin
  50. /usr/sbin
  51. /usr/bin
  52. /sbin
  53. /bin
  54. /usr/local/games
  55. /usr/games
  56. $ tmux
  57. $ ./termstats.sh
  58. TERM: screen    SIZE: 195x53    COLORS: 8
  59. PATH:
  60. /home/pi/.rbenv/shims
  61. /home/pi/.rbenv/bin
  62. /usr/local/qt5/bin
  63. /usr/local/sbin
  64. /usr/local/bin
  65. /usr/sbin
  66. /usr/bin
  67. /sbin
  68. /bin
  69. /usr/local/games
  70. /usr/games
  71. $
  72.  
captcha