THE Reference - Appendix 5

## APPENDIX 5 - DEFAULT STATUS SETTINGS IN THE

In case you never want to write macros or profiles you can safely return to Table of Contents :-)

This appendix describes the default status settings in THE in its various compatibility modes. You can inspect or save the current status of your THE-session with the `status` command. A single status information can be obtained with the `query` command. Within a macro you can use either the `extract` command or the implied extract method. You can set or change a status variable either with the `set` or `modify` command (see detailed or quick reference).

NOTE: Depending on `set compat` the following commands may return different values within macros (see also history for 2.3 and 2.5):
  `CURLINE, LINE, LINEFLAG, POINT, RING, SELECT`!

Topics:

- General defaults for status variables
- General defaults for tabs settings
- Settings depending on operating system
- Settings depending on current file
- Settings depending on current line/column
- Settings depending initially on external conditions
- Other status variables

Meaning of the flags in the following tables:

1. `F`: file scope, `G`: global scope (applies to all files in the ring); Note: when you open a new file for editing this file may inherit file specific settings from the current file (exception: `msgmode`, see also set reprofile).
2. `Q`: can be used with `query` command
3. `E`: can be used with `extract` command
4. `M`: can be changed with `set` or `modify` command
5. `S`: can be obtained by `status` command
6. `R`: can be obtained by implied extract within REXX macros
7. `P`: used by `preserve/restore` command

  `?`: not yet determined
  `-`: not available
  lower case: not generally applicable, please refer to documentation

#### General defaults for status variables:

variable | THE | KEDIT | XEDIT | flags
--- | --- | --- | --- | ---
arbchar | OFF $ ? | OFF $ ? | OFF $ ? | `FQEMSRP`
autosave | OFF | OFF | OFF | `FQEMS-P`
backup | KEEP | OFF | OFF | `FQEMS-P`
beep | OFF | OFF | OFF | `GQEMSR-`
case | MIXED IGNORE RESPECT RESPECT | MIXED IGNORE RESPECT RESPECT | UPPER IGNORE RESPECT RESPECT | `FQEMS-P`
clearerrorkey | * | * | * | `GQEMSR-`
clearscreen | OFF | ON | ON | `GQEMSR-`
clock | ON | ON | OFF | `GQEMSR-`
cmdarrows | RETRIEVE | TAB | TAB | `GQEMS--`
cmdline | BOTTOM | BOTTOM | BOTTOM | `FQEMSrP`
compat | THE THE THE | KEDIT KEDIT KEDIT | XEDIT XEDIT XEDIT | `GQEMSR-`
curline | M | M | M | `FqEmsRP`
cursorstay | ON | ON | ON | `GQEMSR-`
defsort | NAME ASCENDING | NAME ASCENDING | NAME ASCENDING | `GQEMSR-`
dirinclude | * | * | * | `GQEMSR-`
display | 0 0 | 0 0 | 0 0 | `FQEMSRP`
fullfname | ON | ON | ON | `FQEMSR-`
hex | OFF | OFF | OFF | `F-EMSRP`
hexdisplay | ON | OFF | OFF | `GQEMSR-`
hexshow | OFF 7 | OFF 7 | OFF 7 | `FQEMSRP`
highlight | OFF | OFF | OFF | `FQEMSRP`
idline | ON | ON | ON | `FQEMSRP`
impcmscp | ON | ON | ON | `G--m--?`
impmacro | ON | OFF | ON | `FQEMSRP`
impos | ON | OFF | ON | `GQEMS-P`
inputmode | LINE | LINE | LINE | `FQEMS-P`
insertmode | OFF | OFF | OFF | `FQEMSR-`
linend | OFF # | OFF # | ON # | `GQEMS-P`
macro | OFF | OFF | OFF | `GQEMSRP`
macroext | the | the | the | `GQEMSR-`
margins | 1 72 +0 | 1 72 +0 | 1 72 +0 | `FQEMS-P`
msgline | ON 2 5 OVERLAY | ON 2 5 OVERLAY | ON 2 2 OVERLAY | `FQEMSRP`
msgmode | ON | ON | ON | `FQEMSRP`
newlines | ALIGNED | ALIGNED | ALIGNED | `FQEMSRP`
nondisp | # | # | " | `GQEMSR-`
number | ON | OFF | OFF | `FQEMSRP`
position | ON | ON | ON | `FqEmsRP`
prefix | ON LEFT 6 0 | OFF | ON LEFT 6 1 | `FqEmsrP`
reprofile | OFF | OFF | OFF | `GQEMSR-`
rexxoutput | DISPLAY 1000 | DISPLAY 1000 | DISPLAY 1000 | `GQEMSR-`
scale | OFF M+1 | OFF M+1 | ON M+1 | `FQEMSRP`
scope | DISPLAY | DISPLAY | DISPLAY | `FQEMSRP`
screen | 1 HORIZONTAL | 1 HORIZONTAL | 1 HORIZONTAL | `GQEMSR-`
shadow | ON | ON | ON | `FQEMSRP`
span | OFF Blank 2 | OFF Blank 2 | OFF Blank 2 | `?--m--?`
spill | OFF | OFF | OFF | `?--m--?`
statopt | ON NBFILE.1 13 0 Files= ON WIDTH.1 23 0 Width= | ON NBFILE.1 13 0 Files= ON WIDTH.1 23 0 Width= | ON NBFILE.1 13 0 Files= ON WIDTH.1 23 0 Width= | `G--m---`
statusline | BOTTOM | BOTTOM | BOTTOM | `FQEMSR-`
stay | ON | ON | OFF | `FQEMSRP`
tabkey | TAB CHARACTER | TAB CHARACTER | TAB CHARACTER | `GQEMSR-`
tabline | OFF -3 | OFF -2 | OFF -3 | `FQEMSRP`
tabsin | OFF 8 | OFF 8 | OFF 8 | `GQEMSR-`
tabsout | OFF 8 | OFF 8 | OFF 8 | `GQEMSRP`
timecheck | ON | ON | ON | `FQEMSR-`
trunc | * | * | * | `?--m--?`
typeahead | OFF | OFF | OFF | `GQEMSR-`
undoing | ON | ON | ON | `FQEMSR-`
untaa | OFF | OFF | OFF | `GQEMSR-`
word | NONBLANK | NONBLANK | NONBLANK | `FQEMSRP`
wordwrap | OFF | OFF | OFF | `FQEMS-P`
wrap | OFF | OFF | OFF | `FQEMSR-`

Back to topics list.

#### General defaults for tabs settings:

compatibility | tabs
--- | ---
THE: | 1 9 17 25 33 41 49 57 65 73 81 89 97 105 113 121 129 137
| 145 153 161 169 177 185 193 201 209 217 225 233 241 249
KEDIT: | 1 9 17 25 33 41 49 57 65 73 81 89 97 105 113 121 129 137
| 145 153 161 169 177 185 193 201 209 217 225 233 241 249
XEDIT: | 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55
| 58 61 64 67 70 73 76 79 82 85 88 91 94

Back to topics list.

#### Settings depending on operating system:

variable | flags
--- | ---
eolout | `FQEMSRP`
etmode | `GQEMSR-`
monitor | `GQE-SR-`
mouse | `GQEMSR-`
printer | `GQEMSR-`
slk | `F--m---`
terminal | `GQE-S--`
xterminal | `GQEMSR-`

Back to topics list.

#### Settings depending on current file:

variable | flags
--- | ---
alt | `FQEmSR-`
fext | `FQEM-R-`
filename | `FQEM-R-`
filestatus | `FQE-SR-`
fmode | `FQEM-R-`
fname | `FQEM-R-`
fpath | `FQEM-R-`
ftype | `FQEM-R-`
point | `FqE----`
reserved | `FqE-sR-`
size | `FQE-SR-`

Back to topics list.

#### Settings depending on current line/column:

variable | flags
--- | ---
block | `GQE----`
column | `FQE--R-`
curline | `FqEmsRp`
cursor | `FQE--R-`
dirfileid | `f-E--R-`
eof | `FQE-SR-`
field | `Fqe--R-`
length | `FQE-SR-`
line | `FQE-SR-`
lineflag | `FQEMSR-`
select | `FQE-SR-`
tof | `FQE-SR-`
vershift | `FQE-SR-`

Back to topics list.

#### Settings depending initially on external conditions:

variable | flags
--- | ---
lscreen | `FQE--R-`
macropath | `GQEM-R-`
verify | `FQEMSR-`
width | `GQE-SR-`
zone | `FQEMSRP`

Back to topics list.

#### Other status variables:

variable | flags
--- | ---
colour | `FqeM-r-`
getenv | `G-e--R-`
lastkey | `G-E--R-`
lastmsg | `G-E--R-`
lastrc | `GQE--R-`
nbfile | `GQE-SR-`
pending | `F-E----`
ring | `GQE--R-`
showkey | `G-E----`
version | `GQE-SR-`

Back to topics list.

The Hessling Editor is Copyright © Mark Hessling, 1990-2012
Last changed on: 09 Nov 1998 by Franz-Josef Wirtz

Return to Table of Contents