Home An Overview The Products The Changes Donate
Cwte Reflection Cwte Logo Cwte Donate Here
  
A Text Editor - - - Modeled Off Editor Within ISPF / SPF / PDF

Here Is A Sample Window Showing Text Editing
Below is a busy nonsense example showing the contents of a text file view. It shows a complex primary command, some excluded lines, a column number line, a tabs position line, line labels, global line commands, and a message saying a command is pending.

Text Editing View


Here Is A Sample Window Showing A FileList View
Below is an example of a 'FList' view. It shows a list of file and directory entries with the files being listed at the top and directories/folders listed at the bottom (the order type is an option that can be set in the profile file). There are columns of data showing basic attributes of: size, date, and entry names. The column on the left is where line commands can be entered, such as: edit, view, delete lines, move lines, exclude lines, etc. As an example, 'e' or 'v' would edit or view a file/directory. And primary commands such as 'x', 'f' or 'sort' can exclude, find text, or sort lines of entries. The Windows and Unix views both look pretty much the same, except that the Unix version can show symbolic links like that shown in the 'wte0Mwn5.rc' file name. As a note, in this example the author uses the character '!' as the primary command group separator character (an option that can be set in the profile file).

View Text Editing


List Of Commands
* Primary commands similar to SPF are: CANCEL, CHANGE, RCHANGE, COPY, DELETE, EDIT, END, EXCLUDE, FIND, RFIND, LOCATE, RESET, SAVE, SORT
* Primary commands unique to CWTE are: EXEAA, BEEP, BLOCK, BROWSE, CRSR, CRSR2CMD, CRSR2TXT, DOWN, DSC, EXIT, FLIST, GRESET, HELP, HEXVAL, LEFT, LFN, LINENUM, MSG, #~, NAME, PWD, QUIT, RAP, RCWRAP, RECALLBKWD, RECALLFWD, REFRESH, RELOAD, RIGHT, RING, RINGL, RINGR, SCROLL, SD_PROF, SELECT, SETCOLS, SETP, SETPROF, SETROWS, SG_PROF, TAB, UP, V, VERSION
* Line commands similar to SPF are: A, B, C, CC, COLS, D, DD, F, I, L, LC, LCC, M, MD, MM, O, OO, R, RR, S, TABS, TF, TS, UC, UCC, X, XX
* Shift commands similar to SPF. However, both types act like a data shift of the whole line and no data is ever lost: (, ((, ), )), <, <<, >, >>
* Line commands unique to CWTE are: DDEL, DEL, E, EE, GA, GC, GCC, GM, GMM, J, LEX, LR, SAA, V, VV, XD, XU

Global Commands
Besides the copy, paste, and copy from file stuff, there are global line commands that allow you to copy or move lines (GC/GM) or a block of lines (GCC/GMM) from one file view to another (GA). Further, these commands can be stacked so you are not constantly switching back and forth between views.

Handling Anticipations
* A lot of detail has been put into what happens to the cursor when lines are deleted, copied, etc, making it easier to predict where to put the next or string of line commands.
* There is a smart cursor placement scheme where pressing ENTER or TAB TO NEW LINE will place the cursor where you will most likely need it to be on the next line.
* When entering text in the line command field, insert is always disabled and the commands are checked to be valid before the cursor is allowed to leave the field.
* The rules for some line commands work a little differently as compared to SPF, where the ordering and grouping rules are somewhat flexible (SPF: C,A,C,A,C,A verses CWTE: C,C,C,A,A,A).
* A press of a key can place the cursor in the primary command field and another key to place the cursor back to where it last was in the text field.
* There are primary commands that will do a variety of cursor actions that are primarily used within FKey assignments.
* Scrolling was designed to make it easier for the eye to track the movement of data.
* When refreshing a File-List view, all the filespec selection information that was used to create the original File-List view will again be used during the refresh or reload.

Word Wrapping
Word wrapping is either continuously ON (like the SPF TE feature) or continuously OFF and can be controlled via a primary command, but generally it is set by a configuration entry in the directory profile files. This makes it easy to utilize the editor for writing letters and documents in one directory, but in another directory can be set for things like programming and columnized data. Even the paste operation follows the word wrap setting. Word wrapping happens when text entry goes beyond the width of the window. And the window width can be set via the profile file as well.

Profile Files
To further configure CWTE, there are three possible profile files that will be searched for. Where any combination may or may not exist. First, there is only one optional GLOBAL profile file for anywhere use of the editor that generally defines the overall default usage of the editor and is the first to be processed. Then, depending on where CWTE starts up, the next optional profile file that would be processed is that found in the parent directory (the intent of this file is that it would be shared by one or more common directories for a class of work). The last optional profile file would be located in the default directory where CWTE started up at. Each of these allows for a more specific use of the editor in a given directory. Directory profile files can be located anywhere, but only those as described at start up time will be used. These profile files and their configuration assignments will provide common portability across the supported platforms. Note however, that the profile files are not needed if you are willing to use the built-in defaults, but most likely you will have your own preferences.

Usage & Special Features
CWTE has been designed to operate across several platforms and to work very much the same on each of them. Features were even added to deal with keys on laptops: the lack of, the multi use of, and even configuring keys for the IBM 3270 feature. All FKey can be [re]assigned. As time went on, still other features were added as special little wishes came into mind. Through all of this, the features between the Linux/Unix and Windows versions were implemented to be as close in function as possible. Such as using the line and primary commands to launch applications, web pages, etc.

Quick Snapshot Of Features And Limitations
- Many editor features are similar to the editor part of SPF
- Very Similar Look And Feel Between MS-Windows and X−Window
- Driven Primarily By Text Entered Commands, Both Primary & Line
- Copy/Move Before/After
- Text Split/Flowing
- Locate To Line Or Label
- No Visible Line Numbering
- Insert Is Always Off In The Line Command Field
- Operations For Column-Column, Exclude-Non-Exclude, Label-Label
- Find/Exclude/Replace Word AsIs
- Sort Major,Minor,Minor,.... Case Sensitive/Insensitive
- Exclude/Show Based On Text Line Indentations
- Delete Exclude/Non-exclude Lines
- Mouse & Keyboard Cut/Paste Operations
- Cut/Paste Exchange With Other Applications
- Rectangular-Block & Line-To-Line Cut/Paste Operations
- Word Wrapping At Predefined Text Column Offset (Window Width)
- Text Flowing To Any Column
- Multiple File Editing (Ring Operation)
- File List Selection Via List Views
- Ring Search, Branch, Move, And Linkage Between Views
- Unix 'Symbolic Link' Names Included In The File List Views
- Cursor And Dynamic Continuous Scrolling
- Global And Local (Directory) Customize Configuration
- Each FKey Can Contain Unlimited Mix Of Primary And Line Commands
- Edit Session Can Be Launched Via Command Line Or Filelist Operations
- Can Read Files From Across Platform Styles (LF/CRLF), But Only Saves
   In The File Format That The Current System Was Designed For
- Designed To Allow Browsing Of Binary Files, But Not To Edit/Save Them
- The Help Manual: Browsed As A Text File
- Has *Limited* Undo Capability Via Line Recall Commands
- Has *Limited* Customizing Of Colors
- Has *Limited* Font Selection (Windows/DOS)
- Has No Dialog/API Support As Found On The Mainframe Utilities
Icons
In Windows, CWTE has the following Icons that can be used:
  
              0)  Red Cwte Icon          1)  Blue Cwte Icon          2)  Green Cwte Icon          3)  Purple Cwte Icon
Caveats
CWTE is only a text editor. It only uses the basic ASCII text and does not support Unicode or EBCDIC characters. Is only implemented in the English language. The primary command field is located only at the top part of the window. There is no line numbering, but the area is still used for line commands.

Suggesting Other SPF-Like Editors
If after looking over CWTE, having given CWTE a try, and you still feel this SPF-Like Editor is not the answer for you, you might want to then go over to Dave's SPF Editor Page to check out the variety of other SPF-Like Editors that Dave has been tracking.
  
Home An Overview The Products The Changes Donate
Web Page Updated October 20, 2019