Next: Functions Up: Xcoral interface Previous: Smac access

# Conventions

The general conventions between Smac and Xcoral are the following:

- The windows are numbered from 0 to 31. Each window receives a constant number. When you kill a window its number will be reused by a future window creation. See current_window() function (see §7.3.9 page ).
- The current window , is the window pointed at by the mouse, therefore the current edited window. All functions refer to the current window except those for selecting (see select_window() §7.3.9 page ) or killing a window (see kill_window() §7.3.9 page ).
- The first character in a window is numbered 0 (see current_position() §7.3.1 page , goto_char() §7.3.2 page and the_char() §7.3.3 page ). This number is incremented for each following character (including newline) up to the end of the buffer.
- The first line in a window is numbered 0 (see goto_line() §7.3.2 page and current_line() §7.3.1 page ).
- In most cases there is no window redisplay during Smac execution. Necessary redisplays are made when Smac execution ends and Xcoral recovers control, or when you call the redisplay function (see §7.3.8 page ).