cedit (windows , linux , freebsd , dos)

User projects written in or related to FreeBASIC.
Post Reply
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

cedit (windows , linux , freebsd , dos)

Post by VANYA »

Image

Simple console editor for windows , linux , freebsd , dos
Made highlighting for FB.
Unicode is supported for windows , linux , freebsd
Endless rollbacks Undo|Redo

https://sourceforge.net/projects/console-edit/
Last edited by VANYA on Dec 29, 2022 7:56, edited 1 time in total.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: cedit (windows , linux ,dos)

Post by D.J.Peters »

The code is really easy to read except the comments :-) how ever good job.

Joshy
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: cedit (windows , linux ,dos)

Post by VANYA »

Thanks for the kind words Joshy!
Ed Davis
Posts: 37
Joined: Jul 28, 2008 23:24

Re: cedit (windows , linux ,dos)

Post by Ed Davis »

Very cool!
Also works on Ubuntu under WSL. Note: I did have to install missing libtinfo5

Thanks for sharing!
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: cedit (windows , linux ,dos)

Post by VANYA »

Ed Davis , thanks for the feedback!
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: cedit (windows , linux , freebsd , dos)

Post by VANYA »

Update:

1) Now highlighting for FB is not enabled by default. If desired, it can be enabled in the settings file.
2) Now the editor works the same on FreeBSD 64-bit. Unfortunately, I was not able to install the 32-bit version of FreeBSD, after installing and restarting the system gives an error.
c-sanchez
Posts: 145
Joined: Dec 06, 2012 0:38

Re: cedit (windows , linux , freebsd , dos)

Post by c-sanchez »

For some reason it's nice to use hahaha

Please add an option to set the fbc path, I guess with something like this in the ini file would be fine
compiler86=path
compiler64=path

and some shortcuts to use fbc in cedit (compile/run/quick run)

an option to switch between x86 and x64 compiler?

some option (with its shortcut) to set whether to compile a gui or a console program (-s gui / -s console)?
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: cedit (windows , linux , freebsd , dos)

Post by VANYA »

c-sanchez wrote: Jan 04, 2023 19:05 For some reason it's nice to use hahaha

Please add an option to set the fbc path, I guess with something like this in the ini file would be fine
compiler86=path
compiler64=path

and some shortcuts to use fbc in cedit (compile/run/quick run)

an option to switch between x86 and x64 compiler?

some option (with its shortcut) to set whether to compile a gui or a console program (-s gui / -s console)?
I thought about it, but I'm not ready to take on such a task yet. To implement compilation, the editor must at least support multiple file uploads, but currently the editor only supports uploading one file at a time. You also need to think about the error output interface (especially in DOS, where not all errors can be obtained using PIPE). Maybe one day :wink:
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: cedit (windows , linux , freebsd , dos)

Post by VANYA »

Update:
Added checks for pointers when allocating memory
Improved UNICODE support:
---a) in linux|freebsd all characters should be displayed and there should be correct cursor indexing
---b) on windows it's hard to tell because the console has limited support for UNICODE. At least "Chinese Simplified" should work if Windows is set to "Chinese Simplified".
Flicker reduced in Windows
Comments are now also added to the undo buffer UNDO|REDO
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: cedit (windows , linux , freebsd , dos)

Post by VANYA »

Update:

Fixed bug Comments+UNDO|REDO in DOS
fixed incorrect save behavior for some operations (didn't display the save file dialog after changing the code using commenting and UNDO|REDO)
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: cedit (windows , linux , freebsd , dos)

Post by VANYA »

Updated:

Code optimization mainly on Windows. But on other platforms, this partially affected.
Now in Win9x the program works without braking and jerking. I found a solution in the FAR sources on how to solve this problem on older systems.
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: cedit (windows , linux , freebsd , dos)

Post by VANYA »

Updated (actually it's 2 updates in one ad):

from 05.03.2023
1) added key redefinitions for terminals rxvt, st
2) fixed key buffer full bug in Linux (appears on older machines)
3) on Linux, the editor is built with static libtinfo, and this allows you to work without the need to install libtinfo5 (in theory, it should work on any distribution, without the need to install dependencies)
from 09.05.2023
4) fixed bug with text output on Linux
5) on all platforms, the ability to run scripts (*.bat , *.sh) from the editor using the F5,F6 keys has been added. This allows you to compile|run or simply run any program. For correct configuration, read the readme.txt file
Post Reply