Welcome, Guest. Please login or register.


Author Topic: Errors on EGI's FileManager(FMAN.EGI) (Read 3346 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Errors on EGI's FileManager(FMAN.EGI)
« on: 2015.October.08. 01:20:51 »
FileManager was made as the main module of the EGI, much the same as a Windows 9x file manager. It is impressive by its time, 1987, but it has some flaws, mainly because the Enterprise has evolved some along the years...

It is not a real windows operative system like SymbOS is, but almost all the file operations can be made only with a click.

It can't deal with drive letters beyond E:, but this can be avoided with an easy assign.

The language roms(BRD, HUN, ESP) are incompatible with FMAN, not with the EGI, but you can solve it executing :UK.

The worst of the flaws is the incompatibility of the File Manager with the superb ZozoTools.

I think I know why a Dir with ZT is different and left out of square the DIR on FMAN.EGI.

ZT make the DIR lines one character shorter than normal, as them work with 24 hour clock. ZT don't need the P of Past Meridiam that a 12 hours clock has.

You can see it on the two first snapshots.

Then FMAN assumes the same length than normal and the lines are printed out mis-aligned.
« Last Edit: 2015.October.08. 07:40:42 by gflorez »

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14735
  • Country: hu
    • http://enterprise.iko.hu/
Re: Errors on EGI's FileManager(FMAN.EGI)
« Reply #1 on: 2015.October.08. 08:46:13 »
ZT use the EXOS variable 79 (DT_FORM) for set the date/time format for YY-MM-DD and 24h mode.
With language expansion the EXDOS also set another default for non UK mode.

Quote
79     DT_FORM    EXDOS date and time format (see below).

EXDOS command interpreter date and time format

Whenever a date or time is printed (such as in the DATE and TIME commands and in the DIR command), the format of the output is controlled by the variable DT_FORM (number 79). The format expected as input to the DATE and TIME commands is also controlled by this variable.

The bottom 6 bits of the variable control the date format, and are considered as three two-bit fields, each of which normally has a value of 1, 2 or 3. The position of the fields in the byte corresponds to the position of the output or input digits, the least significant two bits, for example, thus corresponding to the right hand pair when the date is printed.

A value of 1 indicates that the current day will be printed in the corresponding output field, a value of 2 means the current month value, and a value of 3 means the current year value. Thus it is possible to define any date format. The required values for the three usual formats are tabularised below for convenience. If all fields are zero (the default condition), then the format will default to the UK format (DD-MM-YY). If any one field is zero, than a zero will be printed in that position on output, and the corresponding value ignored on input.

The top bit of the variable controls the time format (ie. 12-hour or 24-hour). If reset (the default condition) then the time will be printed as a 12-hour time followed by 'a' or 'p' for am. or pm. Otherwise the time will be printed in 24-hour format with no 'a' or 'p'. Note that the time can be input in either format unambiguously.

The following table gives the necessary values for the variable to obtain the three common date formats in 12- or 24-hour time formats.

Date/ Time format     12 hour 24 hour

UK         (DD-MM-YY)    27     155

American   (MM-DD-YY)    39     167

ISO        (YY-MM-DD)    57     185

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Errors on EGI's FileManager(FMAN.EGI)
« Reply #2 on: 2015.October.08. 11:48:50 »
Confirmed, FMAN with ZT works if the time format is 12h.

The problem is that setting the 79 variable in the Exdos.ini script doesn't work for me. I have to do it once the File Manager is running.


Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14735
  • Country: hu
    • http://enterprise.iko.hu/
Re: Errors on EGI's FileManager(FMAN.EGI)
« Reply #3 on: 2015.October.08. 11:54:40 »
The problem is that setting the 79 variable in the Exdos.ini script doesn't work for me.
If I remember right the ZT set it again when System Initialization call running. I can compile ZT without this function.

But will be more better if FMAN fixed for work with any date format.

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Errors on EGI's FileManager(FMAN.EGI)
« Reply #4 on: 2015.October.08. 14:22:35 »
Let's fix the File Manager, this and the other minor errors. Even we can add new features...:


-Selectable drives.
-Colours and appearance. Design of the internal icons and pointer.
-Not drawing the screen every time a task is done, erase only the rectangles involved.
-Scroll on the file list instead of a page button.

Etc.
« Last Edit: 2015.October.08. 16:31:39 by gflorez »

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Errors on EGI's FileManager(FMAN.EGI)
« Reply #5 on: 2015.October.09. 13:44:02 »
If I remember right the ZT set it again when System Initialization call running. I can compile ZT without this function.

But will be more better if FMAN fixed for work with any date format.


I though, every time the EGI runs a new EGI module it initializes the System so, if somebody set the time to his own, for example in the EXDOS.INI script,  that selection will be erased.

Even if we fix the error in Fman.egi, your ZT will work better keeping the value of that var. And it can serve as a transitional cure for this annoying error if your tools are loaded as an extension..
« Last Edit: 2015.October.09. 13:59:09 by gflorez »

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Errors on EGI's FileManager(FMAN.EGI)
« Reply #6 on: 2016.February.13. 10:24:21 »
I have though, the EGI has an internal call to set the controller as Boxsoft(system var 189 to 3). Of course I have disabled it in the actual version, as it was done on every initialisation, every time a program was executed inside the EGI.

I've disabled it only poking the code with an hex editor, as I have not a proper disassembly of the EGI. Then,  I can do the same to poke other system var, for example 79 with a value of 27(12 h), ignoring errors if Ztools is not installed.

This way Fman could work straight with Ztools without modifications. And then, when exiting from EGI, var 79 returns to its default value, 24 h, as the system is reset again.   

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Errors on EGI's FileManager(FMAN.EGI)
« Reply #7 on: 2016.February.13. 18:27:26 »
Ok, done.

Not the most neat fix but it works. Now all the EGI modules start with 12h time so no conflict when Ztools is installed.


Edit: The modified EGI disk image can be found here and on the EnterMice wiki pages
« Last Edit: 2016.February.13. 18:46:25 by gflorez »