r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Linux] group for linux REBOL users

btiffin
18-Feb-2008
[1921]
lol - oh man ya got me twice ... people sleeping up stairs.  :)
BrianH
18-Feb-2008
[1922x3]
Don't like blue either, so KDE doesn't appeal that much :)
I'm hoping the black in KDE 4 will be better.
Of course this is why I have other people mock up my GUIs, like in 
DevBase - my taste isn't common.
btiffin
18-Feb-2008
[1925]
Love the KDE blue ... but to be honest, prefer a white background, 
black text and a CLI
BrianH
18-Feb-2008
[1926]
White background, black text can strain your eyes after a while - 
I often prefer the opposite. I like the CLI though.
btiffin
18-Feb-2008
[1927]
I grew up on Amber and Green screens.   Take that eyeballs.  :)  
 Especially when you have a couple of each colour (we had four or 
five tubes each ... windowing at it's finest).
Pekr
18-Feb-2008
[1928]
btiffin - thanks for pointing me out to runlevel articles. I simply 
expected something as easy as autoexec.bat or startup-sequence :-)
Graham
18-Feb-2008
[1929]
Has anyone much experience with using Wine?  I'm running my application 
under wine and all the decimals are being displayed in scientific 
notation.  So, instead of seeing 14.5, I see 1.4500000 x10^1 etc.
Gabriele
18-Feb-2008
[1930x2]
REBOL is using a windows function for decimal to ascii conversion 
that wine implements incorrectly.
there is no workaround other than using your own form function for 
decimals.
Oldes
18-Feb-2008
[1932]
In R3 it should be fixed, if I'm not wrong.
Dockimbel
18-Feb-2008
[1933]
Hi guys, I've tested today latest REBOL View on a Eee PC with the 
default Xandros OS, it works flawlessly so far, except for the usual 
small glitches with some default fonts.
btiffin
18-Feb-2008
[1934]
Petr;  For you, anything, anytime.  :)
Graham
18-Feb-2008
[1935x2]
Gabriele .. thanks.  Anyone got a form function for decimals??
Doc, I played with an Eee PC .. didn't realize it was Xandros.
Geomol
18-Feb-2008
[1937]
Graham, I'd guess, you can find one at the Library.
Henrik
18-Feb-2008
[1938]
graham, Gabriele made form-decimal once.
BrianH
18-Feb-2008
[1939]
There's a Xubuntu distribution for the Eee.
Graham
18-Feb-2008
[1940x3]
I think there's also a printf somewhere
http://www.compkarori.com/vanilla/display/form-decimal.r
That's Gabriele's
James
18-Feb-2008
[1943]
I'm relatively new to Linux in general, so this may be a simple question: 
When running REBOL in the terminal, how can I enable the <HOME>, 
<END>, and <DEL> keys? Right now they just print out "OH," "OF," 
and "[3~," respectively. I'm running Ubuntu 6.06 Dapper with Gnome.
Geomol
18-Feb-2008
[1944x2]
James, I guess, you're interested in the keys in View. This will 
tell you the actual key in view:


view layout [b: box red feel [engage: func [face action event] [probe 
reduce ["box" action event/key]]] do [focus b]]


Run the code, activate the view window and press the keys. You can 
see the key values in the terminal.
Here under OS X, <Home> returns #"^A", so I can do this to use it:


view layout [key with [keycode: #"^A"] [alert "Home was pressed"]]
Henrik
18-Feb-2008
[1946]
I think he means using the keys directly in the console, which correctly 
is limited in Linux.
Geomol
18-Feb-2008
[1947]
Ah, of course! :P :)
James
18-Feb-2008
[1948]
Yes, I was referring to running REBOL Core or View in the Linux console. 
Sorry for the confusion. Thanks though, Geomol!
Graham
18-Feb-2008
[1949x2]
Unforunately form-decimal also has problems under wine.
Instead of "64.1" I get "64.100000000000E+00"
Louis
18-Feb-2008
[1951]
Perhaps you should tell the wind developers; that should not be hard 
for them to fix.
btiffin
18-Feb-2008
[1952]
It's been reported ... people have suggested patches ...  no luck 
yet on ecvt.  fcvt got  a patch with 0.9.46 but afaik ecvt is still 
hurtin'
Gabriele
19-Feb-2008
[1953]
Graham, I modified one old form-decimal i had around to work with 
the wine bug; i just needed to test one of my old programs on wine, 
so it's not bullet proof, but it seems to work here. i will paste 
it to you, but you basically just need to parse the output of form 
and make it correct, it's easier than what it seems.
Graham
19-Feb-2008
[1954x2]
Thanks .. I'll give it a go.
Seems to work ... :)
Kaj
19-Feb-2008
[1956x3]
I just happened to refine my form-money yesterday:
form-money: func [
	m
	/local r
][
	if money? m [m: m/2]
	r: (to-integer (absolute m) * 100 + 0.5) // 100
	rejoin [
		either negative? m ["-"] [""]
		absolute to-integer m
		","
		either r < 10 ["0"] [""]
		r
	]
]
It's geared towards Dutch money, with two decimal positions and a 
decimal comma, but that's easy to adapt
Graham
19-Feb-2008
[1959]
I've been using puppylinux recently.  I notice that from the desktop, 
if I click on console, nothing happens.  Also, if I do a print from 
an encapped application, no console appears.  Ideas?
btiffin
19-Feb-2008
[1960]
If you start from a terminal session and use $ rebol    ( or whatever 
command)  and then hit the console, does the REBOL banner show up 
in the terminal?  That's where it should be.  No seperate "windows" 
console required for GNU/Linux.  If there is no banner, then puppylinux 
may be pooched.
Graham
19-Feb-2008
[1961]
maybe I should try starting from console rather then by gui
btiffin
19-Feb-2008
[1962]
Yeah, try that, see what happens.  Then the real head scratching 
can start.  :)
Kaj
20-Feb-2008
[1963x2]
I guess you mean the REBOL console? It doesn't work in the Linux 
version
Indeed you have to start Core, or start View with the -v option from 
the Linux console/shell
Graham
20-Feb-2008
[1965x3]
Oh .. okay.
I wonder if that's an encap option.
Also, I have found that under wine, my encapped application fails 
to launch another copy of itself.
Graham
21-Feb-2008
[1968]
Are the function keys available under Linux?
btiffin
21-Feb-2008
[1969]
Normally yes.  But there are X11 configurations to worry about; try 
(from the REBOL console  - being your shell term)

con: open/binary/no-wait [scheme: 'console]   wait con   ch: copy 
con
and see what gets placed in ch
Graham
21-Feb-2008
[1970]
Some keys are being trapped by Gnome ... F1, F11, F10