On this page:
1.1 Dirty Flag
tcf-dirty-bits
tcf-dirty-shift
tcf-dirty-mask
tcf-dirty-false
tcf-dirty-true
reset-tcf-dirty
set-tcf-dirty
tcf-dirty=?
1.2 Bold Flag
tcf-bold-bits
tcf-bold-shift
tcf-bold-mask
tcf-bold-false
tcf-bold-true
reset-tcf-bold
set-tcf-bold
tcf-bold=?
1.3 Underline Flags
tcf-underline-bits
tcf-underline-shift
tcf-underline-mask
tcf-underline-none
tcf-underline-single
tcf-underline-double
tcf-underline-invalid
reset-tcf-underline
set-tcf-underline
tcf-underline=?
1.4 Italic Flag
tcf-italic-bits
tcf-italic-shift
tcf-italic-mask
tcf-italic-false
tcf-italic-true
reset-tcf-italic
set-tcf-italic
tcf-italic=?
1.5 Blink Flags
tcf-blink-bits
tcf-blink-shift
tcf-blink-mask
tcf-blink-none
tcf-blink-slow
tcf-blink-fast
tcf-blink-invalid
reset-tcf-blink
set-tcf-blink
tcf-blink=?
1.6 Faint Flag
tcf-faint-bits
tcf-faint-shift
tcf-faint-mask
tcf-faint-false
tcf-faint-true
reset-tcf-faint
set-tcf-faint
tcf-faint=?
1.7 Strikethrough Flag
tcf-strikethrough-bits
tcf-strikethrough-shift
tcf-strikethrough-mask
tcf-strikethrough-false
tcf-strikethrough-true
reset-tcf-strikethrough
set-tcf-strikethrough
tcf-strikethrough=?
1.8 Wide Flag
tcf-wide-bits
tcf-wide-shift
tcf-wide-mask
tcf-wide-false
tcf-wide-true
reset-tcf-wide
set-tcf-wide
tcf-wide=?
1.9 Generic Masks
tcf-except-dirty-mask
tcf-mask
9.2.900

1 Style Attributes🔗ℹ

Dominik Pantůček <dominik.pantucek@trustica.cz>

 (require tui/buf/attributes)

This module provide a consistent programming interface for storing common terminal style flags to other modules.

The following attribute flags are tracked:

Bits|Name 

1 

dirty

1 

bold

2 

underline

1 

italic

2 

blink

1 

faint

0 

clean

0 

normal

0 

none

0 

regular

0 

no

0 

normal

1 

dirty

1 

bold

1 

single

1 

italic

1 

slow

1 

faint

2 

double

2 

fast

3 

invalid

3 

invalid

1.1 Dirty Flag🔗ℹ

value

tcf-dirty-bits : fixnum?

Value: 1

value

tcf-dirty-shift : fixnum?

Value: 0

value

tcf-dirty-mask : fixnum?

Value: 1

value

tcf-dirty-false : fixnum?

Value: 0

value

tcf-dirty-true : fixnum?

Value: 1

procedure

(reset-tcf-dirty v) → fixnum?

  v : fixnum?
Clears the tcf-dirty-mask from v.

procedure

(set-tcf-dirty v b) → fixnum?

  v : fixnum?
  b : fixnum?
Sets the tcf-dirty-mask to b in v.

procedure

(tcf-dirty=? v b) → boolean?

  v : fixnum?
  b : fixnum?
Returns true if given b is set in v. Takes into account only the dirty bit.

1.2 Bold Flag🔗ℹ

value

tcf-bold-bits : fixnum?

Value: 1

value

tcf-bold-shift : fixnum?

Value: 1

value

tcf-bold-mask : fixnum?

Value: 2

value

tcf-bold-false : fixnum?

Value: 0

value

tcf-bold-true : fixnum?

Value: 2

procedure

(reset-tcf-bold v) → fixnum?

  v : fixnum?
Clears the tcf-bold-mask from v.

procedure

(set-tcf-bold v b) → fixnum?

  v : fixnum?
  b : fixnum?
Sets the tcf-bold-mask to b in v.

procedure

(tcf-bold=? v b) → boolean?

  v : fixnum?
  b : fixnum?
Returns true if given b is set in v. Takes into account only the bold bit.

1.3 Underline Flags🔗ℹ

value

tcf-underline-bits : fixnum?

Value: 2

value

tcf-underline-shift : fixnum?

Value: 2

value

tcf-underline-mask : fixnum?

Value: 12

value

tcf-underline-none : fixnum?

Value: 0

value

tcf-underline-single : fixnum?

Value: 4

value

tcf-underline-double : fixnum?

Value: 8

value

tcf-underline-invalid : fixnum?

Value: 12

procedure

(reset-tcf-underline v) → fixnum?

  v : fixnum?
Clears the tcf-underline-mask from v.

procedure

(set-tcf-underline v b) → fixnum?

  v : fixnum?
  b : fixnum?
Sets the tcf-underline-mask to b in v.

procedure

(tcf-underline=? v b) → boolean?

  v : fixnum?
  b : fixnum?
Returns true if given b is set in v. Takes into account only the underline bits.

1.4 Italic Flag🔗ℹ

value

tcf-italic-bits : fixnum?

Value: 1

value

tcf-italic-shift : fixnum?

Value: 4

value

tcf-italic-mask : fixnum?

Value: 16

value

tcf-italic-false : fixnum?

Value: 0

value

tcf-italic-true : fixnum?

Value: 16

procedure

(reset-tcf-italic v) → fixnum?

  v : fixnum?
Clears the tcf-italic-mask from v.

procedure

(set-tcf-italic v b) → fixnum?

  v : fixnum?
  b : fixnum?
Sets the tcf-italic-mask to b in v.

procedure

(tcf-italic=? v b) → boolean?

  v : fixnum?
  b : fixnum?
Returns true if given b is set in v. Takes into account only the italic bit.

1.5 Blink Flags🔗ℹ

value

tcf-blink-bits : fixnum?

Value: 2

value

tcf-blink-shift : fixnum?

Value: 5

value

tcf-blink-mask : fixnum?

Value: 96

value

tcf-blink-none : fixnum?

Value: 0

value

tcf-blink-slow : fixnum?

Value: 32

value

tcf-blink-fast : fixnum?

Value: 64

value

tcf-blink-invalid : fixnum?

Value: 96

procedure

(reset-tcf-blink v) → fixnum?

  v : fixnum?
Clears the tcf-blink-mask from v.

procedure

(set-tcf-blink v b) → fixnum?

  v : fixnum?
  b : fixnum?
Sets the tcf-blink-mask to b in v.

procedure

(tcf-blink=? v b) → boolean?

  v : fixnum?
  b : fixnum?
Returns true if given b is set in v. Takes into account only the blink bits.

1.6 Faint Flag🔗ℹ

value

tcf-faint-bits : fixnum?

Value: 1

value

tcf-faint-shift : fixnum?

Value: 7

value

tcf-faint-mask : fixnum?

Value: 128

value

tcf-faint-false : fixnum?

Value: 0

value

tcf-faint-true : fixnum?

Value: 128

procedure

(reset-tcf-faint v) → fixnum?

  v : fixnum?
Clears the tcf-faint-mask from v.

procedure

(set-tcf-faint v b) → fixnum?

  v : fixnum?
  b : fixnum?
Sets the tcf-faint-mask to b in v.

procedure

(tcf-faint=? v b) → boolean?

  v : fixnum?
  b : fixnum?
Returns true if given b is set in v. Takes into account only the faint bit.

1.7 Strikethrough Flag🔗ℹ

value

tcf-strikethrough-bits : fixnum?

Value: 1

value

tcf-strikethrough-shift : fixnum?

Value: 8

value

tcf-strikethrough-mask : fixnum?

Value: 256

value

tcf-strikethrough-false : fixnum?

Value: 0

value

tcf-strikethrough-true : fixnum?

Value: 256

procedure

(reset-tcf-strikethrough v) → fixnum?

  v : fixnum?
Clears the tcf-strikethrough-mask from v.

procedure

(set-tcf-strikethrough v b) → fixnum?

  v : fixnum?
  b : fixnum?
Sets the tcf-strikethrough-mask to b in v.

procedure

(tcf-strikethrough=? v b) → boolean?

  v : fixnum?
  b : fixnum?
Returns true if given b is set in v. Takes into account only the strikethrough bit.

1.8 Wide Flag🔗ℹ

value

tcf-wide-bits : fixnum?

Value: 1

value

tcf-wide-shift : fixnum?

Value: 9

value

tcf-wide-mask : fixnum?

Value: 512

value

tcf-wide-false : fixnum?

Value: 0

value

tcf-wide-true : fixnum?

Value: 512

procedure

(reset-tcf-wide v) → fixnum?

  v : fixnum?
Clears the tcf-wide-mask from v.

procedure

(set-tcf-wide v b) → fixnum?

  v : fixnum?
  b : fixnum?
Sets the tcf-wide-mask to b in v.

procedure

(tcf-wide=? v b) → boolean?

  v : fixnum?
  b : fixnum?
Returns true if given b is set in v. Takes into account only the wide bit.

1.9 Generic Masks🔗ℹ

value

tcf-except-dirty-mask : fixnum?

Value: 1022

value

tcf-mask : fixnum?

Value: 1023