25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.1 KiB

  1. $Id$
  2. o Colour does not work with all backends and all terminals. I tested
  3. many terminal emulators and tried to summarise which combinations
  4. worked properly and which ones did not.
  5. o In an XTerm terminal, the following shell commands output all possible
  6. foreground/background combinations:
  7. for fgpre in "" '\e[0;1m'; do for fg in 0 4 2 6 1 5 3 7; do
  8. for bgpre in 4 10; do
  9. echo -ne "$fgpre"'\e[3'$fg'm'
  10. for bg in 0 4 2 6 1 5 3 7; do echo -ne '\e['$bgpre$bg'm# '; done
  11. echo -ne '\e[0;0m '
  12. done
  13. echo ''
  14. done; echo ''; done
  15. Successfully tested
  16. o ncurses:
  17. * bright combinations work in the following terminals:
  18. - Linux console (TERM=linux)
  19. - pterm (TERM=xterm)
  20. * bright text on bright background is rendered as bright text on
  21. normal background in the following terminals:
  22. - xterm (TERM=xterm)
  23. - gnome-terminal (TERM=xterm)
  24. o S-Lang:
  25. o MS-DOS: all bright colours, bright backgrounds, and bright combinations
  26. work using <conio.h>.