Re: [9fans] Plumb menu option not working

2014-03-12 Thread Friedrich Psiorz
Are you selecting the text first? Rio is very different from acme in the way it treats mouse clicks. When you want to plumb something, you need to select it, or at least left click on the respective word, before using the middle click menu. Similar thing with pasting: The text doesn't get inserted

[9fans] can't install 9front kernels

2014-11-13 Thread Friedrich Psiorz
I recently updated my 9front and recompiled everything, including kernels and 9bootfat. After installing the new 9bootfat and kernels to /n/9fat, the system fails to boot. The computer (Thinkpad X220) just reboots after 9bootfat. If I replace the new 9pcf with the old version (the one that came

Re: [9fans] can't install 9front kernels

2014-11-13 Thread Friedrich Psiorz
I did that, just as it says in the FQA. I also did the chmod +al, and the 9bootfat seems to be ok, because it works when I combine the new 9bootfat and the old 9pcf. @cinap: should I send the binary directly to you? Am 13.11.2014 um 21:33 schrieb s...@9front.org: Try removing the old 9bootfat

Re: [9fans] can't install 9front kernels

2014-11-13 Thread Friedrich Psiorz
/lib/firmware was indeed the problem. I have my wifi firmware there (and I need it there to use wifi), but when I installed it, I just extracted all the iwl firmware files there, not just the necessary one for my card. I deleted all files except for the needed one and it now works. Thanks a

Re: [9fans] rc and whitespaces

2014-11-26 Thread Friedrich Psiorz
That behaviour is what I would expect. rc splits text in `{} according to $ifs, which is usually space, tab, and newline. It doesn't treat any characters special, including quotes. Am 26.11.2014 um 14:02 schrieb Steve Simon: > rc using backquote to parse strings, e.g: > > hugo% s=`{echo a b

[9fans] GUI for navgating the file tree

2015-02-04 Thread Friedrich Psiorz
Hi 9fans I'm writing a little GUI for file system navigation … it's all but finished, but clicking on directories works, so if somebody would like to try, I'd be delighted! If you have any comments, on the program, on the code, etc. let me know. If you have hg, just hg clone https://bitbucket.or

Re: [9fans] GUI for navgating the file tree

2015-02-04 Thread Friedrich Psiorz
:) no. Am 04.02.2015 um 22:59 schrieb Kurt H Maier: > Is this an acme fork? > > khm > >

[9fans] Porting 9front.net/go/draw to Plan 9

2015-07-09 Thread Friedrich Psiorz
Hi! I'm currently writing a graphical application in Go that I would like to be able to run both in Unix and Plan 9. Currently the 9fans.net/go/draw library only works in Unix, by connecting to p9p devdraw. Does one of the maintainers of that repository read this list? I have the following questi

Re: [9fans] Porting 9fans.net/go/draw to Plan 9

2015-07-09 Thread Friedrich Psiorz
I mean 9fans.net/go/draw Sorry for the wrong subject line Am 09.07.2015 um 16:52 schrieb Friedrich Psiorz: > Hi! > > I'm currently writing a graphical application in Go that I would like to > be able to run both in Unix and Plan 9. Currently the 9fans.net/go/draw > library on

Re: [9fans] Porting 9front.net/go/draw to Plan 9

2015-07-10 Thread Friedrich Psiorz
third one. But for now, I think I will just hard-wire the native file system for Plan 9 and devdraw for all other OSs. Am 10.07.2015 um 12:18 schrieb yy: > On 9 July 2015 at 16:52, Friedrich Psiorz wrote: >> Hi! >> >> I'm currently writing a graphical application in Go

Re: [9fans] Plumbing - Files with spaces

2015-07-22 Thread Friedrich Psiorz
You can change your lib/plumbing file. If you add a space to the regular expressions in the 'matches' rules it should work. Maybe you will need to have two rules, one for making simple right clicking without selection work in acme (no spaces in the regexp) and the other (with spaces) to be able to

[9fans] test

2016-07-27 Thread Friedrich Psiorz
test

[9fans] environment variables bevanving weird

2012-06-08 Thread Friedrich Psiorz
hi! I'm new to Plan 9 and I don't understand this behavior: I wrote a program that basically just does putenv("foo", "bar"); After running it, echo $foo prints just an empty line, while cat /env/foo prints bar. Can anyone explain?

Re: [9fans] 9fans Digest, Vol 98, Issue 15

2012-06-08 Thread Friedrich Psiorz
> The reason seems to be that while creating a variable foo > in rc is immediately reflected to /env/foo, the reverse is > not true. That is, creating a new file under /env/baz does > not update the current rc instance with a new variable $baz > > So in this case, putenv is actually writing to /en

[9fans] Root file system from usb-hdd on raspberry pi

2013-03-26 Thread Friedrich Psiorz
I'm currently trying to set up a usb-hdd as my root filesystem; I found out, that I have to use partfs to actually see the partitions I create, however they don't show up after the next reboot; i have to use fdisk's and prep's w command (without actualy modifying the partition table), to see the pa

Re: [9fans] Root file system from usb-hdd on raspberry pi

2013-03-26 Thread Friedrich Psiorz
I recompiled the kernel as you said, and noticed that it doesn't complain about missing partfs during boot anymore; however there is no additional sd*, still only sdM0 and sdU0.0, which still doesn't show me any partitions. Am 26.03.2013 14:07, schrieb erik quanstrom: > On Tue Mar 26 08:52:50 EDT

Re: [9fans] Root file system from usb-hdd on raspberry pi

2013-03-26 Thread Friedrich Psiorz
Hmm, ok, I'm more confused now than before. do I have to put all partitions there? Or just the 'plan9' partition that fdisk created? Where do I set the environment variable? I tried adding sdB0parts='p1 0 38913' to cmdline.txt, but nothing happens. Am 26.03.2013 14:56, schrieb erik quanstrom: > On

Re: [9fans] Root file system from usb-hdd on raspberry pi

2013-03-26 Thread Friedrich Psiorz
No I get these errors when booting: can't update /dev/sdXX/data's devsd partition table for nvram: partition name already in use: "part nvram 63 64" can't update /dev/sdXX/data's devsd partition table for fossil: partition name already in use: "part fossil 64 99518702" can't update /dev/sdXX/data'

Re: [9fans] Root file system from usb-hdd on raspberry pi

2013-03-26 Thread Friedrich Psiorz
Also, the disk still doesn't show up as sdB0 or sdXX or something like that in /dev; still only sdU0.0 Do I have to do something to make sdB0/sdXX appear? Am 26.03.2013 16:53, schrieb Friedrich Psiorz: > No I get these errors when booting: > > can't update /dev/sdXX/data'

Re: [9fans] Root file system from usb-hdd on raspberry pi

2013-03-27 Thread Friedrich Psiorz
I think that's already partly being done, I found /srv/partfs.sdXX, I just need to mount that. Can I do something in the kernel command line to mount it automatically, so I can get my root fileystem from there? Sorry, I'm still very confused by the whole boot process. Am 27.03.2013 08:59, schrieb

Re: [9fans] lpdaemon

2013-06-05 Thread Friedrich Psiorz
I think your code is wrong. If the NUL byte is present, it doesn't do anything, however if it is not there, strlen will read more than it should, and possibly try to read some invalid address. In case info.host is a fixe size array, a simple info.host[sizeof info.host - 1] = 0; would do. Am 05.06.

Re: [9fans] mk: the `D' flag

2013-06-18 Thread Friedrich Psiorz
I wouldn't. It doesn't make sense to me to delete the old, working executable of my program just because I messed up when I made a change. Am 18.06.2013 15:50, schrieb dexen deVries: > in mk(1), why is the `D' flag (if the recipe exits with a non-null status, > the > target is deleted) optional,

Re: [9fans] a simple chess board for plan9

2013-09-03 Thread Friedrich Psiorz
Great work! Maybe the mkfile could be improved a bit; I had to copy the images manually. And since you're asking for comments on your C style ... imho, most of it looks really good; maybe you could try to avoid deep nesting of control structures. if(cond1) { if(cond2) { .

Re: [9fans] p9p mk(1) syntax

2013-09-07 Thread Friedrich Psiorz
I don't think that the behavior is really unexpected ... the `{...} part is interpreted by mk, but not the text between the braces. You probably need to quote it if it contains braces itself. Am 06.09.2013 13:03, schrieb dexen deVries: > in p9p mk, this works as expected: > foo = `{echo bar} > >

Re: [9fans] acme/sam language question

2013-10-29 Thread Friedrich Psiorz
this should do the trick /A/+#0;/B/-#0 g/CC/ s/CC/DD/g p ~Fritz Am 29.10.2013 16:31, schrieb Rudolf Sykora: > Hello, > > how can I set a dot from after A to before B, then make a global > substitution, within thus set dot, of CC to DD and print the resulting > text? > > I.e., if there isn't an

Re: [9fans] acme/sam language question

2013-10-31 Thread Friedrich Psiorz
, schrieb Rudolf Sykora: > On 30 October 2013 08:47, Rudolf Sykora wrote: >> On 29 October 2013 17:56, Friedrich Psiorz wrote: >>> this should do the trick >>> >>> /A/+#0;/B/-#0 >>> g/CC/ s/CC/DD/g >>> p >> >> Thanks for the suggesti

Re: [9fans] P9P font server

2013-12-13 Thread Friedrich Psiorz
I would really like to have fontsrv in native Plan 9. It's nice to be able to simply download a font or copy it from a unix system and use it without going through conversion. It would also de-facto introduce a usable interface to rendering ttf fonts on the fly. This could be a nice feature in many

Re: [9fans] P9P font server

2013-12-14 Thread Friedrich Psiorz
r TrueType fonts.. > The OS X is probably doing something similar with Apple's APIs > > > On Fri, Dec 13, 2013 at 7:26 PM, Friedrich Psiorz <mailto:f.psi...@gmx.de>> wrote: > > I would really like to have fontsrv in native Plan 9. It's nice to be >

Re: [9fans] P9P font server

2013-12-14 Thread Friedrich Psiorz
http://mirtchovski.com/p9/freetype/ This runs fine on Plan 9. Am 14.12.2013 14:13, schrieb erik quanstrom: > On Sat Dec 14 08:12:42 EST 2013, f.psi...@gmx.de wrote: >> I was aware of that. But freetype2 exists for Plan 9, it's used in >> ttf2subf. Probably a lot of the code from the X11 version c

Re: [9fans] P9P font server

2013-12-14 Thread Friedrich Psiorz
imho, the brilliant thing about fontsrv is that you don't have to know which fonts you are "interested in", at which sizes etc. You can't get that kind of flexibility if you statically convert. It's not just about having smooth fonts in Plan 9; it's about being able to deal with true type fonts in

Re: [9fans] Acme: spaces in file names

2013-12-15 Thread Friedrich Psiorz
I think the reason is that filenames with spaces are not very common in Plan 9. If you're running plumber, you can probably adjust the regular exressions for file matching in your $HOME/lib/plumbing file. If you don't have that file yet: 9p read plumb/rules >$HOME/lib/plumbing ~Fritz Am 15.12.20

Re: [9fans] Acme: spaces in file names

2013-12-15 Thread Friedrich Psiorz
e a whole day to do. I'd bet it would take > someone famaliar with the code an hour. My time, like all of yours, is > very limited. I will make the change when my time permits. My hope is > that someone more familiar with the code can make it before then. > > Thanks. > &g

Re: [9fans] Acme: spaces in file names

2013-12-15 Thread Friedrich Psiorz
the paper "Plumbing and other utilities" to get more details. ~Fritz Am 15.12.2013 17:38, schrieb Blake McBride: > I would greatly appreciate it if you could give me the specifics on this. > > Thanks! > > Blake > > > > On Sun, Dec 15, 2013 at 10:26 AM, Fri

Re: [9fans] Acme: tab size

2013-12-15 Thread Friedrich Psiorz
The acme manpage tells me: Set the $tabstop environment variable. Am 15.12.2013 20:23, schrieb Blake McBride: > Greetings, > > I noticed tab size on sam is 8 characters. This is somewhat standard. > Acme uses 4 (which is perhaps more reasonable in many circumstances). > How can one control the

Re: [9fans] 9Front network (driver?) issue

2013-12-23 Thread Friedrich Psiorz
The DEL key should do. Am 23.12.2013 15:59, schrieb Blake McBride: > On Sun, Dec 22, 2013 at 10:52 PM, > wrote: > > the fdisk command i gave you could read the partition table fine. > (it didnt register them, just print) > > the code thats handling t

Re: [9fans] acme: displaying one file in two windows

2013-12-26 Thread Friedrich Psiorz
Zerox command. In the tag. ~Fritz Am 27.12.2013 04:20, schrieb Blake McBride: > Greetings, > > Sometime it is convenient to display the one file in two independent > windows. Naturally, changes in one window would be reflected in the > other. This is especially useful if you have a large file

Re: [9fans] acme autocompletion

2014-02-11 Thread Friedrich Psiorz
Hi! I haven't had time to try out your completion system yet, but one thing I could imagine would be a single completion window for a whole acme session. While you type in any other window, it gives you suggestions for completions/insertions. You insert simply by right clicking in the completion w