pq.q
The session itself: version, open connections, terminal size and colour support. Loaded by \l pq.
Examples
.pq.versionselect handle, alias from .pq.conns[]Entity Summary
| Entities | Short Description |
|---|---|
| .pq.cancolor[x] | Whether stdout should carry ANSI colour: PEACHQ_COLORS=0/1 overrides everything, then NO_COLOR (off), FORCE_COLOR (on), else a tty whose TERM is not dumb. |
| .pq.conns[] | Every open connection, one row each. |
| .pq.dr[verb] | Print a verb's domain and range grid in the layout the KX reference pages use, probed by casting a sample of every type: a lower-case letter is an atom result, upper-case a list, "." an error. |
| .pq.termsize[x] | The live terminal size, with the 25/80 fallback and [10,2000] clamp that \c 0N uses. |
| .pq.version | The peachq version string. |
Entity Details
.pq.cancolor[x]
Whether stdout should carry ANSI colour: PEACHQ_COLORS=0/1 overrides everything, then NO_COLOR (off), FORCE_COLOR (on), else a tty whose TERM is not dumb.
| Return: | boolean |
|---|
Examples
.pq.cancolor[].pq.conns[]
Every open connection, one row each. The single-letter columns p f z n m are the -38! names so kdb code ports.
| Columns: |
|
|---|
Examples
.pq.conns[].pq.dr[verb]
Print a verb's domain and range grid in the layout the KX reference pages use, probed by casting a sample of every type: a lower-case letter is an atom result, upper-case a list, "." an error.
| Parameters: |
|
|---|
Examples
.pq.dr `neg.pq.dr "+".pq.termsize[x]
The live terminal size, with the 25/80 fallback and [10,2000] clamp that \c 0N uses.
| Return: | (rows;cols) |
|---|
Examples
.pq.termsize[]