te, mi editor de textos pequeño, humilde, portable y útil.

Aquí solo proyectos que incluyan el código fuente

Moderador: Fundadores

Reglas del Foro
Si no se incluyen los fuentes, se debe usar el foro de proyectos de software generales
Avatar de Usuario
FloppySoftware
Seguidor infernal
Seguidor infernal
Mensajes: 27
Registrado: 11 Abr 2015, 22:07
Ubicación: Valencia
Contactar:

te, mi editor de textos pequeño, humilde, portable y útil.

Mensaje por FloppySoftware »

Hola!

Acabo de subir a mi página web, 'te', mi editor de textos pequeño, humilde, portable y útil.

Ha sido portado a, entre otros, el Amstrad CPC, PCW, Spectrum +3 y... Windows!

Imagen

+----+
| te +-------------+
+----| Text Editor |
+-------------+

v1.00 / 07 May 2015

(c) 2015 M. Garcia / FloppySoftware

http://www.floppysoftware.es cpm-connections.blogspot.com
floppysoftware -o- gmail.com


Introduction
------------

The te text editor is small, humble, and useful.

It's screen oriented, and can be easily adapted to a lot of computers.


Command line
------------

It's simple:

te [filename]

Examples:

te - To start an empty document
te notes.txt - To edit the document 'notes.txt'.


The screen layout
-----------------

On the first screen line, you will see - ie:

te: NOTES.TXT - The file name of the document your are editing.

And something like:

Lin:0015/0042/0512 Col:32/90 Len:36

The numbers following 'Lin' are:

0015 - The line number you are editing right now.
0042 - The current total number of lines.
0512 - The maximum number of lines.

The numbers following 'Col' are:

32 - The column number on which you are.
90 - The number of screen columns.

And, finally, the number following 'Len' is:

36 - The length of the current line.

On the last screen line, you will see program messages.


The options menu
----------------

You can enter to the menu, by pressing the ESCAPE key, as shown
in the messages line:

Press [EXIT] to show the menu.

Note that the name of your ESCAPE key may change, depending of
the program adaptation.

The options are:

New - To start a new document
Open - To open a document
Save - To save the current document
save As - To save the current document under another filename.
Help - To show the help screen.
aBout te - To show some te information.
eXit te - To quit the program.

You can select an option by pressing the character in uppercase.

To leave the menu, you must press ESCAPE.

If you start a new document, the 'Save' option will redirect to you to
the 'save As' option.

The help screen will show the keyboard configuration, that depends
of the program adaptation.


File backup
-----------

Each time a file is saved, te does a backup of the previous file
contents if it exists.

It is renamed as 'te.bkp'.


Adaptation
----------

The program adaptation is done by editing a small MESCC source code file.

In this file, you must specify the control characters that your
keyboard send, the help contents, and complete a few C functions to
clear the screen, etc.

As there are some adaptations already done, it's possible that your
machine is already included between them.

If not, don't worry, you can start from a similar adaptation.

See the source code files for more information.

Current adaptations are:

- Amstrad PCW and CP/M Plus (31x90 VT52 like terminal).
- Amstrad CPC and CP/M Plus (24x80 VT52 like terminal).
- Spectrum +3 and CP/M Plus (23x51 VT52 like terminal).
- K. Murakami's CP/M emulator (25x80 VT100/Ansi).
- Takeda Toshiya's CP/M emulator (25x80 VT100/Ansi).
- PC and Windows 32 bit (25x80).

The port to Windows 32 bit has been succesfully done, by converting the
MESCC code to Ansi C and recompiling with the Pelles C compiler, using
its 'conio.h' library.


License
-------

This program is freeware, and it's licensed under the GPL license.



Última edición por FloppySoftware el 09 Sep 2015, 18:11, editado 1 vez en total.
Avatar de Usuario
skywalky
Demonio tercer orden
Demonio tercer orden
Mensajes: 519
Registrado: 05 Mar 2014, 16:22
Ubicación: Valencia
Has thanked: 4 times
Been thanked: 2 times

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por skywalky »

No paras de programar :)) . Y que curioso lo de portarlo a Windows.
Avatar de Usuario
DistWave
Aspirante a demonio
Aspirante a demonio
Mensajes: 333
Registrado: 21 Mar 2015, 16:05
Ubicación: Zaragoza
Has thanked: 1 time
Been thanked: 16 times

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por DistWave »

Sí, sería más útil si funcionase en DOS para utilizarlo en un XT :D
Avatar de Usuario
tactica
Demonio segundo orden
Demonio segundo orden
Mensajes: 1857
Registrado: 20 Ene 2015, 20:39
Ubicación: La Coruña
Has thanked: 8 times
Been thanked: 15 times
Contactar:

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por tactica »

Secundo la moción :)
Avatar de Usuario
FloppySoftware
Seguidor infernal
Seguidor infernal
Mensajes: 27
Registrado: 11 Abr 2015, 22:07
Ubicación: Valencia
Contactar:

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por FloppySoftware »

DistWave escribió:Sí, sería más útil si funcionase en DOS para utilizarlo en un XT :D
A que lo hago... :))
Avatar de Usuario
DistWave
Aspirante a demonio
Aspirante a demonio
Mensajes: 333
Registrado: 21 Mar 2015, 16:05
Ubicación: Zaragoza
Has thanked: 1 time
Been thanked: 16 times

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por DistWave »

FloppySoftware escribió:
DistWave escribió:Sí, sería más útil si funcionase en DOS para utilizarlo en un XT :D
A que lo hago... :))
No hay huevos!!! :mrgreen:
Avatar de Usuario
zx81
Aspirante a demonio
Aspirante a demonio
Mensajes: 499
Registrado: 19 Oct 2013, 16:27
Ubicación: Valencia
Has thanked: 10 times
Been thanked: 2 times
Contactar:

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por zx81 »

DistWave escribió:Sí, sería más útil si funcionase en DOS para utilizarlo en un XT :D
Estaría bien que lo hiciera, pero conste que existió un editor llamado 'T', procedente de IBM y hermano pequeño del 'E', antecesor del Personal Editor que después salió en OS/2 por ejemplo.

El caso es que ese 'T', es una pequeña maravilla que ocupa ná y menos y hace hasta huevos fritos con chorizo. Es increíble lo que hace con solo 7 Kb de ejecutable, si la memoria no me falla.

Lo que no es óbice para que FloppySoftware se curre el suyo para DOS... ;)
Today's robots are very primitive, capable of understanding only a few simple instructions such as 'go left', 'go right' and 'build car'.
John Sladek

Emulador de Spectrum JSpeccy.
Emulador de Spectrum Bare-metal para las Raspberry PI ZXBaremulator
Avatar de Usuario
FloppySoftware
Seguidor infernal
Seguidor infernal
Mensajes: 27
Registrado: 11 Abr 2015, 22:07
Ubicación: Valencia
Contactar:

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por FloppySoftware »

zx81 escribió:
DistWave escribió:Sí, sería más útil si funcionase en DOS para utilizarlo en un XT :D
Estaría bien que lo hiciera, pero conste que existió un editor llamado 'T', procedente de IBM y hermano pequeño del 'E', antecesor del Personal Editor que después salió en OS/2 por ejemplo.

El caso es que ese 'T', es una pequeña maravilla que ocupa ná y menos y hace hasta huevos fritos con chorizo. Es increíble lo que hace con solo 7 Kb de ejecutable, si la memoria no me falla.

Lo que no es óbice para que FloppySoftware se curre el suyo para DOS... ;)
Me vais a hacer desempolvar el Turbo C... :))

Por cierto, yo llegué a utilizar PE con DOS 3 en el trabajo, y me gustaba una barbaridad.
Avatar de Usuario
jsj
El infierno es su lugar
El infierno es su lugar
Mensajes: 193
Registrado: 18 Abr 2015, 22:36

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por jsj »

Por curiosidad lo he estado probando en Windows y tengo una duda: ¿es normal que el "cut" luego no pega el texto cortado?

Cuando hago un "cut" y luego "paste" no me pega el texto cortado. En su lugar pega la última línea que hubiese copiado con "copy".
Avatar de Usuario
FloppySoftware
Seguidor infernal
Seguidor infernal
Mensajes: 27
Registrado: 11 Abr 2015, 22:07
Ubicación: Valencia
Contactar:

Re: te, mi editor de textos pequeño, humilde, portable y úti

Mensaje por FloppySoftware »

jsj escribió:Por curiosidad lo he estado probando en Windows y tengo una duda: ¿es normal que el "cut" luego no pega el texto cortado?

Cuando hago un "cut" y luego "paste" no me pega el texto cortado. En su lugar pega la última línea que hubiese copiado con "copy".
Sí, realmente borra la línea, pero no la copia al "portapapeles". :)

Decidí hacerlo así, porque al fin y al cabo el cortar/pegar se puede hacer copiando/pegando/cortando, y se prestaba a confusión (al menos, a mí me confundía). :))

Por cierto, muchas gracias por probarlo!
Responder

Volver a “Proyectos de software abiertos”