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

World: r3wp

[View] discuss view related issues

DideC
24-Apr-2006
[4879]
I have done some text placement calculation for my RT-style (rich 
text). Result is 99% Draw code.

Graham, you should have a copy of in on your HD as lecture-forum 
use it to show the posts (search "rtd-styles.r" or maybe "rtf-styles.r" 
if it's too old).
Graham
24-Apr-2006
[4880]
I really need a better way of indexing the rebol scripts on my drive. 
 Using the windows search tool finds far too many viruses :(
Anton
24-Apr-2006
[4881x2]
Do you have a recursive directory walker, ie. tree ?
I finally got around to making a nice little "command line" function 
FIND-FILE.
You can use it with optional arguments like this:
	find-file *.r    ; just lists all files with ".r" suffix.

 find-file *.r "rebol"   ; lists all files with ".r" suffix and containing 
 "rebol" 
	find-file * "rebol"  ; all files containing "rebol"
etc...
Graham
24-Apr-2006
[4883]
not currently.
Anton
25-Apr-2006
[4884x4]
Ok try this:
do http://www.lexicon.net/antonr/rebol/library/dir-utils.r
dir-utils/only [push pop] ; needed for tree

foreach [url words][

 http://www.lexicon.net/antonr/rebol/library/tree.r[tree] ; needed 
 for find-file

 http://home.wilddsl.net.au/anton/rebol/util/find-file.r[find-file] 
][
	foreach word words [set word get in do url word]
]

find-file *.r
push, pop and tree are pretty stable. Find-file is pretty new, but 
so far no problems. Find-file is short, so it's a good example of 
how to use tree.
I would expect you would just modify find-file a little bit to suit 
your purposes.
Gregg
25-Apr-2006
[4888]
Anton, your demo is simply awesome. Just blows me away what you guys 
can do.
Pekr
25-Apr-2006
[4889]
Anton - nice example .... I wonder how difficult would it be to get 
it working via shell environment, which is now available in all rebol 
versions?
Anton
25-Apr-2006
[4890x2]
Thanks, Gregg.
Pekr, what do you have in mind ?
Pekr
25-Apr-2006
[4892x2]
I mean - complete shell wrapper, so I can use rebol instead of windows 
shell ...
your find-file function is really nice addition though ...
Anton
25-Apr-2006
[4894]
I don't think it's easy to completely replace windows shell. I use 
dir-utils and find-file for most simple file system tasks already, 
but I use windows DOS console for all those particular windows DOS 
things.
PeterWood
25-Apr-2006
[4895]
Pekr: doesn't call/console "cmd params" help?
Anton
25-Apr-2006
[4896x2]
I think maybe he wants transparent fall-back to DOS console, as shown 
before by somebody.
(I'm not going to do that, probably.)
Henrik
25-Apr-2006
[4898]
anton, that is pretty neat. would you mind if I tried to integrate 
this with http://www.hmkdesign.dk/rebol/old/msearch.r?
Anton
25-Apr-2006
[4899]
By all means.
Pekr
25-Apr-2006
[4900]
yes, I meant transparent command-set support. It was just theoretical 
quesiton, I don't need it that much ...
BrianH
25-Apr-2006
[4901]
If there was a console-mode REBOL perhaps we could use it as a command 
shell replacement.
Pekr
25-Apr-2006
[4902x3]
iirc 1.0 branch used native console, but you know, native console 
in W9x did not feature even arrow-up list of already processed commands 
...
this is imo why RT came with native console. Nowadays, I do prefer 
separate console, but I would like to see better support for keyboard 
navigation, which is currently very weak ...
now the thing is, if we want to reinvent the wheel. I do remember 
very powerfull consoles (even with coloring modes) from Amiga days, 
and if we talk non X-windows Linux installation, we do want to use 
text based console anyway ...
Henrik
25-Apr-2006
[4905]
having a separate console seems to me causes a problem with rebol 
processes that do not initially print anything on a console. the 
problem arises when needing to print to a console. where to go? If 
another rebol process is already running, the new process starts 
printing there, "merging" the two consoles and rendering the console 
useless.
BrianH
25-Apr-2006
[4906]
I'd like the option to use a native console. I'm frequently using 
Windows remotely and that can be a little awkward to do cross-platform, 
and can be high bandwidth as well. The NT console is powerful enough.
Pekr
25-Apr-2006
[4907x2]
yes, at least it can jump by words :-)
as for Windows, I am used to own graphical one. And how do we get 
cross-platform console, which behaves the same way, if not having 
rebol own one?
BrianH
25-Apr-2006
[4909]
Windows console apps can run on some other platforms as well, where 
GUI support is spotty. They integrate with batch scripts better too.
Pekr
25-Apr-2006
[4910]
but then maybe someone writes async visual console as Cyphre did 
some time ago ...
Henrik
25-Apr-2006
[4911]
pekr, yes it would be interesting to see a console written in View
Rebolek
25-Apr-2006
[4912]
Henrik, Cyphre's vconsole is still available on his rebsite.
BrianH
25-Apr-2006
[4913]
I can run Windows console apps on DOS, for instance.
Pekr
25-Apr-2006
[4914x2]
why the amiga console was so powerfull and windows is so weak? it 
even can't use tab to form form commands ... without that feature 
I am agains using native windows console ...
arrow-down does nothing too - it should discard the input .... it 
is a bad joke, not a console ...
Henrik
25-Apr-2006
[4916]
the windows rebol console has one thing I hate.... when you type 
in a long sentence and accidentally press arrow-up, the sentence 
is lost
BrianH
25-Apr-2006
[4917]
Hey, I just want as an option, like a seperate build or something. 
What Windows are you using? Sounds like you need doskey.
Pekr
25-Apr-2006
[4918x2]
yes, that is bad ...
Win2K .... talking the standard ...
BrianH
25-Apr-2006
[4920]
Win2k has tab completion and arrow keys cycling through your history, 
doskey built in.
Pekr
25-Apr-2006
[4921x2]
rebol native console is not perfect, but I do remember that old 1.x 
days and unless windows console provides better experience, it becomes 
denerving pretty quickly .... slowing you down ...
tab completion? where?
BrianH
25-Apr-2006
[4923x2]
Search for TweakUI on Microsoft's site.
It just changes an existing registry setting, but it is easier.
Pekr
25-Apr-2006
[4925x2]
I don't want any TweakUI - I talk about what comes with os as default 
.... I want to use rebol on many machines and am not willing/nor 
I will not be probably able, to install TweakUI on each of them ....
will look at TweakUI though, I use windows console often ...
BrianH
25-Apr-2006
[4927]
Well, I want native console mode REBOL to integrate with other console 
mode apps and scripts, and for when I am already in console mode 
and need to do something without switching to a GUI. When I am in 
GUI mode already, the existing console is fine. I need both.
Henrik
25-Apr-2006
[4928]
the problem with TweakUI is that it's a tool that makes windows usable 
:-) one has to wonder why MS engineers would write a tool to remove 
a lot of the nuisances in Windows, if Windows is already so great 
:-)