Cᴛᴇ

The Standard Text Editor for the Unix Terminal

Cᴛᴇ is a text editor for the Unix console, like nano and vi, but is better as there is no learning curve. It behaves like a modern application with mouse, menus and dialog boxes. This makes it like Linux Gedit, Kate, a web browser, Microsoft Notepad or Word. For example: To find some text one presses Ctrl-F and a dialog box appears.

screen shot
cte features:

Contents

1. Download

cte is distributed as a single binary with no dependencies or the same in a .rpm or .deb package for 64 bit Intel Linux.

1.1 For .deb based Linuxes such as Ubuntu and Debian

1.2 For .rpm based Linuxes such as Red Hat, SUSE, Fedora and openSUSE

1.3 Other Linuxes

1.4 Lɢᴘʟ Obligations

2. Register

If you use cte at work you must register, get your company to pay for it. US $30. If you find cte useful at home please also register to support it's development. Billing address is used to verify you.

3. Usage

cte is very easy to use as it behaves like most popular applications. Some termainal emulators have incomplete support for complex key combinations, see below.

Under any termnial emulator cte functions fine, the mouse works, Alt- keys, used to access the menu and dialog box fields; and some of the more obscure key combinations such as Ctrl-Shift-End (select all text to the end of the document) are not always sent. The Escape key is slow in the terminal, so use Ctrl-Q to quit out of dialogs and menus. cte has the innovation of Ctrl-Up and Ctrl-Down to skipping five lines up or down respectively.

On Windows SecureCRT has the best support, followed by PuTTY. On Linux GNOME Terminal supports almost everything. The following are some notes to get the most out of cte on your terminal emulator:

3.1. Windows

3.1.1. MobaXterm
3.1.2. SecureCRT
3.1.3. PuTTY

3.2. Linux

3.2.1. GNOME Terminal
3.2.2. Konsole
3.2.3. xterm

3.3. macOS

3.3.1. Terminal

4. Version Control

As well as preserving the previous version of files as filename~, when started with the -V switch, or enabled through the menu, or editing a file already tracked by RCS cte will save using the local version control system RCS. For simplicity cte does not lock files, make the files read-only, nor store comments with each check-in. RCS stores it's revision histories in RCS/ subdirectory, beside the file being edited. Here are some tips for using this version control system:

4.1. Retieving a list of file revisions:

4.2. Retieving an old revision of a file:

Saving again in cte will save on the head, not create a new branch.

4.3. Comparing the file with an old revision:

4.4. Comparing two old revisions:

5. Configuration Files

cte is built with the standard CUA/Windows/GNOME/KDE keys and supports VT-100, VT-220, xterm and Linux character sequences as transmitted by MobaXterm, SecureCRT, PuTTY, GNOME Terminal, Konsole and xterm so configuration should not be required.

Built on ncurses cte will function with any terminal emulation mode, as indicated by $TERM, e.g. vt100, and described by terminfo files (see man ncurses) for details.

On startup cte will read the configuration files /etc/cterc and then ~/.cterc.

These files can define new actions for keys, e.g.

and define key character sequences, e.g. All action and key names are case insensitive.

5.1. The action command

The action command is used to define what keys do. e.g.

The keys parameter, e.g. the "Shift-Up" in

may be a character sequence or a previously defined key.

5.2. The key command

The key command is used to give character sequences sent by the terminal emulator more meaningful names, so the configuration is easier to read and so the menus show meaningul names. e.g.

The key name, e.g. Ctrl-Right can then be referred to in a following action command.

5.2.1. Control sequences

A control sequence is a space separated list of ASCII characters, ASCII names, numbers, Ctrl-, Alt-, XAlt- codes, or terminfo character sequence names. The easiest method to collect these is to press the key in cte, if the sequence is unrecognised a message will be shown at the top, listing the exact character sequence received, e.g. If you press Ctrl-Home and see "unknown sequence: Esc [ 1 ; 6 H", you should add:

to your ~/.cterc.

Single characters may be referred to by literal character, e.g.

by number, e.g. by name: The remaining control characters may be specified as: Ctrl-@, Ctrl-A through Ctrl-Z, Ctrl-[, Ctrl-\, Ctrl-], Ctrl-^, Ctrl-_. Use the ASCII names for Ctrl-H (Backspace), Ctrl-I (Tab), Ctrl-M (Enter), Ctrl-[ (Esc), the letter must be upper-case:

Alt- sequences of any ASCII character, i.e. between Alt-! and Alt-~, and named ASCII chars, these are encoded as a Esc followed by the ASCII character:

terminfo key names, values are determined by the value of $TERM.

5.3. Default key assignments

The following table lists the available actions and their default key combination you must press, e.g. Shift-Ctrl-Right. This is not the same as the character sequences for the keys, e.g. Shift-Ctrl-Right from xterm is Esc [ 1 ; 6 C. Availability depends on your terminal emulator. Many these are shown in the menu entries when cte is running.

6. Troubleshooting

$LANG  should end in UTF-8, e.g. en_US.UTF-8. Your terminal should be configured to use UTF-8.

$TERM should identify your terminal, usually “xterm” or “xterm-256color”

cte has two major modes of terminal interaction, truecolor or not [ncurses]. If your terminal does not work try the other. cte --terminal-test is a good test of terminal support.

cte --color-test runs a test to see if your terminal supports truecolor, this is independent of the $TERM; if it works set $COLORTERM to “truecolor” to use truecolor mode, i.e: export COLORTERM=truecolor.

If you are seeing e.g: unknown sequence Esc [ o 6, you can configure cte to recognise these, see Configuration Files.

7. Name

Cᴛᴇ is an initialism that stands for Cᴜᴀ Tᴜɪ Editor, Cᴜᴀ and Tᴜɪ themselves expand so Cᴛᴇ means: Common User Access Text User Interface Editor.

8. Contact Us at e10labs

1 x x = x what is x x 1?