[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.8.6 Selection, Cut and Paste, the Clipboard

2EF83 CMD_STO_DEBUT ( # → )
Sets begin marker, like RS+BEGIN, but takes position from stack.
2EF84 CMD_STO_FIN ( # → )
Sets end marker, like RS+END, but takes position from stack.
2EF85 RCL_CMD_DEB ( → # )
( → #0 )
Recalls the position of the BEGIN marker. If the selection has been cleared, returns ZERO.
2EF86 RCL_CMD_FIN ( → # )
( → #0 )
Recalls the position of the END marker. If the selection has been cleared, returns ZERO.
2F2DC ClearSelection ( → )
Unselects the selected text without changing the contents of the editor. Sets both begin and end marker to ZERO.
2EF93 VERIF_SELECTION ( → flag )
Returns TRUE when the END marker is not ZERO, indicating that the selection is active. Use this command as a check before doing anything with the selection.
2EF8A CMD_COPY ( → )
Copies selected string, like RS+COPY.
2EF88 CMD_CUT ( → )
Cuts string. Really is "delete", does not copy to kill buffer. So a "normal" CUT would be
:: CMD_COPY CMD_CUT ;
2EF89 CUT.EXT ( → $ )
ML routine used by CMD_CUT. Should not be used on its own since it does not move the cursor position.
2F2FA CMD_COPY.SBR ( → $ )
Puts the selection as a string on the stack. This command is font/style aware. It is recommended not to use it because it may get the wrong text style if the cursor is not re-positioned to the beginning of the selection first. If you don't use fonts,
:: RCL_CMD
RCL_CMD_DEB RCL_CMD_FIN
SUB$ ;
does something similar.
2EF94 PASTE.EXT ( $ → )
Pastes from stack with treatment of fonts and styles. Inserts the string on stack level 1 at the cursor position. It can insert normal text right in the middle of bold test etc. If you don't use styles or different fonts, CMD_PLUS is probably faster.
2F2E1 SELECT.LINE ( → )
Selects current line, position cursor at beginning of line. Selection does not include the NEWLINE char at the end of the line.
2F2E2 SELECT.LINEEND ( → )
Selects current line, position cursor at end of line. Selection does not include the NEWLINE char at the end of the line.
2A085 (Clipboard!) ( $ → )
Stores string to Clipboard.
2A095 (Clipboard@) ( → $ )
Recalls Clipboard contents to stack.
2A0A5 (Clipboard0) ( → )
Clears the Clipboard.
2A0B5 (Clipboard?) ( → flag )
Is there anything on the Clipboard?


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Carsten Dominik on May, 30 2005 using texi2html