EditorID
Identifier of the editor instance. Each editor instance has a unique identifier during the lifetime of a FAR session.
FileName
Full path and name of the edited file .
WindowSizeX, WindowSizeY
Width and height of the editor window.
TotalLines
Total number of lines in the edited text.
CurLine
Number of the current line.
CurPos
Cursor position in the current line.
CurTabPos
Cursor screen position in the current line. If the line does not contain tab characters, CurTabPos is equal to CurPos.
TopScreenLine
Number of the line at the top of the screen.
LeftPos
Position of the left border of the editor window in the edited text.
Overtype
Overtype mode state. 0 - insert mode, 1 - overtype mode.
BlockType
BlockStartLine
Number of the first line in the selected block.
AnsiMode
ANSI text mode state. This field is nonzero only when no character table is used and the text is in the ANSI codepage.
TableNum
Number of FAR character table currently used in the editor. -1 if no table is used and the text is in OEM format (in this case
see AnsiMode). If this field is not -1, you can pass it to the
CharTable function to get the table.
Options
Describes the state of editor options.
Can be a combination of the following flags (the
EDITOR_OPTIONS enumeration):
TabSize
Tab size.
This parameter can be changed using the
ECTL_SETPARAM command.
BookMarkCount
Number of editor bookmarks.
To retrieve information about bookmarks, use the
ECTL_GETBOOKMARKS command.
CurState
Current state of the text in the editor. Can contain
one or more of the following flags (the
EDITOR_CURRENTSTATE enumeration):
Reserved
Reserved for future use.
To determine current character set in the editor exactly, the following table can be used:
EditorInfo.TableNum EditorInfo.AnsiMode
DOS -1 0
WIN -1 1
Other Table number 0
For "Other", the
CharTable function should be used to retrieve
the character table name.