This section contains the description for the all the Grief macro primitives. At last count over 600 primitives including operators are published by the macro library.
Library Reference | This section contains the description for the all the Grief macro primitives. |
Return Value | The return value for most builtin functions which return an integer have the following |
Function Reference | Builtin constant and function reference. |
The return value for most builtin functions which return an integer have the following
Primitives which are based on underlying POSIX system calls shall set the global variable errno to the result of the underlying system call upon a -1 return.
For example, if the remove() function fails, then the global variable errno will be set to the value set by the underlying system call. The primitive strerror() maybe used to decode the error code. For a complete list (See: errno) and <grief.h>.
Within their descriptions the key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.
Builtin constant and function reference.
Macro |
Description |
---|---|
! |
Not operator |
!= |
Non-equality operator |
% |
Modulus operator |
%= |
Modulus assignment operator |
& |
Bitwise AND operator |
&& |
Logical AND operator |
&= |
Bitwise AND assignment operator |
* |
Multiplication operator |
*= |
Multiplication assignment operator |
+ |
Addition operator |
++ |
Prefix Increment |
+= |
Addition assignment operator |
- |
Subtraction operator |
-- |
Prefix Decrement |
-= |
Subtraction |
/ |
Division operator |
/= |
Division assignment operator |
< |
Less than comparison |
<< |
Left-shift operator |
<<= |
Left-shift assignment operator |
<= |
Less than or equal comparison |
<=> |
Comparison operator |
= |
Assignment operator |
== |
Equality operator |
> |
Greater than comparison |
>= |
Greater than or equal comparison |
>> |
Right-shift operator |
>>= |
Right-shift assignment operator |
Signals |
undocumented |
^ |
Bitwise exclusive OR operator |
^= |
Bitwise exclusive OR assignment operator |
__breaksw |
Switch break statement |
__lexicalblock |
Lexical scope |
__regress_op |
Regression operations |
__regress_replacement |
Replacment regression testing |
_bad_key |
Command prompt unknown key callback |
_chg_properties |
Property change event |
_default |
Default extension handler |
_extension |
Buffer load handler |
_fatal_error |
Fatal condition callback |
_init |
Internal macro initialisation |
_invalid_key |
Invalid key event |
_prompt_begin |
Command prompt session begin callback |
_prompt_end |
Command prompt session end callback |
_startup_complete |
Startup event callback |
abort |
Abnormal process |
above |
Greater than comparison |
above_eq |
Greater than or equal comparison |
abs |
Absolute value |
access |
Test file accessibility |
acos |
Arc cosine |
arg_list |
Argument list |
array |
Declare a array symbol |
asin |
Arc sine |
assign_to_key |
Assign command to key or key sequence |
atan |
Arctangent |
atan2 |
Arctangent division |
atoi |
Convert string to a decimal number |
attach_buffer |
Attach a buffer to a window |
attach_syntax |
Attach a syntax to a buffer |
autoload |
Register location of one or more macros |
backspace |
Delete character to the left of the cursor |
basename |
Return the last component of a pathname |
beep |
Issue a beep sound |
beginning_of_line |
Goto beginning of line |
below |
Less than comparison |
below_eq |
Less than or equal comparison |
bless |
Associate an object with a class/module |
bookmark_list |
Retrieve existing bookmark list |
bool |
Declare a boolean symbol |
borders |
Set window border status |
break |
break statement |
call_registered_macro |
Invoke registered macro callbacks |
car |
Retrieve the first list element |
case |
Switch case statement |
<cast_float> |
undocumented |
<cast_int> |
undocumented |
catch |
Catch statement |
cd |
Change directory |
cdr |
Retrieve all secondary list elements |
ceil |
Round up to integral value |
cftime |
Format time and date |
change_window |
Selects a new window |
change_window_pos |
Modify window coordinates/size |
characterat |
Retrieve the character value within a string |
chdir |
Change directory |
chmod |
Change mode |
chown |
Change owner |
close_window |
Close specified the window |
color |
Set the basic colors |
color_index |
Border color background color index |
command_list |
Retrieve list of built-in and active macros |
compare |
Comparison |
compare_files |
Binary file compare |
compress |
Compress repeated instances of white-space characters |
connect |
Attach a process to a process |
const |
Define a variable as being constant |
continue |
Loop continuation |
copy |
Copy marked area to scrap |
copy_ea_info |
Copy file extended information |
copy_keyboard |
Copy a keyboard |
copy_screen |
Copy the current screen |
cos |
Cosine |
cosh |
Hyperbolic cosine |
create_buffer |
Create and load a buffer |
create_char_map |
Create a display character-map |
create_dictionary |
Create a dictionary |
create_edge |
Create an edge, splitting the window |
create_menu_window |
Create the menu window |
create_nested_buffer |
Create or reference a buffer |
create_syntax |
Syntax table creation |
create_tiled_window |
Creates a tiled window |
create_window |
Create a popup window |
ctype |
undocumented |
cursor |
Control cursor display |
cut |
Cut marked area to scrap |
cvt_to_object |
Convert string to object |
date |
Get current system date |
debug |
Control runtime debug and tracing |
debug_support |
Internal debugger functionality |
declare |
Declare a polymorphic symbol |
define_keywords |
Add keywords to a syntax dictionary |
del |
Delete a file |
delete_block |
Deleted selected region |
delete_bookmark |
Delete a bookmark |
delete_buffer |
Delete a buffer |
delete_char |
Delete character |
delete_dictionary |
Destroy a dictionary |
delete_edge |
Delete an edge, combining a split window |
delete_line |
Delete current line |
delete_macro |
Delete a macro from memory |
delete_nth |
Remove one or more elements from a list |
delete_to_eol |
Delete to end-of-line |
delete_window |
Delete a window |
detach_syntax |
Detach a syntax from a buffer |
dialog_create |
Build a dialog resource |
dialog_delete |
Delete a dialog resource |
dialog_exit |
Exit a dialog resource |
dialog_run |
Execute a dialog resource |
dict_clear |
Clear a dictionary |
dict_delete |
Remove a dictionary item |
dict_each |
Iterator a dictionary |
dict_exists |
Dictionary item existence check |
dict_keys |
Iterator dictionary keys |
dict_list |
Retrieve dictionary items |
dict_name |
Retrieve a dictionary name |
dict_values |
Iterator dictionary values |
<diff_buffers> |
undocumented |
<diff_lines> |
undocumented |
diff_strings |
Compare to strings |
dirname |
Report the parent directory name of a file pathname |
disconnect |
Disconnect a buffer from a process |
display_mode |
Set/retrieve display control flags |
display_windows |
Control window display |
distance_to_indent |
Calculate distance to next indent |
distance_to_tab |
Calculate distance to next tab |
do |
do statement |
dos |
Create a sub-shell |
double |
Declare a double float symbol |
down |
Move position down one line |
dprintf |
Formatted diagnostics output |
drop_anchor |
Start marking a selection |
drop_bookmark |
Create or update a bookmark |
echo_line |
Set echo line flags |
edit_file |
Edit a file |
edit_file2 |
Extended file edit |
ega |
Terminal line display |
else |
else statement |
end_anchor |
Set the end of the anchor |
end_of_buffer |
Move cursor to end of current buffer |
end_of_line |
Goto end of line |
end_of_window |
Goto end of the current window |
error |
Issue an error message on the command line |
execute_macro |
Invokes a command by name |
exist |
Check file existence |
exit |
Exit current process level |
exp |
Exponential function |
expandpath |
Expand the path |
extern |
Declare an external variable |
fabs |
Floating-point absolute value |
fclose |
Close a stream |
feof |
Test end-of-file indicator on a stream |
ferror |
Test error indicator on a stream |
fflush |
Flush a stream |
file_canon |
Canonicalize a path |
file_glob |
Return names of files that match patterns |
file_match |
File match utility |
file_pattern |
Directory file pattern |
filename_match |
Perform file pattern matching |
filename_realpath |
Return a resolved pathname |
finally |
Finally statement |
find_file |
Read next directory entry |
find_file2 |
Extended read next directory entry |
find_line_flags |
Locate next line with specific flags |
find_macro |
Determine path of a macro object |
find_marker |
Locate next marker |
fioctl |
File miscellaneous control |
first_time |
Determine a macros initialisation status |
firstof |
Leftmost character search |
float |
Declare a float symbol |
flock |
File lock operations |
floor |
Round down to integral value |
fmktemp |
Make a unique filename |
fmod |
Floating-point remainder |
fopen |
Open a stream |
for |
for statement |
foreach |
Container iterator |
format |
Formatted printing |
fread |
Read from a stream |
frexp |
Extract mantissa and exponent |
fseek |
Reposition a file-position indicator in a stream |
fstat |
Stream status information |
fstype |
File system type |
ftell |
Report the file-position indicator of a stream |
ftest |
Test file type |
<ftp_chdir> |
undocumented |
<ftp_close> |
undocumented |
<ftp_connect> |
undocumented |
<ftp_connection_list> |
undocumented |
<ftp_create> |
undocumented |
<ftp_directory> |
undocumented |
<ftp_error> |
undocumented |
<ftp_find_connection> |
undocumented |
<ftp_get_file> |
undocumented |
<ftp_getcwd> |
undocumented |
<ftp_mkdir> |
undocumented |
<ftp_protocol> |
undocumented |
<ftp_put_file> |
undocumented |
<ftp_register> |
undocumented |
<ftp_remove> |
undocumented |
<ftp_rename> |
undocumented |
<ftp_set_options> |
undocumented |
<ftp_sitename> |
undocumented |
<ftp_stat> |
undocumented |
<ftp_timeout> |
undocumented |
ftruncate |
Truncate the specified file |
fwrite |
Write to a stream |
get_color |
Retrieve screen colors |
get_color_pair |
Retrieve the specific color |
get_mouse_pos |
Retrieve last mouse action |
get_nth |
Retrieve a list element |
get_parm |
Retrieve the value of a macro parameter |
get_property |
Retrieve a dictionary item |
get_region |
Retrieve marked region content |
<get_system_resources> |
undocumented |
get_term_characters |
Retrieve terminal special characters |
get_term_feature |
Get value of a terminal feature |
get_term_features |
Retrieve terminate features |
get_term_keyboard |
Retrieve the terminal keyboard definitions |
getenv |
Retrieve an environment variable |
geteuid |
Retrieve the effective user identifier |
getopt |
Get options |
getpid |
Retrieve the process identifier |
getsubopt |
Parse suboption arguments from a string |
getuid |
Retrieve the user identifier |
getwd |
Get current working directory |
glob |
Generate pathnames matching a pattern |
global |
Declare a global variable |
gmtime |
Convert a time value to UTC time components |
goto_bookmark |
Seek a bookmark |
goto_line |
Move to a particular line |
goto_old_line |
Move to line before buffer modification |
grief_version |
GRIEF version |
hilite_create |
Create a hilite resource |
hilite_delete |
Delete a hilite resource |
hilite_destroy |
Destroy hilite resources |
if |
if statement |
index |
Search string for a leftmost sub-string or character |
<iniclose> |
undocumented |
<iniexport> |
undocumented |
<inifirst> |
undocumented |
<ininext> |
undocumented |
<iniopen> |
undocumented |
<iniproperties> |
undocumented |
<inipush> |
undocumented |
<iniquery> |
undocumented |
<iniremove> |
undocumented |
input_mode |
Effect of certain system keys |
inq_assignment |
Get key assignment for function |
inq_attribute |
Retrieve the current attributes |
inq_backup |
Get the backup creation mode |
inq_backup_option |
Get backup options |
inq_borders |
Retrieve the border status |
inq_brief_level |
Retrieve the editor nesting level |
inq_btn2_action |
Retrieve the second button action |
inq_buffer |
Retrieve a buffer identifier |
inq_buffer_flags |
Retrieve buffer flags |
inq_buffer_title |
Retrieve a buffer title |
inq_buffer_type |
Retrieve buffer type |
inq_byte_pos |
Get current position in buffer stream |
inq_called |
Get the name of the calling macro |
inq_char_map |
Retrieve the character-map |
inq_char_timeout |
Get the escape delay |
inq_clock |
Retrieve the user identifier |
inq_cmd_line |
Retrieve the command line message |
inq_color |
Retrieve the basic colors |
inq_command |
Retrieve name of last keyboard command |
inq_connection |
Connection information |
inq_ctrl_state |
Retrieve the state of a window control |
inq_debug |
Retrieve the current debug setting |
inq_dialog |
Retrieve the current dialog resource |
inq_display_mode |
Inquire display control flags |
inq_echo_format |
Retrieve the echo-line format |
inq_echo_line |
Retrieve the echo-line flags |
inq_encoding |
Retrieve a buffers character encoding |
inq_environment |
Retrieve an environment variable |
inq_feature |
Retrieve an editor feature |
inq_file_change |
Determine state of underlying file |
inq_file_magic |
Retrieve the file type detection rules |
inq_font |
Inquire the current window fonts |
inq_hilite |
Retrieve a hilite definition |
inq_home |
Retrieve the user home directory |
inq_hostname |
Retrieve the local host name |
inq_idle_default |
Retrieve idle interval |
inq_idle_time |
Retrieve keyboard idle time |
inq_indent |
Get current indentation settings |
inq_kbd_char |
Peek at the keyboard |
inq_kbd_flags |
Get keyboard key flags |
inq_kbd_name |
Retrieve the assigned keyboard name |
inq_keyboard |
Retrieve the keyboard identifier |
inq_keystroke_macro |
Retrieve the current keystroke macro |
inq_keystroke_status |
Determine keystroke macro status |
inq_line_col |
Retrieve the echo_line content |
inq_line_flags |
Retrieve a lines associated flags |
inq_line_length |
Determine the longest line length |
inq_lines |
Retrieve the line count |
inq_local_keyboard |
Retrieve local keyboard identifier |
inq_macro |
Determine whether a macro or primitive exists |
inq_macro_history |
Retrieve macro execution history |
inq_margins |
Retrieve buffer formatting margins |
inq_mark_size |
Retrieve size of marked region |
inq_marked |
Determine the current marked region |
inq_marked_size |
Size the marked region |
inq_message |
Retrieve the prompt line |
inq_mode |
Returns the overstrike mode |
inq_modified |
Determine a buffers modification status |
inq_module |
Retrieve the current module |
inq_mouse_action |
Retrieve the keyboard mouse handler |
inq_mouse_type |
Retrieve the button type |
inq_msg_level |
Get the message level |
inq_names |
Retrieve associated buffer names |
inq_position |
Retrieve current buffer position |
inq_process_position |
Get position of process buffer |
inq_profile |
Retrieve profile directory |
inq_prompt |
Retrieve the prompt status |
inq_remember_buffer |
Determine the keystroke buffer name |
inq_ruler |
Retrieves the ruler specification |
inq_scrap |
Obtain the scrap buffer identifier |
inq_screen_size |
Determine screen dimensions |
inq_symbol |
Determine if the symbol exists |
inq_syntax |
Retrieve the syntax identifier |
inq_syntax_name |
Retrieve the syntax name |
inq_system |
Determine if buffer is a system buffer |
inq_tab |
Derive the tab increment |
inq_tabs |
Retrieves the buffer tab specification |
inq_terminator |
Retrieve a buffers line terminator |
inq_time |
Retrieve the last modification time |
inq_tmpdir |
Get the temporary-file directory |
inq_top_left |
Retrieve window view port coordinates |
<inq_unicode_version> |
undocumented |
inq_username |
Retrieve the user name |
inq_vfs_mounts |
Retrieve list of mounts |
inq_views |
Determine window count |
inq_window |
Retrieve the current window |
inq_window_buf |
Retrieve the associated buffer |
inq_window_color |
Retrieve the window attribute |
inq_window_flags |
Retrieve window flags |
inq_window_info |
Retrieve the current window information |
inq_window_infox |
Retrieve information about a window |
inq_window_priority |
Retrieve the windows display priority |
inq_window_size |
Retrieve the window size |
insert |
Insert string into current buffer |
insert_buffer |
Insert format text into a buffer |
insert_mode |
Set the buffer insert/overstrike mode |
insert_process |
Send string to a attached process |
insertf |
Insert a formatted string |
<inside_region> |
undocumented |
int |
Declare an integer symbol |
int_to_key |
Convert an keycode to mnemonic key string |
is_array |
Determine whether an array type |
is_float |
Determine whether a float type |
is_integer |
Determine whether an integer type |
is_list |
Determine whether a list type |
is_null |
Determine whether a NULL type |
is_string |
Determine whether a string type |
is_type |
Determine whether an explicit type |
isalnum |
Alphanumeric character predicate |
isalpha |
Alpha character predicate |
isascii |
ASCII character predicate |
isblank |
Blank character predicate |
isclose |
Test for floating point equality |
iscntrl |
Control character predicate |
iscsym |
A symbol character predicate |
isdigit |
Numeric character predicate |
isfinite |
Test for finite value |
isgold |
Alphanumeric character predicate |
isgraph |
Graphic character predicate |
isinf |
Test for infinity |
islower |
Lowercase character predicate |
isnan |
Test for a NaN |
isprint |
A printable character predicate |
ispunct |
Punctuation character predicate |
isspace |
Space character predicate |
isupper |
Uppercase character predicate |
isword |
Word character predicate |
isxdigit |
Hexadecimal character predicate |
itoa |
Convert an integer into a string |
key_list |
Retrieve keyboard bindings |
key_to_int |
Convert key name to a code |
keyboard_flush |
Flush the keyboard buffer |
keyboard_pop |
Pop a keyboard from the keyboard stack |
keyboard_push |
Push a keyboard onto the keyboard stack |
keyboard_typeables |
Assign self_insert to all typeable keys |
lastof |
Rightmost character search |
ldexp |
Multiply by a power of two |
left |
Move position left one charcter |
length_of_list |
Determine list element count |
link |
Link a file |
list |
Declare a list symbol |
list_each |
Iterator though the list elements |
list_extract |
Extract list elements |
list_of_dictionaries |
List of created dictionaries |
list_reset |
Reset the list iterator |
load_keystroke_macro |
Load a recorded macro from a file |
load_macro |
Load a macro object |
localtime |
Convert a time value to local time components |
log |
Natural logarithm |
log10 |
Base 10 logarithm function |
lower |
Convert string or character to lowercase |
lstat |
Get symbolic link status |
ltrim |
Chomp characters from the front of a string |
macro |
Define a macro body |
macro_list |
Retrieve list of current macros |
main |
Macro entry point |
make_list |
Build an evaluated list |
make_local_variable |
Make a buffer local variable |
mark |
Toggle the anchor status |
mark_line |
Create a line marker |
message |
Display a message on the command line |
mkdir |
Create a directory |
mktemp |
Make a temporary filename |
mode_string |
Conversion stat mode to a string representation |
modf |
Decompose a floating-point number |
module |
Assign a module identifier |
move_abs |
Move to an absolute location in the buffer |
move_edge |
Modify a window |
move_rel |
Move to a relative location in the buffer |
next_buffer |
Identifier of the next buffer |
next_char |
Move to the next character |
next_window |
Obtain the next window identifier |
nothing |
Noop |
nth |
Extract the indexed list item |
output_file |
Change the output file-name |
page_down |
Move position down a page |
page_up |
Move position up a page |
parse_filename |
Parse a file into its components |
paste |
Insert scrap buffer at cursor location |
pause |
Pause keystroke definition |
pause_on_error |
Set the error display mode |
pause_on_message |
Set the message display mode |
perror |
Print error |
playback |
Replay a keystroke macro |
pop |
Pop the last element |
post++ |
Postfix Increment |
post-- |
Postfix Decrement |
pow |
Raise to power |
prev_char |
Move to the previous character |
previous_buffer |
Identifier of the previous buffer |
print |
Print formatted string to stdout |
printf |
Print formatted string to stdout |
process |
Invoke a Grief engine |
process_mouse |
Process mouse event |
profile |
Profiling support |
push |
Add an element onto a list |
push_back |
Push back a character into the keyboard |
put_nth |
Modify a list element |
put_parm |
Assign an argument value |
putenv |
Set an environment variable |
quote_list |
Build an unevaluated list |
quote_regexp |
Quote regexp special characters |
raise_anchor |
Raise the last dropped mark |
rand |
Generate a random number |
re_comp |
Compile a regular expression |
re_delete |
Delete a compiled expression |
re_result |
Retrieve search captures |
re_search |
Search for a string |
re_syntax |
Set the regular expression mode |
re_translate |
Search and replace |
read |
Read characters from the buffer |
read_char |
Read next key from the keyboard |
read_ea |
Read file extended information |
read_file |
Read into the current buffer |
readlink |
Read the contents of a symbolic link |
realpath |
Resolve a pathname |
redo |
Redo an undo operation |
redraw |
Redraw screen |
ref_parm |
Create a reference parameter |
refresh |
Update the display |
register |
Define a variable as being a register |
register_macro |
Register a callback procedure |
reload_buffer |
Reload the buffer content |
remember |
Start remembering keystrokes |
remove |
Remove a file |
rename |
Rename a file |
replacement |
Overload an existing macro definition |
require |
Enforce the use of an external module |
reregister_macro |
Register a unique callback procedure |
restore_position |
Restore a previously saved position |
return |
Return from a macro |
returns |
Return an expression from a macro |
right |
Move position right one character |
rindex |
Search string for a rightmost sub-string or character |
rmdir |
Remove directory |
rtrim |
Chomp characters from the end of a string |
save_keystroke_macro |
Save the current keystroke macro |
save_position |
Saves current cursor/buffer state |
screen_dump |
Dump an image of the screen |
search_back |
Backwards buffer search |
search_case |
Set the search pattern case mode |
search_fwd |
Buffer search |
search_list |
Search list contents |
search_string |
Searches for a pattern in a string |
searchpath |
Searches for a given file in a specified path |
self_insert |
Insert a character as if it was typed |
send_signal |
Send signal to a process buffer |
set_attribute |
Set the color attributes |
set_backup |
Set backup creation mode |
set_backup_option |
Set backup options |
set_binary_size |
Set binary chunk size |
set_btn2_action |
Set the second button action |
set_buffer |
Set the current buffer |
set_buffer_cmap |
Set a buffers character-map |
set_buffer_flags |
Set buffer flags |
set_buffer_title |
Set a buffers title |
set_buffer_type |
Set the buffer storage type |
set_calling_name |
Set the name of the calling macro |
set_char_timeout |
Set the escape delay |
set_color |
Set screen colors |
set_color_pair |
Set a specific color |
set_ctrl_state |
Set the state of a window control |
set_ea |
Set file extended information |
set_echo_format |
Set the echo line format |
set_encoding |
Set a buffers character encoding |
set_feature |
Config an editor feature |
set_file_magic |
Define the file type detection rules |
set_font |
Set the current window fonts |
set_idle_default |
Set idle interval |
set_indent |
Set the buffers default indentation |
set_kbd_name |
Set the keyboard name |
set_line_flags |
Associate line flags |
set_macro_history |
Set the macro execution history |
set_margins |
Set buffer formatting margins |
set_mouse_action |
Set keyboard mouse handler |
set_mouse_type |
Sets the mouse type |
set_msg_level |
Set level of informational messages |
set_process_position |
Set process insertion position |
set_property |
Set a dictionary item |
set_ruler |
Configure the buffer ruler |
set_scrap_info |
Set the scrap buffer details |
set_syntax_flags |
Set syntax flags |
set_tab |
Derive the buffer tab stops |
set_term_characters |
Set terminal special characters |
set_term_feature |
Set a terminal attribute |
set_term_features |
Define terminal attributes |
set_term_keyboard |
Define terminal keyboard definitions |
set_terminator |
Set a buffers line terminator |
set_top_left |
Manages window view port coordinates |
<set_unicode_version> |
undocumented |
set_window |
Set the active window |
set_window_cmap |
Set a windows character-map |
set_window_flags |
Set window flags |
set_window_priority |
Set the window display priority |
set_wm_name |
Set the window and/or icon name |
shell |
Spawn a sub-shell process |
shift |
Shift the first list element |
sin |
Sine function |
sinh |
Hyperbolic sine function |
sleep |
Suspend execution for an interval of time |
sort_buffer |
Sort buffer content |
sort_list |
Sort list |
spell_buffer |
Spell the specified buffer |
spell_control |
Spell control |
spell_dictionary |
Spell dictionary modifications |
spell_distance |
Edit distance |
spell_string |
Spell the specified word or line |
spell_suggest |
Suggest spelling of the the specified word |
splice |
Splice a list, removing and/or adding elements |
split |
Split a string into tokens |
split_arguments |
Argument split |
splitpath |
Searches for a given file in a specified path |
sprintf |
Formatted printing to a string |
sqrt |
Square root function |
srand |
Seed the random number generator |
sscanf |
Read formatted data from string |
stat |
Obtain file information |
static |
Define a function or module scope |
strcasecmp |
String case insensitive compare |
strcasestr |
Locate first occurrence of a case insensitive |
strcmp |
String compare |
strerror |
String error |
strfilecmp |
Filename comparison |
strftime |
Format time and date |
string |
Declare a string symbol |
string_count |
Count occurrences of characters in a string |
strlen |
String length |
strnlen |
String length limited to an explicit maximum |
strpbrk |
Search a string for any of a set of characters |
strpop |
Pop the leading character(s) |
strrstr |
Locate last occurrence of a sub-string |
strsignal |
Return string describing signal |
strstr |
Locate first occurrence of a sub-string |
strtod |
String to double |
strtof |
String to float |
strtol |
Convert a string into its numeric value |
strverscmp |
Version string compare |
substr |
Extract a sub-string |
suspend |
Suspend current process |
swap_anchor |
Swaps the mark with the current position |
switch |
Switch statement |
symlink |
Create a symbolic link |
syntax_build |
Build a syntax hiliting engine |
syntax_column_ruler |
Column syntax coloriser |
<syntax_find> |
undocumented |
syntax_rule |
Define a syntax hilite rule |
syntax_token |
Define a syntax token |
tabs |
Set buffer tab stops |
tagdb_close |
Tag database close |
tagdb_open |
Tag database open |
tagdb_search |
Tag database search |
tan |
Tangent function |
tanh |
Hyperbolic tangent function |
throw |
Throw an exception |
time |
Get the current system time |
tokenize |
Tokenize a string into token elements |
top_of_buffer |
Move cursor to start of current buffer |
top_of_window |
Goto top of the current window |
transfer |
Buffer to buffer transfer |
translate |
Buffer search and replace |
translate_pos |
Convert window coordinates |
trim |
Chomp characters from a string |
try |
Try statement |
typeof |
Determine the symbol type |
umask |
Set and get the file mode creation mask |
uname |
Retrieve system information |
undo |
Undo previous edit operations |
unlink |
Unlink a file |
unregister_macro |
Remove a registered macro |
unshift |
Shift the first list element |
up |
Move position up one line |
upper |
Convert string or character to uppercase |
use_local_keyboard |
Associate a keyboard with a buffer |
use_tab_char |
Configure use of hard/soft tabs |
version |
Version information |
vfs_mount |
Mount a virtual file-system |
vfs_unmount |
Unmount a virtual file-system |
view_screen |
View the content of underlying screen |
wait |
Wait for attached process to terminate |
wait_for |
Wait for process output |
watch |
Watch a symbol |
<wcharacterat> |
undocumented |
<wcwidth> |
undocumented |
<wfirstof> |
undocumented |
while |
while statement |
widget_get |
Retrieve a widget attribute |
widget_set |
Set a widget attribute |
<windex> |
undocumented |
window_color |
Set the window attribute |
<wlastof> |
undocumented |
<wlower> |
undocumented |
<wrindex> |
undocumented |
write_block |
Write selected region |
write_buffer |
Write to buffer content |
<wstrcasecmp> |
undocumented |
<wstrcmp> |
undocumented |
<wstrlen> |
undocumented |
<wstrnlen> |
undocumented |
<wstrpbrk> |
undocumented |
<wstrrstr> |
undocumented |
<wstrstr> |
undocumented |
<wsubstr> |
undocumented |
<wupper> |
undocumented |
| |
Bitwise OR operator |
|= |
Bitwise OR assignment operator |
|| |
Logical OR operator |
~ |
Bitwise complement |
Constant |
Description |
---|---|
BPACKAGES |
BRIEF packages default |
CRISP_OPSYS |
Operating system identifier |
GRBACKUP |
Backup path |
GRDICTIONARIES |
Dictionary locales |
GRDICTIONARY |
Dictionary search path |
GRFILE |
Default empty file name |
GRFLAGS |
Default command line arguments |
GRHELP |
Help search path |
GRINIT_FILE |
GRIEF initialisation name |
GRKBDPATH |
Keyboard library search path |
GRLEVEL |
GRIEF Nesting level |
GRLOG_FILE |
GRIEF diagnostics log file name |
GRPATH |
Macro object search path |
GRPROFILE |
Profile directory override |
GRPROGNAME |
GRIEF application path |
GRRC |
GRIEF resource file path |
GRRC_FILE |
GRIEF initialisation name |
GRRESTORE_FILE |
GRIEF restore file name |
GRSTATE_DB |
GRIEF state database name |
GRSTATE_FILE |
GRIEF state file name |
GRTEMPLATE |
Source template search path |
GRTERM |
Terminal override |
GRTERMCAP |
Terminal capability database |
GRTMP |
Temporary dictionary |
GRVERSIONMAJOR |
GRIEF major version |
GRVERSIONMINOR |
GRIEF minor version |
GRVERSIONS |
Backup versions |
errno |
Last system errno number |
To send feedback on this topic email: grie@gmai l.com fedit
Copyright © Adam Young All Rights Reserved.
Last system errno number.
extern int errno;
Not operator.
!expr
Non-equality operator.
expr1 != expr2
Modulus operator.
expr1 % expr2
Modulus assignment operator.
var %= expr1
Bitwise AND operator.
expr1 & expr2
Logical AND operator.
expr1 && expr2
Bitwise AND assignment operator.
var &= expr1
Multiplication assignment operator.
var *= expr1
Addition operator.
expr1 + expr2
Prefix Increment.
++expr
Addition assignment operator.
var += expr1
Subtraction operator.
expr1 - expr2
Prefix Decrement.
--expr
Subtraction.
var -= expr1
Division operator.
expr1 / expr2
Division assignment operator.
var /= expr1
Less than comparison.
expr1 < expr2
Left-shift operator.
expr1 << expr2
Left-shift assignment operator.
var <<= expr1
Less than or equal comparison.
expr1 <= expr2
Comparison operator.
expr1 <=> expr2
Assignment operator.
var = expr1
Equality operator.
expr1 == expr2
Greater than comparison.
expr1 > expr2
Greater than or equal comparison.
expr1 >= expr2
Right-shift operator.
expr1 >> expr2
Right-shift assignment operator.
var >>= expr1
Bitwise exclusive OR operator.
expr1 ^ expr2
Bitwise exclusive OR assignment operator.
var ^= expr1
Switch break statement.
__breaksw;
Lexical scope.
__lexicalblock( .... block ... );
Regression operations.
int __regress_op( ... )
Replacment regression testing.
declare __regress_replacement( ... )
Command prompt unknown key callback.
string _bad_key()
Property change event.
void _chg_properties()
Default extension handler.
void _default( string ext )
Buffer load handler.
void _extension( string ext )
Fatal condition callback.
void _fatal_error( int signo, string desc )
Internal macro initialisation.
void _init()
Invalid key event.
void _invalid_key()
Command prompt session begin callback.
void _prompt_begin( string prompt )
Command prompt session end callback.
void _prompt_end()
Startup event callback.
void _startup_complete( int mode )
Abnormal process.
void abort()
Greater than comparison.
int above( declare expr1, declare expr2 )
Greater than or equal comparison.
int above_eq( declare expr1, declare expr2 )
Absolute value.
int abs( int val )
Test file accessibility.
int access( string path, int mode )
Arc cosine.
float acos( float x )
Argument list.
list arg_list( [int eval = FALSE], [int start = 0], [int end = -1] )
Declare a array symbol.
array sym1, sym2 ...;
Arc sine.
float asin( float x )
Assign command to key or key sequence.
int assign_to_key( [string key], [string macro] )
Arctangent.
float atan( float x )
Arctangent division.
float atan2( float y, float x )
Convert string to a decimal number.
int atoi( string str, [int svalue = TRUE] )
Attach a buffer to a window.
void attach_buffer( int bufnum )
Attach a syntax to a buffer.
int attach_syntax( int|string syntable )
Register location of one or more macros.
void autoload( string filename, string function, ... )
Delete character to the left of the cursor.
void backspace( [int num = 1] )
Return the last component of a pathname.
int basename( string pathname, [string suffix] )
Issue a beep sound.
int beep( [int freq], [int duration] )
Goto beginning of line.
int beginning_of_line()
Less than comparison.
int below( declare expr1, declare expr2 )
Less than or equal comparison.
int below_eq( declare expr1, declare expr2 )
Associate an object with a class/module.
int bless( [int ref], [string classname] )
Retrieve existing bookmark list.
list bookmark_list()
Declare a boolean symbol.
bool sym1, sym2 ...;
Set window border status.
int borders( [int borders] )
break statement.
break;
Invoke registered macro callbacks.
int call_registered_macro( int type )
Retrieve the first list element.
declare car( list lst )
Switch case statement.
'case' expr:
Catch statement.
catch statement;
Change directory.
int cd( [string dir] )
Retrieve all secondary list elements.
list cdr( list lst )
Round up to integral value.
float ceil( float x )
Format time and date.
string cftime( string format, int time )
Selects a new window.
void change_window( [int direction], [string message] )
Modify window coordinates/size.
int change_window_pos( [int topx], [int topy], [int width], [int height], [int winnum] )
Retrieve the character value within a string.
int characterat( string str, int index )
Change directory.
int chdir( string path )
Change mode.
int chmod( string path, int mode )
Change owner.
int chown( string path, int owner, int group )
Close specified the window.
void close_window( [int winum] )
Set the basic colors.
int color( [int background], [int normal], [int selected], [int message], [int error], [int hilite], [int hilite_fg], ... )
Border color background color index.
int color_index( [int index] )
Retrieve list of built-in and active macros.
list command_list( [int nomacros = FALSE], [string pattern] )
Comparison.
int compare( expr1, expr2 )
Binary file compare.
int compare_files( [int flags], string file1, string file2 )
Compress repeated instances of white-space characters.
string compress( string str, [int trim = FALSE], [string chars = " \\t\\r\\n"], [int replacement = ' '] )
Attach a process to a process.
int connect( int mode, string shell = NULL, string cwd = NULL )
Define a variable as being constant.
const <type> sym1, sym2 ...;
Loop continuation.
continue;
Copy marked area to scrap.
int copy( [int append = FALSE], [int keep = FALSE] )
Copy file extended information.
int copy_ea_info( string sourcename, string destname )
Copy a keyboard.
int copy_keyboard( int kbdid, [string cmd ...] )
Copy the current screen.
void copy_screen()
Cosine.
float cos( float x )
Hyperbolic cosine.
float cosh( float x )
Create and load a buffer.
int create_buffer( string bufname, [string filename], [int sysflag = FALSE], [int editflags = 0], [string encoding = ""] )
Create a display character-map.
int create_char_map( [int mapid|string name], [int start = 0], [list chars], [list flags], [string name] )
Create a dictionary.
int create_dictionary( string ~name, int ~tablesize, int ~tablefactor )
Create an edge, splitting the window.
int create_edge( [int direction] )
Create the menu window.
int create_menu_window( [int create] )
Create or reference a buffer.
int create_nested_buffer( string bufname, [string filename], [int sysflag], [int editflags], [string encoding] )
Syntax table creation.
int create_syntax( string table )
Creates a tiled window.
int create_tiled_window( int lx, int by, int rx, int ty, [int bufnum] )
Create a popup window.
int create_window( int lx, int by, int rx, int ty, [string message] )
Control cursor display.
int cursor( int state )
Cut marked area to scrap.
int cut( [int append = FALSE], [int syscopy = FALSE] )
Convert string to object.
declare cvt_to_object( string value, [int &length] )
Get current system date.
int date( [int &year], [int &month], [int &day], [string &monname], [string &dayname] )
Control runtime debug and tracing.
int debug( [int flags|string flags|NULL], [int echo = TRUE] )
Internal debugger functionality.
void debug_support( int what, declare object, declare arg )
Declare a polymorphic symbol.
declare sym1, sym2 ...;
Add keywords to a syntax dictionary.
void define_keywords( [int|string] keywords, string words|list words, [int length], [int flags], [int|string syntable] )
Delete a file.
int del( string name )
Deleted selected region.
int delete_block()
Delete a bookmark.
void delete_bookmark( int bookid )
Delete a buffer.
void delete_buffer( int bufnum )
Delete character.
void delete_char( [int num] )
Destroy a dictionary.
int delete_dictionary( int obj_id )
Delete an edge, combining a split window.
int delete_edge( [int direction] )
Delete current line.
void delete_line()
Delete a macro from memory.
void delete_macro( string macro )
Remove one or more elements from a list.
void delete_nth( list lst, [int offset = 0], [int length = 1] )
Delete to end-of-line.
void delete_to_eol()
Delete a window.
void delete_window( [int winum] )
Detach a syntax from a buffer.
void detach_syntax()
Build a dialog resource.
int dialog_create( list decl )
Delete a dialog resource.
int dialog_delete( int dialog )
Exit a dialog resource.
int dialog_exit( int retval = 0, [int dialog] )
Execute a dialog resource.
int dialog_run( int dialog, [string args] )
Clear a dictionary.
int dict_clear( int obj_id )
Remove a dictionary item.
int dict_delete( int obj_id, string key )
Iterator a dictionary.
int dict_each( int obj_id, [string key], [declare value] )
Dictionary item existence check.
int dict_exists( int obj_id, string key )
Iterator dictionary keys.
int dict_keys( int obj_id, [string key] )
Retrieve dictionary items.
list dict_list( int obj_id )
Retrieve a dictionary name.
string dict_name( int obj_id )
Iterator dictionary values.
int dict_values( int obj_id, [declare value] )
Compare to strings.
int diff_strings( [int flags], string s1, string s2 )
Report the parent directory name of a file pathname.
int dirname( string path )
Disconnect a buffer from a process.
int disconnect()
Set/retrieve display control flags.
int display_mode( [int or_mask|string set-list], [int and_mask|string clear-list], [int scroll_cols], [int scroll_rows], [int visible_cols], [int visible_rows], [int number_cols] )
Control window display.
int display_windows( [int mode] )
Calculate distance to next indent.
int distance_to_indent( [int column] )
Calculate distance to next tab.
int distance_to_tab( [int column] )
do statement.
do statement; while ( condition );
Create a sub-shell.
int dos( [string cmd], [int use_shell], [string callback] )
Declare a double float symbol.
double sym1, sym2 ...;
Move position down one line.
int down( [int lines = 1] )
Formatted diagnostics output.
int dprintf( string format, ... )
Start marking a selection.
int drop_anchor( [int type = MK_NORMAL] )
Create or update a bookmark.
int drop_bookmark( [int bookid], [string yesno], [int bufnum], [int line], [int column], [int local = FALSE] )
Set echo line flags.
int echo_line( [int flags] )
Edit a file.
int edit_file( ... )
Extended file edit.
int edit_file2( string encoding, string|list file )
Terminal line display.
int ega( int lines )
else statement.
if ( expr ) true-body else false-body
Set the end of the anchor.
int end_anchor( [int line], [int column] )
Move cursor to end of current buffer.
int end_of_buffer()
Goto end of line.
int end_of_line()
Goto end of the current window.
int end_of_window()
Issue an error message on the command line.
int error( string format, ... )
Invokes a command by name.
declare execute_macro( [string cmd], ... )
Check file existence.
int exist( string path, [int canon = TRUE] )
Exit current process level.
void exit( [string y_or_w] )
Exponential function.
float exp( float x )
Expand the path.
string expandpath( string path, [int env] )
Declare an external variable.
extern <type> sym1, sym2, ..;
Floating-point absolute value.
float fabs( float x )
Close a stream.
int fclose( int handle )
Test end-of-file indicator on a stream.
int feof( int handle )
Test error indicator on a stream.
int ferror( int handle, [int clearerr] )
Flush a stream.
int fflush( int handle, [int sync] )
Canonicalize a path.
string file_canon( string filepath )
Return names of files that match patterns.
list file_glob( string files )
File match utility.
int file_match( pattern, file, [flags] )
Directory file pattern.
int file_pattern( string filespec )
Perform file pattern matching.
int filename_match( string file, declare pattern )
Return a resolved pathname.
string filename_realpath( string pathname )
Finally statement.
finally statement;
Read next directory entry.
int find_file( [string &filename], [int &size], [int &mtime], [int &ctime], [int &mode] )
Extended read next directory entry.
int find_file2( string filename, [int &size], [int &mtime], [int &ctime], [int &atime], [int &mode], [int &uid], [string &uid2name], [int &gid], [string &gid2name], [int &nlink], [int &inode] )
Locate next line with specific flags.
int find_line_flags( [int bufnum], [int lineno], int mode, int and_mask, [int or_value], [int value] )
Determine path of a macro object.
string find_macro( string filename )
Locate next marker.
int find_marker( [int marker = L_MARKED] )
File miscellaneous control.
int fioctl( int handle, .. )
Determine a macros initialisation status.
int first_time()
Leftmost character search.
int firstof( string str, string chars, [int &result] )
Declare a float symbol.
float sym1, sym2 ...;
File lock operations.
int flock( int handle, .. )
Round down to integral value.
float floor( float x )
Make a unique filename.
int fmktemp( string template );
Floating-point remainder.
float fmod( float x, float y )
Open a stream.
int fopen( string path, int|string flags, [int mode = 0644], [int bufsiz] )
for statement.
for ( [initialise]; [condition]; [increment] ) statements;
Container iterator.
void foreach( <body>, <expr>, <key>, <value>, <index>, <increment> )
Formatted printing.
string format( string format, ... )
Read from a stream.
int fread( int handle, string buffer, [int bufsiz = BUFSIZ], [int null = ' '] )
Extract mantissa and exponent.
float frexp( float num, int & exp )
Reposition a file-position indicator in a stream.
int fseek( int handle, int offset, int whence )
Stream status information.
int fstat( int handle, [int size], [int mtime], [int ctime], [int atime], [int mode], [int uid], [string uid2name], [int gid], [string gid2name], [int nlink] )
File system type.
int fstype( [string path] )
Report the file-position indicator of a stream.
int ftell( int handle )
Test file type.
int ftest( int|string condition, string path )
Truncate the specified file.
int ftruncate( int handle, [int size] )
Write to a stream.
int fwrite( int handle, string buffer, [int length] )
Retrieve screen colors.
list get_color( [int flags = 0] )
Retrieve the specific color.
void get_color_pair( string name|int ident, [int|string fg], [int|string bg], [int|string sf] )
Retrieve last mouse action.
void get_mouse_pos( [int &x], [int &y], [int &winnum], [int &line], [int &col], [int &where], [int ®ion], [int &event] )
Retrieve a list element.
declare get_nth( int idx, list expr )
Retrieve the value of a macro parameter.
int get_parm( [int argument], declare & symbol, [string prompt], [int length = MAXPROMPT], [declare default], [int one = FALSE] )
Retrieve a dictionary item.
declare get_property( int obj_id, string key )
Retrieve marked region content.
int get_region( [int bufnum] )
Retrieve terminal special characters.
list get_term_characters( [top_left], [top_right], [bottom_left], [bottom_right], [vertical], [horizontal], [top_join], [bottom_join], [cross], [left_join], [right_join], [scrol], [thumb] )
Get value of a terminal feature.
int get_term_feature( string | int ident, declare value )
Retrieve terminate features.
list get_term_features( ... )
Retrieve the terminal keyboard definitions.
list get_term_keyboard()
Retrieve an environment variable.
string getenv( string name )
Retrieve the effective user identifier.
int geteuid()
Get options.
int getopt( string value, [[string shortopts], list longopts, string|list args, [string caller]] )
Retrieve the process identifier.
int getpid()
Parse suboption arguments from a string.
int getsubopt( string value, [list options], [string|list args], [string delim], [string quotes] )
Retrieve the user identifier.
int getuid()
Get current working directory.
int getwd( int ignored, string dir )
Generate pathnames matching a pattern.
string glob( string pattern )
Declare a global variable.
global sym1, sym2, ..;
Convert a time value to UTC time components.
int gmtime( [int time = NULL], [int &year], [int &mon], [int &mday], [string &monname], [string &dayname], [int &hour], [int &min], [int &sec] )
Seek a bookmark.
int goto_bookmark( int bookid = NULL, [int &bufnum], [int &line], [int &column] )
Move to a particular line.
int goto_line( [int lineno] )
Move to line before buffer modification.
int goto_old_line( [int oldlineno] )
GRIEF version.
int grief_version()
Create a hilite resource.
int hilite_create( [int bufnam], [int type], [int timeout], [int sline], [int scol], [int eline], [int ecol], [string | int attr], [int ident] )
Delete a hilite resource.
int hilite_delete( [int bufnum], int hilite )
Destroy hilite resources.
int hilite_destroy( [int bufnum], [int type] )
if statement.
if ( expr ) true-body
Search string for a leftmost sub-string or character.
int index( string str, int ch|string s )
Effect of certain system keys.
int input_mode( int char, int flag )
Get key assignment for function.
string inq_assignment( int|string val, [int tokey = FALSE] )
Retrieve the current attributes.
int inq_attribute( [int &normal], [int bufnum] )
Get the backup creation mode.
int inq_backup( [int bufnum] )
Get backup options.
declare inq_backup_option( int what, [int bufnum] )
Retrieve the border status.
int inq_borders()
Retrieve the editor nesting level.
int inq_brief_level()
Retrieve the second button action.
int inq_btn2_action()
Retrieve a buffer identifier.
int inq_buffer( [string filename] )
Retrieve buffer flags.
int inq_buffer_flags( [int bufnum], [string flag|int set = 1], [string ~flags] )
Retrieve a buffer title.
string inq_buffer_title( [int bufnum] )
Retrieve buffer type.
int inq_buffer_type( [int bufnum], [string &desc], [string &encoding] )
Get current position in buffer stream.
int inq_byte_pos( [int bufnum], [int line], [int col], [int flags] )
Get the name of the calling macro.
string inq_called()
Retrieve the character-map.
int inq_char_map( [int winnum], [string &name] )
Get the escape delay.
int inq_char_timeout()
Retrieve the user identifier.
int inq_clock()
Retrieve the command line message.
string inq_cmd_line()
Retrieve the basic colors.
string inq_color( [int &background], [int &normal], [int &selected], [int &messages], [int &errors], [int &hilite], [int &hilite_fg] )
Retrieve name of last keyboard command.
string inq_command()
Connection information.
int inq_connection( int cid, int & flags, int & pid )
Retrieve the state of a window control.
int inq_ctrl_state( int ctrl, [int winnum] )
Retrieve the current debug setting.
int inq_debug()
Retrieve the current dialog resource.
int inq_dialog()
Inquire display control flags.
int inq_display_mode( [string flagname], [string ~flags] )
Retrieve the echo-line format.
int inq_echo_format()
Retrieve the echo-line flags.
int inq_echo_line()
Retrieve a buffers character encoding.
string inq_encoding( [int bufnum] )
Retrieve an environment variable.
string inq_environment( string name )
Retrieve an editor feature.
int|list inq_feature( [int|string feature], [string value] )
Determine state of underlying file.
int inq_file_change( [int bufnum] )
Retrieve the file type detection rules.
string inq_file_magic( [int &isdefault] )
Inquire the current window fonts.
int inq_font( string & normalfont, [string &italicfont] )
Retrieve a hilite definition.
int inq_hilite( [int bufnum], [int line], [int column], [int &attribute], [int &ident] )
Retrieve the user home directory.
string inq_home()
Retrieve the local host name.
string inq_hostname()
Retrieve idle interval.
int inq_idle_default()
Retrieve keyboard idle time.
int inq_idle_time()
Get current indentation settings.
int inq_indent( [int bufnum] )
Peek at the keyboard.
int inq_kbd_char()
Get keyboard key flags.
int inq_kbd_flags()
Retrieve the assigned keyboard name.
string inq_kbd_name( [int kbdid] )
Retrieve the keyboard identifier.
int inq_keyboard()
Retrieve the current keystroke macro.
string inq_keystroke_macro( [int macroid], [int &bufnum] )
Determine keystroke macro status.
int inq_keystroke_macro( [int ¯oid] )
Retrieve the echo_line content.
string inq_line_col()
Retrieve a lines associated flags.
int inq_line_flags( [int bufnum], [int lineno], [int& iflags] )
Determine the longest line length.
int inq_line_length( [int bufnum] )
Retrieve the line count.
int inq_lines( [int bufnum] )
Retrieve local keyboard identifier.
int inq_local_keyboard()
Determine whether a macro or primitive exists.
int inq_macro( string name, [int mode = 0] )
Retrieve macro execution history.
string inq_macro_history( [int index = 0] )
Retrieve buffer formatting margins.
int inq_margins( [int bufnum], [int &left], [int &right], [int &style], [int &colorcolumn], [int global = TRUE] )
Retrieve size of marked region.
int inq_mark_size()
Determine the current marked region.
int inq_marked( [int &start_line], [int &start_col], [int &end_line], [int &end_col] )
Size the marked region.
int inq_marked_size()
Retrieve the prompt line.
string inq_message()
Returns the overstrike mode.
int inq_mode( [int bufnum], [int &localised] )
Determine a buffers modification status.
int inq_modified( [int bufnum] )
Retrieve the current module.
string inq_module( [int test = 1] )
Retrieve the keyboard mouse handler.
string inq_mouse_action()
Retrieve the button type.
int inq_mouse_type()
Get the message level.
int inq_msg_level()
Retrieve associated buffer names.
int inq_names( [string fullname], [string ext], [string bufname], [int bufnum] )
Retrieve current buffer position.
int inq_position( [int &line], [int &col] )
Get position of process buffer.
int inq_process_position( [int &line], [int &column] )
Retrieve profile directory.
string inq_profile()
Retrieve the prompt status.
int inq_prompt()
Determine the keystroke buffer name.
string inq_remember_buffer( [int macroid] )
Retrieves the ruler specification.
string|list inq_ruler( [int bufnum], [int min_count], [int aslist = FALSE] )
Obtain the scrap buffer identifier.
int inq_scrap( [int &last], [int &type] )
Determine screen dimensions.
int inq_screen_size( [int &rows], [int &cols], [int &colors] )
Determine if the symbol exists.
int inq_symbol( string symbol )
Retrieve the syntax identifier.
int inq_syntax( [int &flags], [int|string syntable] )
Retrieve the syntax name.
int inq_syntax_name( [int bufnum] )
Determine if buffer is a system buffer.
int inq_system( [int bufnum] )
Derive the tab increment.
int inq_tab( [int bufnum] )
Retrieves the buffer tab specification.
string|list inq_tabs( [int bufnum], [int min_count], [int aslist = FALSE] ))
Retrieve a buffers line terminator.
int inq_terminator( [int bufnum], [string &term] )
Retrieve the last modification time.
int inq_time( [int bufnum], [int &ctime] )
Get the temporary-file directory.
string inq_tmpdir()
Retrieve window view port coordinates.
int inq_top_left( [int &top], [int &indent], [int winnum], [int &line], [int &col], [int &bufnum] )
Retrieve the user name.
string inq_username()
Retrieve list of mounts.
list inq_vfs_mounts()
Determine window count.
int inq_views( [int bufnum] )
Retrieve the current window.
int inq_window()
Retrieve the associated buffer.
int inq_window_buf( [int winnum] )
Retrieve the window attribute.
int inq_window_color( [int winnum] )
Retrieve window flags.
int inq_window_flags( [int winnum], [string flags] )
Retrieve the current window information.
int inq_window_info( [int &winnum], [int &bufnum], [int &lx], [int &by], [int &rx], [int &ty], [string &title = NULL], [string &message = NULL] )
Retrieve information about a window.
int inq_window_infox( [int winnum], [int &bufnum], [int &lx], [int &by], [int &rx], [int &ty], [string &title = NULL], [string &message = NULL] )
Retrieve the windows display priority.
int inq_window_priority( [int winnum] )
Retrieve the window size.
int inq_window_size()
Insert string into current buffer.
int insert( string|int val, [int num = 1] )
Insert format text into a buffer.
int insert_buffer( int bufnum, string format, ... )
Set the buffer insert/overstrike mode.
int insert_mode( [int value], [int bufnum] )
Send string to a attached process.
int insert_process( string|int val, [int num = 1] )
Insert a formatted string.
int insertf( string format, ... )
Declare an integer symbol.
int sym1, sym2 ...;
Convert an keycode to mnemonic key string.
string int_to_key( int key )
Determine whether an array type.
int is_array( declare & symbol )
Determine whether a float type.
int is_float( declare & symbol )
Determine whether an integer type.
int is_integer( declare & symbol )
Determine whether a list type.
int is_list( declare & symbol )
Determine whether a NULL type.
int is_null( declare & symbol )
Determine whether a string type.
int is_string( declare & symbol )
Determine whether an explicit type.
int is_type( declare & symbol, int|string type )
Alphanumeric character predicate.
int isalnum( string |int object, [int index] )
Alpha character predicate.
int isalpha( string |int object, [int index] )
ASCII character predicate.
int isascii( string |int object, [int index] )
Blank character predicate.
int isblank( string |int object, [int index] )
Test for floating point equality.
int isclose( float v1, float v2, float ~rel_tot, float ~abs_tol )
Control character predicate.
int iscntrl( string |int object, [int index] )
A symbol character predicate.
int iscsym( string |int object, [int index] )
Numeric character predicate.
int isdigit( string |int object, [int index] )
Test for finite value.
int isfinite( float val )
Alphanumeric character predicate.
int isgold( string |int object, [int index] )
Graphic character predicate.
int isgraph( string |int object, [int index] )
Test for infinity.
int isinf( float val )
Lowercase character predicate.
int islower( string |int object, [int index] )
Test for a NaN.
int isnan( float val )
A printable character predicate.
int isprint( string |int object, [int index] )
Punctuation character predicate.
int ispunct( string |int object, [int index] )
Space character predicate.
int isspace( string |int object, [int index] )
Uppercase character predicate.
int isupper( string |int object, [int index] )
Word character predicate.
int isword( string |int object, [int index] )
Hexadecimal character predicate.
int isxdigit( string |int object, [int index] )
Convert an integer into a string.
string itoa( int value, [int base = 10] )
Retrieve keyboard bindings.
list key_list( int kbdid, [int self_inserts = 0], [int bufnum] )
Convert key name to a code.
int key_to_int( string key, int raw )
Flush the keyboard buffer.
void keyboard_flush()
Pop a keyboard from the keyboard stack.
void keyboard_pop( [int save = FALSE] )
Push a keyboard onto the keyboard stack.
void keyboard_push( [int kbdid] )
Assign self_insert to all typeable keys.
int keyboard_typeables()
Rightmost character search.
int lastof( string str, string chars, [int &result] )
Multiply by a power of two.
float ldexp( float val, int exp )
Move position left one charcter.
int left( [int columns = 1], [int wrap = TRUE] )
Determine list element count.
int length_of_list( list lst )
Link a file.
int link( string path1, string path2 )
Declare a list symbol.
list sym1, sym2 ...;
Iterator though the list elements.
int list_each( list lst, declare & value, [int increment = 1] )
Extract list elements.
list list_extract( list lst, int start, [int end], [int increment] )
List of created dictionaries.
list list_of_dictionaries( [bool nonempty = false], [bool named = false] )
Reset the list iterator.
int list_reset( list lst )
Load a recorded macro from a file.
int load_keystroke_macro( string def )
Load a macro object.
int load_macro( string filename, [int reload = 1] )
Convert a time value to local time components.
int localtime( [int time = NULL], [int &year], [int &mon], [int &mday], [string &monname], [string &dayname], [int &hour], [int &min], [int &sec] )
Natural logarithm.
float log( float x )
Base 10 logarithm function.
float log10( float val )
Convert string or character to lowercase.
string|int lower( string str|int character )
Get symbolic link status.
int lstat( string path, [int size], [int mtime], [int ctime], [int atime], [int mode], [int uid], [string uid2name], [int gid], [string gid2name], [int nlink], [int inode] )
Chomp characters from the front of a string.
string ltrim( string str, [string chars = " \\t\\r\\n"] )
Define a macro body.
declare macro( list declaration )
Retrieve list of current macros.
list macro_list( [string pattern = NULL] )
Macro entry point.
void main()
Build an evaluated list.
list make_list( ... )
Make a buffer local variable.
void make_local_variable( declare & sym, ... )
Toggle the anchor status.
int mark( [int type = MK_NORMAL] )
Create a line marker.
int mark_line( int flag, [int toggleall], [int bufnum], [int lineno = 0], [int marker = L_MARKED] )
Display a message on the command line.
int message( string format, ... )
Create a directory.
int mkdir( string pathname, int mode = 0755 )
Make a temporary filename.
string mktemp( string path )
Conversion stat mode to a string representation.
string mode_string( [int mode], [int format = 0], [string path] )
Decompose a floating-point number.
float modf( float num, float & mod )
Assign a module identifier.
int module( string modulename )
Move to an absolute location in the buffer.
int move_abs( [int line = -1], [int column = -1], [int bufnum], [int clip = FALSE] )
Modify a window.
int move_edge( [int direction], [int amount] )
Move to a relative location in the buffer.
int move_rel( [int lines = 1], [int cols = 1] )
Identifier of the next buffer.
int next_buffer( [int sysflag = 0], [int previous], [int tab] )
Move to the next character.
int next_char( [int characters = 1] )
Obtain the next window identifier.
int next_window( int winnum )
Noop.
void nothing()
Extract the indexed list item.
declare nth( list expr, int idx, [int idx2 ...] )
Change the output file-name.
int output_file( [string filename] )
Move position down a page.
int page_down( [int pages = 1] )
Move position up a page.
int page_up( [int pages = 1] )
Parse a file into its components.
int parse_filename( string fullname, [string &drive], [string &path], [string &filename], [string &ext] )
Insert scrap buffer at cursor location.
int paste( [int syspaste = FALSE] )
Pause keystroke definition.
void pause()
Set the error display mode.
int pause_on_error( [int pause = NULL], [int echo = TRUE] )
Set the message display mode.
int pause_on_message( [int pause = NULL], [int echo = TRUE] )
Print error.
string perror( [int errnum = errno], string format, ... )
Replay a keystroke macro.
int playback( [int macroid] )
Pop the last element.
declare pop( list expr )
Postfix Increment.
expr++
Postfix Decrement.
expr--
Raise to power.
float pow( float x, float y )
Move to the previous character.
int prev_char( [int characters = 1] )
Identifier of the previous buffer.
int previous_buffer( [int sysflag = 0], [int tab] )
Print formatted string to stdout.
int print()
Print formatted string to stdout.
void printf( string format, ... )
Invoke a Grief engine.
void process()
Process mouse event.
void process_mouse( [int b1], [int b2], [int b3], int x, int y )
Profiling support.
void profile( [int flags] )
Add an element onto a list.
declare push( list lst, declare value ... )
Push back a character into the keyboard.
void push_back( int key, [int front], [int x], [int y] )
Modify a list element.
declare put_nth( symbol, ... )
Assign an argument value.
int put_parm( int argidx, declare val, [int optional = TRUE] )
Set an environment variable.
void putenv( string name, [string value] )
Build an unevaluated list.
list quote_list( ... )
Quote regexp special characters.
string quote_regexp( string text )
Raise the last dropped mark.
int raise_anchor()
Generate a random number.
int rand( [int upper] )
Compile a regular expression.
list re_comp( [int flags], string pattern, [string &error] )
Delete a compiled expression.
int re_delete( list handle )
Retrieve search captures.
int re_result( [int capture], [string &value], [int &offset], [int &length] )
Search for a string.
int re_search( [int flags], [string pattern], [declare object], [int start], [int lensym] )
Set the regular expression mode.
int re_syntax( [int re], [int case], [int capture] )
Search and replace.
int|string re_translate( [int flags], string pattern, [string replacement], [declare object] )
Read characters from the buffer.
string read( [int number], [int &status] )
Read next key from the keyboard.
void read_char( [int timeout = 0], [int mode = 0] )
Read file extended information.
int read_ea( string filename, ... )
Read into the current buffer.
int read_file( [string filename], [int glob = TRUE], [string encoding = NULL] )
Read the contents of a symbolic link.
string|int readlink( string path, [string &link] )
Resolve a pathname.
int realpath( string pathname, string resolved_path )
Redo an undo operation.
void redo()
Redraw screen.
void redraw( [int winch] )
Create a reference parameter.
void ref_parm( int argument, string local_symbol, [int optional = FALSE] )
Update the display.
void refresh()
Define a variable as being a register.
register idx1, sym1, idx2, sym2 ...;
Register a callback procedure.
int register_macro( int type, string macro, [int local = FALSE] )
Reload the buffer content.
int reload_buffer( [int bufnum], [string encoding] )
Start remembering keystrokes.
int remember( [string|int overwrite], [int macroid] )
Remove a file.
int remove( string filename )
Rename a file.
int rename( string old, string new )
Overload an existing macro definition.
replacement <macro-definition>
Enforce the use of an external module.
int require( string filename )
Register a unique callback procedure.
int reregister_macro( int type, string macro, [int local = FALSE] )
Restore a previously saved position.
int restore_position( [int what = 1] )
Return from a macro.
return [<expression>];
Return an expression from a macro.
returns ( expression );
Move position right one character.
int right( [int columns = 1], [int wrap = TRUE] )
Search string for a rightmost sub-string or character.
int rindex( string str, int ch|string s )
Remove directory.
int rmdir( string path )
Chomp characters from the end of a string.
string rtrim( string str, string chars = \\t \\r \\n )
Save the current keystroke macro.
int save_keystroke_macro( string filename )
Saves current cursor/buffer state.
void save_position()
Dump an image of the screen.
int screen_dump( string filename )
Backwards buffer search.
int search_back( string pattern, [int re], [int case], [int block], [int length] )
Set the search pattern case mode.
int search_case( [int case] )
Buffer search.
int search_fwd( string pattern, [int re], [int case], [int block], [int length] )
Search list contents.
int search_list( [int start], string pattern, list expr, [int re], [int case] )
Searches for a pattern in a string.
int search_string( string pattern, string text, [int &length], [int re], [int case] )
Searches for a given file in a specified path.
int searchpath( [string path], string filename, [string extension], string & result, [int mode], [int expand = FALSE] )
Insert a character as if it was typed.
void self_insert( [int character] )
Send signal to a process buffer.
int send_signal( int signal )
Set the color attributes.
int set_attribute( [int|string text], [int|string normal], [int bufnum] )
Set backup creation mode.
int set_backup( int mode, [int bufnum] )
Set backup options.
int set_backup_option( int what, [int bufnum], parameter )
Set binary chunk size.
int set_binary_size( [int size] )
Set the second button action.
int set_btn2_action( [int action] )
Set the current buffer.
int set_buffer( int bufnum )
Set a buffers character-map.
int set_buffer_cmap( [int mapid|string name], [int bufnum] )
Set buffer flags.
void set_buffer_flags( [int bufnum], [string|int or_mask], [string|int and_mask], [int set = 1] )
Set a buffers title.
int set_buffer_title( [int bufnum], [string title] )
Set the buffer storage type.
int set_buffer_type( [int bufnum], [int type = NULL], [string encoding = NULL] )
Set the name of the calling macro.
void set_calling_name( string name = NULL )
Set the escape delay.
void set_char_timeout( [int timeout] )
Set screen colors.
int set_color( [list|string spec], [int create = TRUE] )
Set a specific color.
void set_color_pair( string|int ident, [int|string fg], [int|string bg], [int|string sf] )
Set the state of a window control.
void set_ctrl_state( int ctrl, int state, [int winnum] )
Set file extended information.
int set_ea( string filename, ... )
Set the echo line format.
void set_echo_format( [string format = NULL] )
Set a buffers character encoding.
int set_encoding( [string encoding = NULL], [int bufnum = NULL] )
Config an editor feature.
int set_feature( [int|string feature], [string value] )
Define the file type detection rules.
int set_file_magic( [string encoding], [int cost] )
Set the current window fonts.
int set_font( [string normalfont], [string italicfont] )
Set idle interval.
int set_idle_default( int internal = 0 )
Set the buffers default indentation.
int set_indent( [int indent], [int bufnum] )
Set the keyboard name.
void set_kbd_name( string name, [int kbdid] )
Associate line flags.
int set_line_flags( [int bufnum], [int start], [int end], [int and_mask], [int or_value] )
Set the macro execution history.
string set_macro_history( [int index = 0], [string value] )
Set buffer formatting margins.
int set_margins( [int bufnum], [int left = NULL], [int right = NULL], [int style = NULL], [int colorcolumn = NULL] )
Set keyboard mouse handler.
int set_mouse_action( string mouse_handler )
Sets the mouse type.
int set_mouse_type()
Set level of informational messages.
int set_msg_level( int level )
Set process insertion position.
int set_process_position( [int line], [int column] )
Set a dictionary item.
int set_property( int obj_id, string key, [declare value] )
Configure the buffer ruler.
int set_ruler( [int bufnum], [list|string|int ...] )
Set the scrap buffer details.
void set_scrap_info( [int last], [int type], [int bufnum] )
Set syntax flags.
int set_syntax_flags( int flags, [int|string syntable] )
Derive the buffer tab stops.
int set_tab( [int increment], [int bufnum] )
Set terminal special characters.
int set_term_characters( int value0, .... )
Set a terminal attribute.
int set_term_feature( int|string ident, [string|int value] )
Define terminal attributes.
int set_term_features( list features )
Define terminal keyboard definitions.
int set_term_keyboard( list kbd )
Set a buffers line terminator.
int set_terminator( [int bufnum], int|string term )
Manages window view port coordinates.
int set_top_left( [int line], [int column], [int winnum], [int csrline], [int csrcolumn], [int bufnum] )
Set the active window.
int set_window( int winnum )
Set a windows character-map.
int set_window_cmap( [int mapid|string name], [int winnum] )
Set window flags.
void set_window_flags( [int winnum], [string set|int or_mask], [string clear|int and_mask] )
Set the window display priority.
int set_window_priority( int priority, [int winnum] )
Set the window and/or icon name.
void set_wm_name( [string wname], [string iname] )
Spawn a sub-shell process.
int shell( [string cmd], [int use_shell], [string completion], [string stdin], [string stdout], [string stderr], [int mode], [string spec] )
Shift the first list element.
declare shift( list lst )
Sine function.
float sin( float val )
Hyperbolic sine function.
float sinh( float val )
Suspend execution for an interval of time.
void sleep( [int seconds = 1], [int milliseconds = 0] )
Sort buffer content.
int sort_buffer( [int bufnum], [string|int comparator = 0], [int start], [int end], [int type = 3] )
Sort list.
list sort_list( list lst, [string|int comparator = 0], [int type = 3] )
Spell the specified buffer.
list spell_buffer( int start_line, [int end_line], [int tokenize = 1], [int suggest] )
Spell control.
declare spell_control( int action, ... )
Spell dictionary modifications.
int spell_dictionary( int, string|list )
Edit distance.
int spell_distance( string a, string b )
Spell the specified word or line.
int spell_string( string word, [int length], [int tokenize = 0], [int suggest = FALSE] )
Suggest spelling of the the specified word.
list spell_suggest( string word, [int length] )
Splice a list, removing and/or adding elements.
int splice( list lst, int offset = 0, [int length], [declare value] )
Split a string into tokens.
list split( string expr, string|integer delims, [int numeric = FALSE], [int noquoting = FALSE], [int empties = FALSE], [int limit = NULL] )
Argument split.
list split_arguments( string arguments )
Searches for a given file in a specified path.
int splithpath( string path, [string &dir], [string &name], [string &ext], [string &drive] )
Formatted printing to a string.
int sprintf( string & buffer, string format, ... )
Square root function.
float sqrt( float val )
Seed the random number generator.
int srand( [int seed = time()], [int depth] )
Read formatted data from string.
int sscanf( string str, string format, ... )
Obtain file information.
int stat( [string path], [int size], [int mtime], [int ctime], [int atime], [int mode], [int uid], [string uid2name], [int gid], [string gid2name], [int nlink], [int inode] )
Define a function or module scope.
static var1, var2, ..;
String case insensitive compare.
int strcasecmp( string s1, string s2, [int length] )
Locate first occurrence of a case insensitive.
sub-string. int strcasestr( string haystack, string needle )
String compare.
int strcmp( string s1, string s2, [ int length] )
String error.
string strerror( [int errnum = errno], [string &manifest], [int multi = FALSE] )
Filename comparison.
int strfilecmp( string file1, string file2, [int length] )
Format time and date.
string strftime( [string format = NULL], [int time = NULL] )
Declare a string symbol.
string sym1, sym2 ...;
Count occurrences of characters in a string.
int string_count( string haystack, int needle|string needles )
String length.
int strlen( string|list arg, [int step = 1] )
String length limited to an explicit maximum.
int strnlen( string|list arg, int maxlen, [int step = 1] )
Search a string for any of a set of characters.
int strpbrk( string str, string characters )
Pop the leading character(s).
string strpop( string str, [int length = 1] )
Locate last occurrence of a sub-string.
int strrstr( string haystack, string needle )
Return string describing signal.
int strsignal( int signo, [string &manifest], [int multi = FALSE] )
Locate first occurrence of a sub-string.
int strstr( string haystack, string needle )
String to double.
int strtod( string str, [int &endofoffset] )
String to float.
int strtof( string str, [int &endofoffset] )
Convert a string into its numeric value.
int strtol( string str, [int &endoffset], [int base] )
Version string compare.
int strverscmp( string s1, string s2 )
Extract a sub-string.
string substr( string str, [int offset], [int length] )
Suspend current process.
void suspend()
Swaps the mark with the current position.
int swap_anchor()
Switch statement.
switch( expr ) statement
Create a symbolic link.
int symlink( string path1, string path2 )
Build a syntax hiliting engine.
void syntax_build( [int timestamp], [string cache], [int|string syntable] )
Column syntax coloriser.
int syntax_column_ruler( list ruler, [string attribute], [int|string syntable] )
Define a syntax hilite rule.
void syntax_rule( string pattern, string attribute, [int|string syntable] )
Define a syntax token.
void syntax_token( int type, [<type1> param1], [<type2> param2], [int|string syntable] )
Set buffer tab stops.
int tabs( [string tabs | list tabs | int tab, ...] )
Tag database close.
int tagdb_close( int handle )
Tag database open.
int tagdb_open( string file, [int options], [int background] )
Tag database search.
int tagdb_search( int handle, string word, [int flags] )
Tangent function.
float tan( float val )
Hyperbolic tangent function.
float tanh( float val )
Throw an exception.
throw expr;
Get the current system time.
int time( [int &hour], [int &min], [int &sec], [int &msec] )
Tokenize a string into token elements.
list tokenize( string expr, string delims, int flags, [string whitespace = "\t\n\r"] )
Move cursor to start of current buffer.
int top_of_buffer()
Goto top of the current window.
int top_of_window()
Buffer to buffer transfer.
int transfer( int bufnum, int sline, [int scolumn], int eline, [int ecolumn] )
Buffer search and replace.
int translate( string pattern, string replacement, [int global], [int re], [int case], [int block], [int forward] )
Convert window coordinates.
int translate_pos( int x, int y, [int &winnum], [int &line], [int &col] )
Chomp characters from a string.
string trim( string str, [string chars = " \\t\\r\\n"] )
Try statement.
try statement; catch statement; finally statement;
Determine the symbol type.
string typeof( declare & symbol )
Set and get the file mode creation mask.
int umask( int cmask = NULL )
Retrieve system information.
int uname( [string &sysname], [string &nodename], [string &version], [string &release], [string &machine] )
Undo previous edit operations.
int undo( [int move], [int pastwrite = -1], [int redo = FALSE] )
Unlink a file.
int unlink( string path )
Remove a registered macro.
int unregister_macro( int type, string macro, [int local = FALSE] )
Shift the first list element.
declare unshift( list lst, declare value )
Move position up one line.
int up( [int lines = 1] )
Convert string or character to uppercase.
string|int upper( string str|int character )
Associate a keyboard with a buffer.
int use_local_keyboard( int kbdid )
Configure use of hard/soft tabs.
int use_tab_char( [int|string yesno], [int global = FALSE] )
Version information.
int version( [int major | string machtype], [int min], [int edit], [int release], [string machtype], [string compile], [int cmversion], [string features], [string build] )
Mount a virtual file-system.
int vfs_mount( string mountpoint, int flags = 0, string vfsname, [string arguments] )
Unmount a virtual file-system.
int vfs_unmount( string mountpoint, int flags = 0 )
View the content of underlying screen.
int view_screen()
Wait for attached process to terminate.
int wait( [int &status] )
Wait for process output.
int wait_for( [int timeout], list|string pattern, [int flags = 0] )
Watch a symbol.
void watch( string symbol )
while statement.
while ( [condition] ) statements;
Retrieve a widget attribute.
declare widget_get( [int dialog], [int name|string name], [int attr = DLGA_VALUE], [int index = 0] )
Set a widget attribute.
declare widget_set( [int dialog], [int name|string name], declare value, [int attr = DLGA_VALUE], [int index = 0] )
Set the window attribute.
int window_color( [int color|string color], [int winnum] )
Write selected region.
int write_block( [string filename], [int append = FALSE], [int keep = FALSE], [int pause = TRUE] )
Write to buffer content.
int write_buffer( [string filename], [int flags], [string encoding] )
Bitwise OR operator.
expr1 | expr2
Bitwise OR assignment operator.
var |= expr1
Logical OR operator.
expr1 || expr2
Bitwise complement.
~expr
BRIEF packages default.
extern const string BPACKAGES;
Operating system identifier.
extern const string CRISP_OPSYS;
Backup path.
extern const string GRBACKUP;
Dictionary locales.
extern const string GRDICTIONARIES;
Dictionary search path.
extern const string GRDICTIONARY;
Default empty file name.
extern const string GRFILE;
Default command line arguments.
extern const string GRFLAGS;
Help search path.
extern const string GRHELP;
GRIEF initialisation name.
extern const string GRINIT_FILE;
Keyboard library search path.
extern const string GRKBDPATH;
GRIEF Nesting level.
extern const int GRLEVEL;
GRIEF diagnostics log file name.
extern const string GRLOG_FILE;
Macro object search path.
extern const string GRPATH;
Profile directory override.
extern const string GRPROFILE;
GRIEF application path.
extern const string GRPROGNAME;
GRIEF resource file path.
extern const string GRRC;
GRIEF initialisation name.
extern const string GRRC_FILE;
GRIEF restore file name.
extern const string GRRESTORE_FILE;
GRIEF state database name.
extern const string GRSTATE_DB;
GRIEF state file name.
extern const string GRSTATE_FILE;
Source template search path.
extern const string GRTEMPLATE;
Terminal override.
extern const string GRTERM;
Terminal capability database.
extern const string GRTERMCAP;
Temporary dictionary.
extern const string GRTMP;
GRIEF major version.
extern const int GRVERSIONMAJOR;
GRIEF minor version.
extern const int GRVERSIONMINOR;
Backup versions.
extern const int GRVERSIONS;