[Freedos-devel] new app: scrsave

2004-05-08 Thread Diego Iastrubni
Hi,

I am releasing this app under public domain. What it does is quite simple: it 
saves the contents of the screen into a file c:\screen.txt, once every 3 
seconds. 

I am releasing this code to public domain since:

- GPL is too restrictive, and it is many times problematic for incorporating 
into commercial products.

- I am having some problems, and I feel that if more people are exposed to the 
code, they will be able to fix it, or tell me what I am doing wrong.

Problems:
the app displays a char on the right upper corner of the screen, which 
indicates that is it working. 

I start the app, and in commmand.com it works. I type some commands (like dir 
of something similar) and I can see the commands output on the text file.
However when I start prorams like "turbo pascal" or "edit" or "dos navigator" 
I still get the old command prompt on the text file. The funny thing is that 
I see in the right upper corner my app runnning.

All the screen handeling was done by reading or writing from segment B800. In 
TP code it looks like this:

Type
  VGA_Screen  = array[0..25-1,0..80-1] of record letter: char; color: byte; 
end;

Var
  Screen: VGA_Screen  absolute $B800:;

The I just read or write to this variable to read or write to the screen. If 
anyone has a better approach, please do tell.

I also need to implement "virtual keyboard input" from a text file. I found 
function 5 of int 16h which can help me, however some tests I have run did 
not work:

procedure send_key( ascii: char; scan_code: byte );
Begin
 asm
mov ah, 05h
mov ah, scan_code
mov cl, ascii
int 16h
 end;
End;

I send some chars to this function and then I did a readln. I expected to get 
the letters sent to this function and the ones I actually typed on the KB in 
the string. However I got only the ones I typed in the keyboard.

The app can be find in:
http://cucomania.homelinux.net/pub/dos/scrsave.pas
http://cucomania.homelinux.net/pub/dos/scrsave.exe

I compiled under TP 7.01 (the one from the french borland site they gace away 
some years ago). I can port it to C, and probably will in the future.

-- 


diego, kde-il translation team

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Free MS-Office replacement for most platforms
http://www.openoffice.org/


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] Re: new app: scrsave

2004-05-08 Thread Eric Auer

Hi, I think you will be able to capture the screen in Borland IDEs
by simply making your program check which screen PAGE is in use.
You can find that information in the 0x40:xx BIOS data area.
Public domain is okay - easier for people to use your code in other
programs. But GPL does not limit people in reading your code either!
It only limits people in what license they may use for derived works.

And of course you could port it to Turbo Pascal 5.5, of which even
the English version is available for free from the Borland community
museum. Or to C or to Assembly language or whatever you want :-).

Eric.



---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Re: new app: scrsave

2004-05-08 Thread Diego Iastrubni
בSaturday 08 May 2004 15:19, נכתב על ידי Eric Auer:
> Hi, I think you will be able to capture the screen in Borland IDEs
> by simply making your program check which screen PAGE is in use.
> You can find that information in the 0x40:xx BIOS data area.
> Public domain is okay - easier for people to use your code in other
> programs. But GPL does not limit people in reading your code either!
But it limits them by not giving them perision to reuse this code in their 
projects. I dont like the virus effect of GPL. MIT might be a good idea... 
maybe next project.

> It only limits people in what license they may use for derived works.
I dont get it... Page N is in 
B800:[80x*25*N] right? I tested it... (I made an arrays of screens, and 
printed all of them into a file. and still I can write to the first line in 
the screen ... so I think I am seeing page number 0... I will test again.

> And of course you could port it to Turbo Pascal 5.5, of which even
> the English version is available for free from the Borland community
> museum. Or to C or to Assembly language or whatever you want :-).
TP 5.5... mmm... interesting... :)

-- 

diego, kde-il translation team

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Free MS-Office replacement for most platforms
http://www.openoffice.org/


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] Joke of the day: lb040501.zip !?

2004-05-08 Thread Eric Auer

Hi, I got an urgent request to make my homepage 8.3 name
compatible. So I would have to upload lbacache-01may2004.zip
as lb040501.zip (which is YYMMDD order, nice for sorting but
completely unreadable to normal Germans).

The claim is that (paraphrasing) "having to use a web browser
to download non-8.3-filename and save it as 8.3 filename on
disk would be contradictory to GPL".

I hope that even web browsers for DOS are able to use URLs
which are longer than 8.3? In that case, I assume that it
is possible to download the file under every 8.3 filename
that the user wants.

For extra convenience, I wrote a shell script which helps to
mass-rename files:

echo mmv lbacache-\*\?\?\?20\*.zip lb\#5\#2\#4\#1.zip
Uhm, sorry, must be:

mmv lbacache-\*\?\?\?20\*.zip lb\#5\#2\#4\#1.zip

;-). Whatever. Sample result: Before ->
lbacache-01apr2003.zip lbacache-10jun2003.zip lbacache-20sep2003.zip
After ->
lb03ar01.zip  lb03jn10.zip  lb03sp20.zip

You could make that a bit more sophisticated to replace the months by
numerical versions.

Have fun.

If you are REALLY downloading my software under DOS, and your browser
is unable to process non-8.3 URLs, let me know. Doh.

NAME
   mmv  -  move/copy/append/link  multiple  files by wildcard
   patterns

SYNOPSIS
   mmv [-m|x|r|c|o|a|l|s] [-h] [-d|p] [-g|t] [-v|n] [from to]
...

Eric



---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] MHCOMD.VBX module

2004-05-08 Thread Henrique Peron
Hello all.

First of all, please accept my apologies for posting an off-topic message.

Second, I don't know whether the request that I'll be doing is considered
piracy or not.
If it is, please accept my apologies for that as well and just disregard
this message.

The point is: while assisting a client, a program stopped working because it
lacks this MHCOMD.VBX module.

If is there anyone out there who has this module and could send it to me, I
would be very grateful.

There is this BIBLIO program which, after the HDD being reformatted, it
stopped working.
As soon as I double-clicked that, it called for a GRID.VBX module which I
was able to find within the (very old) floppies of my client.
I copied it into the HDD and the program then called for a CRYSTAL.VBX
module which luckily I was able to find as well.
Then, the program called for this MHCOMD.VBX module... Which I didn't find
anywhere (within the floppies that were still readable).
I tried the web as well. No deal.

Furthermore, if any of you could point me to some other mailing list where
perhaps I could find help, I would also be very grateful.

Thanks to all for your attention,
have a nice day,
Henrique




---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel