User Tools

Site Tools


Sidebar

Overview

Installation

MYSTIC -CFG

Visual Customization

Mystic Utilities (MUTIL)

Scripting Custom Modules

Quick Reference

What's New

config_text_editor

Text Editor

Mystic has its own inbuilt text editor that is super useful for viewing and editing text files. Like all of Mystic's functions this is designed to work over any terminal connection and is a work in progress.

There are some limitations. Raw tabs will be converted to 8 spaces, character 12 will be escaped and represented as ^L while character 27 will be escaped as ^[. Any occurrence of these will be converted back upon saving, with the exception of raw tabs which will remain as spaces.

There is also a command line option to start the text editor.

mystic: -text <filename> 

If <filename> is supplied it will open that file otherwise it will create an empty buffer. e.g.

mystic -text mytext.txt

Below is a screenshot of the text editor in action.

In this example the editor menu has been invoked by pressing the ESC key.

                   File: c:\mystic\docs\display_codes.txt
 -------------------------------------------------------------------------
 A.1  USING Mystic DISPLAY CODES
 -------------------------------------------------------------------------

    Mystic Display Codes are found throughout the BBS in various prompts
    and display files.  The purpose of these codes is to replace the code
    with a corresponding va█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄mple, if you wanted
    to display the user's n█ C Continue              █when parsed in a
    prompt or file would be█ ? Help                  █logged in user name.
                           █ \ Jump to first line    █
    The format for all code█ / Jump to last line     █pe character (|)
    followed by two charact█ Q Quit                  █sent what data
    Mystic will replace the█ S Save                  █e CASE SENSITIVE
    although currently only█ A Save As...            █ng used.
                           █ O Open...               █
    An example of an MCI co▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█essed by Mystic
    would be:

       Welcome the BBS, |UH.

    In the above example, |UH is the MCI code for the user's handle.  If
       
 ESC/Menu     ^J Jump   ^W Where   ^Y Delete   ^K Cut   ^U Uncut         22/409
 

Note the other commands in the footer that are also available within the editor:

  • CTRL+J - Jump to Line number
  • CTRL+W - Where function which allows full Boolean line searching using parenthesis and &|! operators
  • CTRL+A - Again function which repeats the last Where function again
  • CTRL+Y - Delete Line
  • CTRL+K - Cut the current line of text
  • CTRL+U - Uncut/paste the cut buffer
config_text_editor.txt · Last modified: 2019/03/22 03:45 by avon