Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
nidud

E-mail

Norway,
02.01.2013, 20:06
 

The Doszip Commander version 2.44 available (Announce)

Download: http://sourceforge.net/projects/doszip/files/

There has been a memory problem in the Editor for some time, but when testing the EMS thing I finally found the reason: A random memory location was cleared in the init code when a file was open.

The Expanded Memory Manager seems to work now. The problem in DN is fixable but only cosmetic, showing 0K Expanded memory in the System Information dialog.

I also added a clipboard interface to the dzemm.dll file for Doszip. This enables copy and past from the Windows clipboard. This works natively in older versions (WINOLDAP in Windows 3.x/95).

The size of the clipboard is currently limited, and the plan was to copy large chunks of text directly in the manager, but I haven?t have time to implement this yet.

It is however possible to copy a large selection in chunks. A warning is shown when a selection is to big, and the selection set will be reduced for each (Ctrl-Insert) block until all text is copied.

There is also a copy function (F5) in the text viewer. This will copy text to the clipboard or a binary selection (offset, size) to a file. Text could also be copied using the mouse by a right click on the text you want to copy. This will copy whatever is on the screen from the start point (x, y) to end of the line.

The maximum memory emulated for DOS applications are 256M, but Doszip is capable of allocate more if needed. The memory size of each file is set in the Editor options dialog box (Ctrl-F6). This enables Doszip to edit larger files. This will also work using (J)EMM386, but then limited to less memory.

The maximum number of open files is currently set to 100. The maximum number of lines in a file is 65535, and the maximum length of a line is 1024 byte. The length has to be 128, 256, 512, or 1024 byte.

Rugxulo

Homepage

Usono,
03.01.2013, 10:46

@ nidud

The Doszip Commander version 2.44 available

Hi, just a few comments, not sure how useful I am, but anyways ....

> Download: http://sourceforge.net/projects/doszip/files/
>
> I also added a clipboard interface to the dzemm.dll file for Doszip. This
> enables copy and paste from the Windows clipboard. This works natively in
> older versions (WINOLDAP in Windows 3.x/95).

There is a VXD/TSR package (w/ srcs) for WinXP available online. Lemme find it ... ntold096b.zip.

I also have here an old (untested) DOSCLIP.ARJ (w/ srcs?) from Veit Kannegieser that lets the clipboard API work in pure DOS. (This may be hard to find as I don't think his site is online anymore. It may work well, which is why I kept it, but I dunno.) Okay, here it is: dosclip.arj

> The size of the clipboard is currently limited, and the plan was to copy
> large chunks of text directly in the manager, but I haven?t have time to
> implement this yet.

IIRC, GNU Emacs (DJGPP port) supported the clipboard, but it was limited to a portion of conventional memory due to design. So that may be the real limit.

> The maximum number of open files is currently set to 100.

Depends on external factors too. But that's probably a reasonable guess. ;-)

> The maximum
> number of lines in a file is 65535, and the maximum length of a line is
> 1024 byte.

Again, that sounds reasonable, I've very rarely run into anything beyond those limits.

nidud

E-mail

Norway,
03.01.2013, 13:25

@ Rugxulo

The Doszip Commander version 2.44 available

> Hi, just a few comments, not sure how useful I am, but anyways ....

Your comments are always both insightful and useful Rugxulo ;-)

> There is a VXD/TSR package (w/ srcs) for WinXP available online.
> Lemme find it ... ntold096b.zip.
>
> I also have here an old (untested) DOSCLIP.ARJ (w/ srcs?) from Veit
> Kannegieser that lets the clipboard API work in pure DOS. (This may
> be hard to find as I don't think his site is online anymore. It may work
> well, which is why I kept it, but I dunno.) Okay, here it is: dosclip.arj

I am aware of the alternatives, and I keep a note in the DOSZIP.TXT file
with address to http://www.phatcode.net/downloads.php?id=188

> IIRC, GNU Emacs (DJGPP port) supported the clipboard, but it was
> limited to a portion of conventional memory due to design. So that may
> be the real limit.

The code of the clipboard interface is very small, but you then have direct access to the linear address of the file. You could then copy 500M directly from the file to the clipboard, and also paste to the file the same way. I started to implement this in the source code, and the interface is something like this:

;----------------------------------------------------------
emm_91: ; Clipboard Copy                                91h
;----------------------------------------------------------
; AL: handle
; DX: start line
; SI: start offset
; BX: end line
; DI: end offset
; CX: line size

To do this in pure DOS you either provide streaming, allowing appending to the clipboard in chunks, or include a clipboard interface in JEMM.

> > The maximum number of open files is currently set to 100.
> Depends on external factors too. But that's probably a reasonable guess.

The limit is the number of handles in the EM-Manager, which is 255-1.
The information block for each file is currently 90 byte, and this is allocated on the stack, which are around 23K. I think the maximum number that worked was around 160, but above this crashed. 100 are a safe number, and the Save/Open Session function is also limited to 100.

> > The maximum number of lines in a file is 65535, and the maximum
> > length of a line is 1024 byte.
> Again, that sounds reasonable, I've very rarely run into anything
> beyond those limits.

There are a few factors to these limits:
- the size of a line cannot be smaller than the screen columns.
- the line is allocated on the stack for manipulation.
- the lines must fit in a memory page (4000h).

nidud

E-mail

Norway,
20.03.2013, 17:03

@ nidud

The Doszip Commander version 2.47 available

Download: http://sourceforge.net/projects/doszip/files/

Changes in 2.47 - 20 Mar 2013
- fixed bug in Panels on using Ctrl-K, Ctrl-X, Alt-C, F12, ... -- panel(s) becomes visible if hidden
- fixed bug in Command line -- content destroyed using Ctrl-O
- fixed bug in Edit Reload (Ctrl-R) -- first memory block not cleared
- added interrupt 2F 17xx (WINOLDAP) to DZEMM.SYS -- Clipboard functions
- added View to Memory Information dialog (Alt-M)

Changes in 2.46 - 28 Feb 2013
- fixed bug in Mouse functions on Key Bar (Statusline) -- hard error
- fixed bug in Mouse drag and drop functions to Key Bar -- hard error
- fixed bug in Mouse functions on Ctrl->Key Bar -- hard error
- fixed (or changed) Screen/Color Setup dialogs
- fixed (or updated) Dialogs and Menus with correct attributes

Changes in 2.45 - 22 Feb 2013
- fixed bug on execute Win32 programs in Win95/98 -- hard error
- fixed bug in Select Directory Dialog (Alt-P)
- fixed bug in Exchange Memory Region (dzemm.dll)
- added Device to Memory Information dialog (Alt-M)

Rugxulo

Homepage

Usono,
21.03.2013, 18:22

@ nidud

The Doszip Commander version 2.47 available

> Download: http://sourceforge.net/projects/doszip/files/
>
> Changes in 2.47 - 20 Mar 2013

Mirrored to iBiblio.

Back to the board
Thread view  Mix view  Order
22632 Postings in 2109 Threads, 402 registered users, 368 users online (0 registered, 368 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum