Re: [Freedos-devel] Re: Developing in Linux / FreeDOS

2004-09-23 Thread Diego Iastrubni
 , 23  2004, 16:40,Aitor 
Santamara Merino:
 Eric Auer escribi:
 That would be a bug then. Turbo C is for DOS, so use it in DOSEmu,
 not in Wine.

 According to the wine RPM description, Wine can do Win16 and DOS apps
 too. But I don't know much about their DOS virtualisation.

 Aitor
run away from it, it's not maintained that much.
FreeDOS + DOSEmu can perfectly run TC the last time i checked.


-- 
  !
diego, kde-il translation team, http://www.kde.org/il 

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] new app: scrsave

2004-05-09 Thread Diego Iastrubni
Sunday 09 May 2004 13:53,Arkady V.Belousov:
 Hi!

 8--2004 16:53 [EMAIL PROTECTED] (Diego Iastrubni) wrote to
 [EMAIL PROTECTED]:

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

  INT 16/5 is very limited approach - at lewast, it limited by size of
 keyboard buffer (16 scan codes) and not available on old machines.
any other aproach? A google session (a large one which took about all the 
weeekend) did not give me any pointers. 

Should I look into dosemu/freedos sources to find the answers? 

-- 

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] 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


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


Re: [Freedos-devel] monitoring screen output

2004-04-20 Thread Diego Iastrubni
 , 20  2004, 22:09,Arkady V.Belousov:
  No. Unfortunately, DOS itself calls INT28 too rarely (only when it
 waits onput to fill input keyboard buffer), so you should use other doors.
 Ie., for example, you should trap INT21 and, if happen some event (handler
 from INT1C sets some flag), then your main resident code may call DOS if
 DOS not called OR you in DOS, but DOS calls INT28.

  But wait from me too much answers, I'm not write extensive resident
 code. You should study, for example, libraries like TeSeRact, TSRtoo, AMIS
 (management library from Ralf Brown) etc.
I did a readln in pascal, and was hoping to see my interrupt working :)
this is not the case.

 DI Another thing:
 DI Looking inside the kernel in file chario.c in function:
 read_char_sft_dev, I DI see this code:
 DI   if (check_break  *pdev != syscon)
 DI check_handle_break(syscon);
 DI   /* the idle int is only safe if we're using the character stack
 */ DI   if (user_r-AH  0xd)
 DI DosIdle_int();
 DI and also:
 DI http://www.ctyme.com/intr/rb-2739.htm

  I don't know what contained in this page. Just mention, which
 interrupt you mean.
DOS 2+ - GET ADDRESS OF INDOS FLAG

AH = 34h

ignore that... me stupid... did not see GET.

anyway, I see an if before. what does is the variable which is checked? 

 DI Apparently I have to pass a pointer to a byte to the DOS and set that
 byte DI to 1? I think I am lost, that manual is not that usefull. :(

  ?
again, ignore me, I am just half blind. I will look for the libs you 
mentioned, and I am also looking for demos in C (asm is too long :)


Thanks again.

-- 

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: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70alloc_id638op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] monitoring screen output

2004-04-14 Thread Diego Iastrubni
Hi all!

I need to write a program which periodically saves the screen contents into a 
file. What I have done is trapping int $1C, and every 30 secs, run a 2nd 
procedure which opens a file and saves $B800: to it. The problem is (that 
I am stupid and forgot to pushf before calling the original handler :) that 
when I open a file, and start writing to it, the emulator dies. 

For those who lost me, I am compiling using the free French version of TP7 
under DOSEMU and sometimes XP.

The relevant code is, the failure point is (as far as I know) the point marked 
by {*}:

code
Procedure save_screen; far;
Var
   F: file;
   x,y: integer;
Begin

 Assign( f, 'f:\screen.txt' );
 ReWrite( f, 1 );

 For y:=0 to 24 do
For x:=0 to 79 do
{*}
   BlockWrite( f, screen[y][x].letter, 1  );

 Close(f);

End;

Procedure my_timer; Interrupt;
Begin

  PUSHF;
  Call(old_timer);

  If (tics mod 18) = 0
 Then Case (tics div 18) mod 3 of
0: do_something;
1: save_screen;
  End;
End;

var
  x,y: integer;
begin
 old_timer := get_int( TIMER_INT );
 set_int( TIMER_INT, @my_timer );
 readln;
 set_int( TIMER_INT, old_timer );
end.
/code


If anyone knows what I am doing wrong, please tell me. 

PS:
does the license of the FTP7 let you use it for commercial products? Can I 
compile something with it and sell it?


TIA

-- 

diego, kde-il translation team

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel