NewsProductsSprinterSupportDownloadSprinter ForumAbout usLinksSite map Russian site

English
   >> Software programming for the computer Sprinter
Thread views: 1157 View all threadsNext thread*Threaded Mode

Pages in this thread: 1 | 2 | 3 | 4 | 5 | (show all)
Shaos
(enthusiast)
2002/10/30 07:59
Re: C compiler new [re: liftarn]Reply to this post

> Colours (using ANSI) is now supported.
If I remember right ANSI-C does not support color text and cursor locating. It's implementations under different OS's. Please, write simple example.

> Fie i/o is in beta.
May I test it?


Alexander Shabarshin (shaos@mail.ru)
NedoPC Project

liftarn
(stranger )
2002/10/30 12:41
Re: C compiler new [re: Shaos]Reply to this post

In reply to:

If I remember right ANSI-C does not support color text andcursor locating. It's implementations under different OS's.




Sorry, I was talking about ANSI graphics, not ANSI C. ANSI graphics is the type you commonly find in terminal programs.

In reply to:

Please, write simple example.




/*
* Test the ANSI terminal
*
* 15/4/2000 Stefano Bodrato
*
* Compile with zcc +zxansi ansitest.c
*/


#include "stdio.h"

main()
{
int x;

/*
A stupid CSI escape code test
(normally no use uses CSI)
*/
printf ("If you can read this, CSI is not working.\n");
printf ("%c2J",155);
printf ("If this the first thing you can read, CSI is OK.\n");


/*
Set Graphic Rendition test
*/
printf ("%c[1mBold Text\n",27);
printf ("%c[2mDim text\n",27);
printf ("%c[4mUnderlined Text\n",27);
printf ("%c[24mUn-underlined text\n",27);
printf ("%c[7mReverse Text\n",27);
printf ("%c[27mUn-reverse text\n",27);

for (x=37; x>29; x--)
{
printf ("%c[%umFore text color %u.\n",27,x,x);
}

for (x=40; x<48; x++)
{
printf ("%c[%umBack text color %u.\n",27,x,x);
}

/*
Restore default text attributes
*/
printf ("%c[m",27);

/*
Cursor Position test
"Draw" an X
*/

for (x=0; x<11; x++)
{
printf ("%c[%u;%uH*\n",27,10+x,25+x);
printf ("%c[%u;%uH*\n",27,20-x,25+x);
}

}


In reply to:

May I test it?




It's available at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/z88dk/z88dk/libsrc/fcntl/sprinter/



Shaos
(enthusiast)
2002/10/30 13:06
Re: C compiler new [re: liftarn]Reply to this post

> Sorry, I was talking about ANSI graphics, not ANSI C.
> ANSI graphics is the type you commonly find in terminal programs.

Ok I see

> * Compile with zcc +zxansi ansitest.c

For Sprinter I need to write zcc +ppsansi ansitest.c ???

> It's available at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/z88dk/z88dk/libsrc/fcntl/sprinter/

It's some strange to download files by one through CVS... When we will see full release (or solid beta)?


Alexander Shabarshin (shaos@mail.ru)
NedoPC Project

dom
(stranger )
2002/10/30 16:14
Re: C compiler new [re: Shaos]Reply to this post

> For Sprinter I need to write zcc +ppsansi ansitest.c ???

Yup, that's correct.

>It's some strange to download files by one through CVS... When we will see > full release (or solid beta)?

I really want to push out a full release very soon. It looks very bad having a 16 month release as the only downloadable version. Easiest way is to download a snapshot from http://sugarcube.suborbital.org.uk/~dom/z88dk (consider these unofficial betas)

Or if you've got cvs installed then you get the entire source out with the following two commands:

cvs -d:pserver:anonymous@cvs.z88dk.sourceforge.net:/cvsroot/z88dk login

cvs -z3 -d:pserver:anonymous@cvs.z88dk.sourceforge.net:/cvsroot/z88dk co z88dk

and then update it with:

cvs -z3 update -d .

from within the checkout directory



Shaos
(enthusiast)
2002/10/31 08:02
Re: C compiler new [re: dom]Reply to this post

> download a snapshot from http://sugarcube.suborbital.org.uk/~dom/z88dk (consider these unofficial betas)

It's better for me. Thank you :)

And tell me what I need to write for use file-operations?
zcc +???? example.c


Alexander Shabarshin (shaos@mail.ru)
NedoPC Project

liftarn
(stranger )
2002/10/31 17:14
Re: C compiler new [re: Shaos]Reply to this post

As far as I know it would work with either
zcc +pp example.c
or
zcc +ppansi example.c
depending if you want ANSI or not. Then you should
#include <stdio.h>
and it should work.



Shaos
(enthusiast)
2002/11/06 13:48
Re: C compiler new [re: liftarn]Reply to this post

+pp or +pps ???

Alexander Shabarshin (shaos@mail.ru)
NedoPC Project

liftarn
(stranger )
2002/11/07 14:56
Re: C compiler new [re: Shaos]Reply to this post

Sorry, ofcourse it should be either +pps or +ppsansi depending if you want ANSI or not.



Marcelo
(stranger )
2002/11/08 03:08
Re: C compiler new [re: liftarn]Reply to this post

Is there any Z88DK Windoze-ready pack anywhere with Sprinter support that one can just download and start coding instead of having to compile/upgrade/massage it? Can anyone tell its URL?

My excuses if I did not understand something in this thread, but it seems to me that there is one pack and then one has to update it with some other things in order to have Sprinter support. Is this so?

Thanks in advance,

Marcelo.
----------------------------------
Speccy rules, its staff is Sprinter.



Shaos
(enthusiast)
2002/11/10 09:03
Re: C compiler new [re: Marcelo]Reply to this post

At present I have built it only under Linux. For windows I compile binaries, but I don't know how use .lnx and build libraries... May it near future windows version will come???

Alexander Shabarshin (shaos@mail.ru)
NedoPC Project


Pages in this thread: 1 | 2 | 3 | 4 | 5 | (show all)
View all threadsNext thread*Threaded Mode
Jump to