aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/tedit/field.h
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /pkg/utilities/nttools/tedit/field.h
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/utilities/nttools/tedit/field.h')
-rw-r--r--pkg/utilities/nttools/tedit/field.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/utilities/nttools/tedit/field.h b/pkg/utilities/nttools/tedit/field.h
new file mode 100644
index 00000000..4a74799c
--- /dev/null
+++ b/pkg/utilities/nttools/tedit/field.h
@@ -0,0 +1,23 @@
+# FIELD.H -- Tedit field descriptor
+
+define TED_FLDLEN 11 # field descriptor length
+
+define TED_FSCREEN Memi[$1] # screen associated with field
+define TED_RDOFLD Memi[$1+1] # is this a read only field?
+define TED_PGSIZE Memi[$1+2] # number of rows on screen
+define TED_LSTROW Memi[$1+3] # last row in table
+define TED_LSTCOL Memi[$1+4] # last column in table
+define TED_NXTROW Memi[$1+5] # next row to edit
+define TED_NXTCOL Memi[$1+6] # next column to edit
+define TED_DIRECT Memi[$1+7] # direction of motion
+define TED_FINDEX Memi[$1+8] # column index
+define TED_MRKFLD Memi[$1+9] # has this field been changed?
+define TED_COMMAND Memi[$1+10] # has command key been pressed?
+
+define SZ_FIELD 512 # Maximum length of a single field
+
+# The following are the legal alignments (used by align_field and move_field)
+
+define LEFT 1
+define CENTER 2
+define RIGHT 3