Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
T
 tabs
 tagdb_close
 tagdb_open
 tagdb_search
 tan
 tanh
 Text Editing
 Third Party Packages
 throw
 time
 tokenize
 Tokens
 top_of_buffer
 top_of_window
 transfer
 translate
 translate_pos
 TRE
 trim
 try
 Type Specifiers
 typeof
 Types
 Types of Macros
U
 ucpp
 umask
 uname
 Unary Arithmetic Operators
 undo
 Undo and Redo
 unlink
 unregister_macro
 unshift
 up
 upper
 use_local_keyboard
 use_tab_char
V
 Variable Declaration Primitives
 version
 vfs_mount
 vfs_unmount
 view_screen
W
 wait
 wait_for
 watch
 while
 while statement
 widget_get
 widget_set
 Window Manipulation
 Window Primitives
 window_color
 Windows
 write_block
 write_buffer
int tabs([string tabs | list tabs | int tab, ...])
Set buffer tab stops.
int tagdb_close(int handle)
Tag database close.
int tagdb_open(  string file,
 [int options],
 [int background])
Tag database open.
int tagdb_search(  int handle,
string word,
 [int flags])
Tag database search.
float tan(float val)
Tangent function.
float tanh(float val)
Hyperbolic tangent function.
Inserting text is simple, just start typing; see self_insert.
GRIEF development would not be possible without the work of others.
throw expr;
Throw an exception.
int time([int &hour],
[int &min],
[int &sec],
[int &msec])
Get the current system time.
list tokenize(string expr,
string delims,
int flags,
 [string whitespace = "\t\n\r"])
Tokenize a string into token elements.
Tokens form the vocabulary of the Grief language.
int top_of_buffer()
Move cursor to start of current buffer.
int top_of_window()
Goto top of the current window.
int transfer(int bufnum,
 int sline,
 [int scolumn],
int eline,
 [int ecolumn])
Buffer to buffer transfer.
int translate(string pattern,
string replacement,
  [int global],
 [int re],
 [int case],
  [int block],
 [int forward])
Buffer search and replace.
int translate_pos(int x,
int y,
  [int &winnum],
 [int &line],
 [int &col])
Convert window coordinates.
TRE, The free and portable approximate regex matching library.
string trim(string str,
 [string chars = " \\t\\r\\n"])
Chomp characters from a string.
try statement; catch statement; finally statement;
Try statement.
string typeof(declare &symbol)
Determine the symbol type.
Each object, reference, and function in Grief is associated with a type, which is defined at the point of declaration and cannot change.
A function can be called from the macro language.
GRIEF utilises ucpp as its preprocessor, integrated into the Macro Compiler as an external stand-alone program as the initial stage of macro compilation.
int umask(int cmask =  NULL)
Set and get the file mode creation mask.
int uname([string &sysname],
[string &nodename],
 [string &version],
[string &release],
 [string &machine])
Retrieve system information.
Unary Arithmetic operations are executed by the following operators.
int undo([int move],
[int pastwrite = -1],
[int redo = FALSE])
Undo previous edit operations.
The undo command can be used to undo any commands in the current buffer.
int unlink(string path)
Unlink a file.
int unregister_macro(int type,
 string macro,
 [int local = FALSE])
Remove a registered macro.
declare unshift(list lst,
declare value)
Shift the first list element.
int up([int lines = 1])
Move position up one line.
string|int upper(string str|int character)
Convert string or character to uppercase.
int use_local_keyboard(int kbdid)
Associate a keyboard with a buffer.
int use_tab_char([int|string yesno],
[int global = FALSE])
Configure use of hard/soft tabs.
int version([int major | string machtype],
 [int min],
[int edit],
[int release],
[string machtype],
 [string compile],
[int cmversion],
 [string features],
[string build])
Version information.
int vfs_mount(  string mountpoint,  
int flags =  0,
string vfsname,  
  [string arguments]  )
Mount a virtual file-system.
int vfs_unmount(string mountpoint,  
int flags =  0)
Unmount a virtual file-system.
int view_screen()
View the content of underlying screen.
int wait([int &status])
Wait for attached process to terminate.
int wait_for( [int timeout],
 list|string pattern,
 [int flags = 0])
Wait for process output.
void watch(string symbol)
Watch a symbol.
while ([condition]) statements;
while statement.
while iteration clause.
declare widget_get([int dialog],
 [int name|string name],
 [int attr = DLGA_VALUE],
 [int index = 0])
Retrieve a widget attribute.
declare widget_set( [int dialog],
  [int name|string name],
declare value,
  [int attr = DLGA_VALUE],
 [int index = 0])
Set a widget attribute.
GRIEF windows can be tiled and used to look at more than one file at the same time, or different parts of the same file at the same time.
int window_color([int color|string color],
[int winnum])
Set the window attribute.
Windows are used to create views into buffers.
int write_block([string filename],
 [int append = FALSE],
[int keep = FALSE],
 [int pause = TRUE])
Write selected region.
int write_buffer(  [string filename],
[int flags],
[string encoding])
Write to buffer content.