Hans Schüren | 24 Jun 13:13 2016
Picon

How to print or export a complete code when ready ?

Hello again ,

one simple question.

How is it possible to print or export a complete code ?

If you want to make a hard copy on printer.

Export in a well known format is enough. perhaps .txt  etc

To print out on the main OS where Inferno is hosted.


Regards

Hans

--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Hans Schüren | 23 Jun 19:02 2016
Picon

Who can translate this simplest C program into an Limbo module ??

Who can translate this simplest C program into an Limbo module ??



#include<stdio.h>
main()
{
int a,b,c ;
printf ("Enter value for a :") ;
scanf ("%d" ,&a) ;
printf ("Enter value for b :") ;
scanf ("%d" ,&b) ;
c = a+b ;
printf ("a+b=%d/n" ,c) ;
system ("pause") ;
return 0 ;
}


output :

Enter value for a : 5
Enter value for b : 10
a+b = 15

____________________________________________________

i would really appeciate it.


WBR

Hans

--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Hans Schüren | 23 Jun 18:47 2016
Picon

Who can translate this simplest C program into an Limbo module ??

Who can translate this simplest C program into an Limbo module ??



#include<stdio.h>
main()
{
int a,b,c ;
printf ("Enter value for a :") ;
scanf ("%d" ,&a) ;
printf ("Enter value for b :") ;
scanf ("%d" ,&b) ;
c = a+b ;
printf ("a+b=%d/n" ,c) ;
system ("pause") ;
}


output :

Enter value for a : 5
Enter value for b : 10
a+b = 15

____________________________________________________

i would really appeciate it.


WBR

Hans


--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Hans Schüren | 22 Jun 16:39 2016
Picon

Command for keyboard input ?

Hello again ,

does anyone know the similar command for  { scanf  C }

in Limbo language ?

Keyboardinput.

printf (Ënter your name : ") ;
scanf ("%s" , name);

printf ("Hello" , %s , are you Inferno ?" , name) ;


Regards

Hans

--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Hans Schüren | 17 Jun 20:41 2016
Picon

Are there any simple .b files code examples for download ?

Hi there ,

are there any simple code examples .b files , for  testing with and compiling ?

Perhaps a download ?

I have downloaded all .b files from the book "Inferno Programming with Limbo' , Stanley Marbell.

Theese .b Limbo program files are very complex for testing.

However ,

the most of theese .b files have compiling errors when they are compiled in Inferno OS.

For Example :  Here the  rgbslider.b   Program  File

Only a few are ok.

May i ask for some more .b file program examples to learn with.

Are there any download links for that ?


Regards

Hans







--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Pete | 30 May 05:33 2016
Gravatar

Hacky OSX patch to fix the black screen problem

TL;DR: The patch at the end fixes the graphical problems on OSX as far
as I can tell, but it is a bad patch, so if you have any better ideas or
insight, let me know.

I'm going to have to do some work on OSX again, so in order to cope I've
gotten Inferno running on it.  I was getting the black-screen problem
that has received sporadic complaints previously, so here is a hasty fix
for the desperate.

I have almost no idea how to operate OSX's graphics primitives, I
haven't looked anything up, I made almost no attempt to diagnose the
bug, and this patch is actually bad.  (I had to crank it out in a hurry;
apologies.) It reminded me of a bug that I ran into when doing the SDL
patch, so I did the same hacky solution to get a working GUI as quickly
as possible.

On the other hand, it does work.  The screen remains black initially,
but once you trigger the first refresh (move the window around or toggle
fullscreen or click in the spot where the start menu would be or
whatever works for you), it just refreshes the entire screen every time
anything changes.  This is sub-optimal.

Refreshing the entire screen every time is actually one of the
infelicities of the SDL patch, and it was due to a similar bug, so I
suspect that there's something common between the two.  I forget why I
didn't fix it in the SDL patch.  If I get a chance and I can figure out
what the source of the bug is, then I'll probably fix this.  Although if
there's anyone else who might know why flushmemscreen() is getting
called too infrequently and sometimes with apparently incorrect rect
sizes, you could save me some time.

Here's the patch.  In case it gets mangled in transit,
http://static.debu.gs/osx.patch has the appropriate content.

diff -r 68f98ca17eff emu/MacOSX/win.c
--- a/emu/MacOSX/win.c	Wed Mar 16 21:20:19 2016 +0000
+++ b/emu/MacOSX/win.c	Sun May 29 19:28:00 2016 -0700
 <at>  <at>  -561,6 +561,12  <at>  <at> 
  	// sanity check.  Trips from the initial "terminal"
  	if (r.max.x < r.min.x || r.max.y < r.min.y)
  		return;
+	// HACK
+	if(needflush)
+		return;
+	r.min.x = r.min.y = 0;
+	r.max.x = Xsize-1;
+	r.max.y = Ysize-1;

  	rbounds.size.width = r.max.x - r.min.x;
  	rbounds.size.height = r.max.y - r.min.y;

--

-- 
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

brian.vito | 19 May 08:05 2016
Picon

Raspberry Pi Inferno Disk Image?

For reasons I can't figure out, I'm unable to create a bootable Inferno SD card for my Raspberry Pi 2 using the 0.6 release files. Would anyone have a disk image available that could be shared so that I may use dd to create a working Inferno disk? Thanks very much.

--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Hans Schüren | 17 May 20:35 2016
Picon

Many Work and Testing is done. Result : KNOPPIX LINUX works very good here ! Need help for preparing the emu !


Many Work and Testing is done. Result : KNOPPIX LINUX works very good here !  Need help for preparing the emu !


Hello again ,


after hours of hard work and testing i have installed the Knoppix LINUX 6.2 Version.

That Unix works very good. Its PURE LINUX.

Without any slowdowns.

Unpack the original inferno .tgz  was absolutely easy with   tar xf.


The only thing i have to do is to prepare the inferno files as described in the install folder.

But that can be heavy for a beginner in UNIX.


So every help is appreciated.

Does anyone have experience with KNOPPIX LINUX and InfernoOS ??

Perhaps from past programming ?

Any step by step suggestion could help me.  code examples - PDF Files with descriptions for absolute beginner etc.

Thank you for your attention.


Now i would not change the UNIXOS anymore , or if i do so , take a holiday before on the bahamas. ha

On Inferno Beach.


Regards


Hans

--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Hans Schüren | 17 May 08:25 2016
Picon

What UNIX to use for easy install of inferno without hassles and slowdowns ?

What UNIX to use for easy install of inferno without hassles and slowdowns ?


Hello ,

what if to think about in the other direction ?

Running Inferno in Windows NT is normal to reach.

But in UNIX its complicated. Depending on the Unix system.


So the simple way is to take THAT unix system where the inferno .tgz file

is to install in the easiest manner.


Can anyone suggest a unixOS where the installation and starting is simple as the same

procedure in windows ?



Regards

Hans

--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Hans Schüren | 16 May 14:16 2016
Picon

Want to START Inferno in SUN Open Solaris. Repository in unpacked in usr/Inferno folder. need emu start file

Want to START Inferno in SUN Open Solaris. Repository in unpacked in usr/Inferno folder. need emu start file.


Hello again ,

now i have unpacked the repository in the folder  /usr/inferno/

The repositoty name is :  inferno-os-inferno-os-68f98ca17eff

There is a Solaris folder.

At the time i dont know how to start the emu file.

Does anyone know the commands to start the emu file.


The goal is only to start the Inferno such like under windows.

In windows its easy.  NT folder and emu.exe   Then  wm/wm   READY


Now i want to do that in a UNIX environment. Because i have to learn UNIX.

No matter if the UNIX environment is out of date.

I want to program !

Dont care about the system is up to date.


Only START and RUN  INFERNO right now.


Please give me some step by step instructions.


Regards

Hans


 


--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Hans Schüren | 15 May 22:57 2016
Picon

How to install inferno tarball on SUN Open Solaris for a beginner. There are problems.

Hello ,


i want to install inferno OS on SUN Open Solaris.

As a beginner i have problems with that.

The decompression od the inferno tarball is not possible.

I have not used a package manager because its too complicated.

Therefore my attemps are to make the install from command line UNIX.

The next option is to install it on Plan 9 here.

Altogether two OS to choose.


Here is the session of the solaris CMD :

hans <at> opensolaris:~$ whoami

hans

 

hans <at> opensolaris:~$ su

Password:

 

hans <at> opensolaris:~# dir

 

core Desktop Documents Downloads Public

 

hans <at> opensolaris:~# cd Desktop

hans <at> opensolaris:~/Desktop# ls

addmoresoftware.desktop opensolaris-next-steps.desktop

inferno-20150328.tgz register-opensolaris.desktop

 

hans <at> opensolaris:~/Desktop# cp inferno-20150328.tgz /usr/inferno

hans <at> opensolaris:~/Desktop# cd /

 

hans <at> opensolaris:/# ls

bin etc lost+found platform sbin

boot export media proc system

cdrom home mnt rmdisk tmp

dev kernel net root usr

devices lib opt rpool var

 

hans <at> opensolaris:/# cd usr

hans <at> opensolaris:/usr# ls

 

adm dict inferno mail opt sadm src xpg4

apache dt java man perl5 sbin tmp

bin games jdk net platform sfw ucb

ccs gnu kernel news preserve share X

ddu has kvm old proc snadm X11

demo include lib openwin pub spool X11R6

 

hans <at> opensolaris:/usr# cd inferno

hans <at> opensolaris:/usr/inferno# ls

inferno-20150328.tgz

 

hans <at> opensolaris:/usr/inferno# gzip -dc inferno-20150328.tgz | tar xf -

 

gzip: inferno-20150328.tgz: invalid compressed data--format violated

tar: read error: unexpected EOF

 

hans <at> opensolaris:/usr/inferno# zcat inferno-20150328.tar.Z | tar xf -

inferno-20150328.tar.Z: No such file or directory

tar: blocksize = 0

 

hans <at> opensolaris:/usr/inferno# gunzip inferno-20150328.tgz

 

gunzip: inferno-20150328.tgz: invalid compressed data--format violated

hans <at> opensolaris:/usr/inferno# pk_add inferno-20150328.tgz

bash: pk_add: command not found

 

 

hans <at> opensolaris:/usr/inferno# gunzip inferno-20150328.tar.gz

gunzip: inferno-20150328.tar.gz: No such file or directory

 

 

hans <at> opensolaris:/usr/inferno# tar xvf inferno-20150328.tgz

tar: directory checksum error

hans <at> opensolaris:/usr/inferno#




Can anyone help here with a couple of step by step advices to install ?


That wouls help me a lot.


Regards


Hans


 

--
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Attachment (session.rtf): application/rtf, 6363 bytes

Gmane