World: r3wp
[Linux] group for linux REBOL users
older newer | first last |
Gabriele 18-Feb-2008 [1931] | 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 [1970x7] | Some keys are being trapped by Gnome ... F1, F11, F10 |
So, on Ubuntu with Gnome, I'm getting for F3 #{1B1B4F52} | |
Using Vid, I get for F1 onwards, console, listen, tcp, udp, icmp, dns, odbc, oracle, msql, crypt, compress ... | |
What's going on here?? | |
F12 is grabbed by the window manager in puppylinux, but otherwise the others are the same. | |
I presume Rebol is somehow interpreting these sequences like this. | |
Ahh.. it's a bug with Rebol 2.7.5 | |
btiffin 21-Feb-2008 [1977] | Ok, I was just about to say ... how are you getting the schemes list. That looks weird, but I was going to suggest it must be opening the system/schemes object somehow. I would be confused. Not that that would be weird. :) |
Graham 21-Feb-2008 [1978x2] | Ashley documents the bug on his Rebgui pages. |
Wonder why RT hasn't released a fix yet. | |
btiffin 21-Feb-2008 [1980] | Busyness? :) Afaik; a new release bundle is in the works. |
older newer | first last |