Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Looking for Windows Notepad equivalent for DOS (Users)

posted by mceric, Germany, 17.05.2025, 12:29

> ... handle files larger than 64k ... Use what's left of conventional
> memory (which would probably limit the size to around 500 k), use EMS, use
> XMS, or use a temporary file on disk. ... any other options?

Without EMS or XMS, they could generate a list of pointers to line starts and keep only the on-screen part in memory. This would require special treatment for "search and replace all", but for example searching without replacing is speed-limited by the user checking the results anyway :-)

The approach could be combined with some custom caching or pre-loading the next and previous few pages in the background, still without needing EMS or XMS.

As edits tend to change line lengths, you would also have to keep a list of changed areas in RAM, which would get processed both for displaying the file and for actually changing the file on disk when done with editing.

All of this takes way more effort than using a protected mode compiler and enough RAM to hold the whole file, but at least it is possible to edit large files with little RAM.

---
FreeDOS / DOSEMU2 / ...

 

Complete thread:

Back to the forum
Board view  Mix view
22552 Postings in 2097 Threads, 401 registered users, 55 users online (0 registered, 55 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum