Skip to content

Commit 7f23c77

Browse files
authored
Merge pull request #81 from ruby/add_term_documentation
Add documentation of TERM
2 parents 24e9250 + 43a38e4 commit 7f23c77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sample/colors.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
require "curses"
44
include Curses
55

6+
# The TERM environment variable should be set to xterm-256color etc. to
7+
# use 256 colors. Curses.colors returns the color numbers of the terminal.
8+
69
begin
710
init_screen
811

0 commit comments

Comments
 (0)