Macro Language Reference > Macros > Text (Frame Level) > ttchar
  
ttchar
Description
Used to move the cursor around the current stream, the unit of movement being a single character.
* 
Any attribute change or end of paragraph sequence is also treated as a single character.
 
Example 296. Move the cursor forward by one character
ttchar 1
 
Example 297. Move the cursor forward by 10 characters
To move the cursor forward by a specified number of characters, repeat the macro by preceding it with the required number. The example below will move the cursor forward by 10 characters:
10 ttchar 1
Syntax
ttchar code:n?
ttchar
[no parameter]
Select the character to the right of the cursor.
code
–1
Move the cursor backward by one character.
* 
If there is text selected the selection is reduced by one character.
0
Select the character to the right of the cursor.
1
Move the cursor forward by one character.
* 
If there is text selected the selection is extended by one character.
Related Links