File: set-text-color.help.tcl

package info (click to toggle)
din 5.2.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,200 kB
  • sloc: cpp: 9,369; sh: 6,563; ansic: 2,977; tcl: 1,770; makefile: 283
file content (21 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set set-text-color(name) set-text-color
set set-text-color(short) stc
set set-text-color(purpose) {set color of text coming next on console}
set set-text-color(invoke) {set-text-color r g b}
set set-text-color(help) {
  r - red
  g - green
  b - blue

  r, g, b must be in range 0 to 1
}

set set-text-color(examples) {
  set-text-color 1 0 0 ;# red
  echo "this will be printed in red"

  stc 0 1 0 ;# green, command name in short form
  echo "this will be in green"

  set-text-color 0 0 1 ;# blue
  echo "and this will be in blue"}