Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VAXTPU SET(SELF_INSERT) — VMS 5.2

 SET(SELF_INSERT)

 Determines whether printable characters are inserted when entered if no
 procedures are bound to them.

 Syntax

    SET (SELF_INSERT, string, {OFF | ON})

 Parameters

    string     Specifies the key-map list for which self-inserting is to be
               turned off or on.

    OFF        Disables self-inserting, causing the UNDEFINE_KEY procedure
               to be called when printable characters are entered.

    ON         Enables self-inserting, when the specified key-map list is
               active.  This is the default setting.

 Example

    The following procedure turns off and on self-inserting for the key-map
    list bound to the current buffer:

    PROCEDURE toggle_self_insert
       LOCAL the_key_map_list;
       the_key_map_list := GET_INFO (CURRENT_BUFFER, "key_map_list");
       IF GET_INFO (the_key_map_list, "self_insert")
       THEN
          SET (SELF_INSERT, the_key_map_list, OFF);
       ELSE
          SET (SELF_INSERT, the_key_map_list, ON);
       ENDIF;
    ENDPROCEDURE;

    Related topics

       UNDEFINED_KEY   SET(UNDEFINED_KEY)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026