Skip to content
FTE: The Folding Text Editor (fork for DOS / DOS4GW)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Artistic
BUGS
CHANGES
COPYING
HISTORY
Makefile
README
README.md
TODO
bin2c.cpp
c_bind.cpp
c_bind.h
c_cmdtab.h
c_color.cpp
c_color.h
c_commands.h
c_config.cpp
c_config.h
c_desktop.cpp
c_desktop.h
c_fconfig.h
c_hilit.cpp
c_hilit.h
c_history.cpp
c_history.h
c_mode.cpp
c_mode.h
cfte.cpp
clip_no.cpp
commands.cpp
con_dosx.cpp
conkbd.h
console.h
defcfg.fte
e_block.cpp
e_buffer.cpp
e_buffer.h
e_cmds.cpp
e_djgpp2.cpp
e_file.cpp
e_fold.cpp
e_line.cpp
e_loadsave.cpp
e_mark.cpp
e_mark.h
e_print.cpp
e_redraw.cpp
e_regex.cpp
e_regex.h
e_search.cpp
e_tags.cpp
e_tags.h
e_trans.cpp
e_undo.cpp
e_undo.h
egui.cpp
egui.h
feature.h
file_id.diz
fte.cnf
fte.cpp
fte.h
ftever.h
g_draw.cpp
g_menu.cpp
g_nodlg.cpp
g_text.cpp
gui.cpp
gui.h
h_ada.cpp
h_c.cpp
h_catbs.cpp
h_diff.cpp
h_fte.cpp
h_html.cpp
h_ipf.cpp
h_make.cpp
h_merge.cpp
h_msg.cpp
h_pascal.cpp
h_perl.cpp
h_plain.cpp
h_rexx.cpp
h_sh.cpp
h_simple.cpp
h_tex.cpp
i_ascii.cpp
i_ascii.h
i_choice.cpp
i_choice.h
i_complete.cpp
i_complete.h
i_input.cpp
i_input.h
i_key.cpp
i_key.h
i_modelview.cpp
i_modelview.h
i_oview.cpp
i_oview.h
i_search.cpp
i_search.h
i_view.cpp
i_view.h
indent.cpp
log.cpp
log.h
memicmp.cpp
menu_text.cpp
o_buffer.cpp
o_buflist.cpp
o_buflist.h
o_directory.cpp
o_directory.h
o_list.cpp
o_list.h
o_messages.cpp
o_messages.h
o_model.cpp
o_model.h
o_modemap.cpp
o_modemap.h
o_routine.cpp
o_routine.h
port.c
port.h
portdos.c
s_direct.cpp
s_direct.h
s_files.cpp
s_files.h
s_util.cpp
s_util.h
simple.fte
sysdep.h
view.cpp

README.md

FTE: The Folding Text Editor

This is a fork of the "20010819" source release available here.

This is NOT based on the newest FTE sources available. Please check the actual SourceForge project page for newer source updates if you're not interested in the DOS-specific changes that this Git repo is about.

Changes:

  • Built against Watcom C/C++ 11.0 and DOS/4GW
  • Fixed the ScreenSizeX and ScreenSizeY global config properties so that they are actually used under DOS.

Existing .CNF files built for the 20010819 FTE release should all work the same and not need to be rebuilt.

From the "Release" page, the ZIP file contains two pre-built CNF config files that are otherwise identical except that FTE.CNF sets 80x25 text mode while FTE80x50.CNF sets 80x50 text mode. The config/ directory contains everything you'll need to build your own custom config via the included CFTE.EXE. Just make any changes you like and then run:

CFTE config/main.fte

Which will result in a new file FTE-NEW.CNF being built (assuming no errors).

Background

The motivation for these changes comes from the fact that I wanted a DOS build of FTE that I could use on my "retro" DOS-based PCs for writing code using Watcom C/C++ and DOS/4GW. The only DOS release of FTE that I'm aware of is compiled with DJGPP and hence uses CWSDPMI. Different DOS extenders usually don't mix well together and as I found out for myself, when trying to use FTE's Run/Compile menu options to run external Watcom tools (like wlink, wd, etc) most anything that uses DOS/4GW would crash likely due to the fact that FTE was running under CWSDPMI.

After looking at the source code, it seemed that only minor changes would be needed to get a DOS/4GW-compatible build going (and indeed, some of the Watcom-specific work had been done already ... I guess in the past someone else had this building with Watcom?).

After I got it building I noticed that it didn't support DOS 80x50 text mode, even though from looking at the code it was clear that support for customizable screen sizes was planned from the start. I guess whoever did the original DOS porting work didn't hook up different DOS text mode support where it needed to be hooked up.

For my modified source release of FTE I've cleaned out any sources and build scripts that are NOT related to Watcom/DOS support. Since this fork is based off an older version of FTE, I feel like if you're looking for support for some other OS, you're not going to be best served by starting off from here anyway. Go to the more up to date SourceForge project page instead.

You can’t perform that action at this time.