∇ Z←Xterm_Color B
[1] ⍝
[2] ⍝⍝ B is an internal color name like 'W', 'Y', 'O', 'R', 'B', 'G', 'b', or 'w'.
[3] ⍝⍝ return the XTerm ESC sequence for it.
[4] ⍝
[5] →(B='WYORBGbw')/cW cY cO cR cB cG cb cw ◊ 4 ⎕CR B ◊ +++
[6] cW: Z←'8;2;255;255;255' ◊ →0 ◊ white cube face
[7] cY: Z←'8;2;255;213;85' ◊ →0 ◊ yellow cube face
[8] cO: Z←'8;2;255;88;0' ◊ →0 ◊ orange cube face
[9] cR: Z←'8;2;196;30;58' ◊ →0 ◊ red cube face
[10] cB: Z←'8;2;0;0;224' ◊ →0 ◊ blue cube face
[11] cG: Z←'8;2;0;158;96' ◊ →0 ◊ green cube face
[12] cb: Z←'8;2;0;0;0' ◊ →0 ◊ black foreground (text color)
[13] cw: Z←'8;2;176;176;176' ◊ →0 ◊ grey cube background
∇
|