Hi Mart, maybe I was waiting for someone asking this question ;)
Let me ask: "Why?" or better "What for?". What is your use-case for SAM? SAM is sort-of part of the Plan9 OS as an integrated element of the whole PLAN 9 concept. If you want a lean system, you can have PLAN9 & SAM on Raspberry. A port exists. If you use TinyCore already, you are much more on the Linux side. I am courious to hear your use case or ideas why you would want to use specifically SAM (or ACME?) As Plan9 makes specific and differenciated use of the mouse (three buttons, chordings...) this doesn't seam ideal for DOS. Brant has written MOUSKEYS which is a nifty implementation of the mouse - but not what PLAN9 does. (Also: graphic vs text oriented display) If you are just looking for a good text editor, you can go for VDE or FLEX or something like E (4k size...). It is just my guess that DOS is a very different concept from UNIX (or PLAN9, as a sort-of-derivative) ... ( I am not a programmer or so, just using FreeDos for text editing ) regards, Thomas > On Mon,20210621- week25, at 05:41, Mart Zirnask <[email protected]> wrote: > > Hello, > I'm a new subscriber, not a programmer, but interested in lean systems > -- and also a person with a DOS-y childhood. Now I'm getting to know > FreeDOS, reading the mailing list archives. It is wonderful to find > such a lively community around an "old" system (as in, it being a > MS-DOS derivate) like this. > > (Also, Jim, I am taking time to watch your C tutorials on Youtube. You > seem to be a really wonderful, humble person. A great teacher.) > > Also, having used Tiny Core Linux as a daily driver, I am blown away > by how fast FreeDOS boots! > > However, I am a fan of the Sam text editor, originally developed for > the Plan 9 OS. It has a CLI line editor mode ('sam -d' -- similar to > 'ed', but purposefully with a few less commands). Sam has been ported > to Windows, but on FreeDOS I got the "This program cannot be run in > DOS mode" error. > > Unfortunately, I am not capable enough to try building it for FreeDOS > myself -- so I was wondering if maybe somebody could help? > > A current Win32 port built with MinGW (+sources) can be found here: > http://sam.cat-v.org/_files/win32_sam.zip > > Also, here are Rob Pike's original papers on Sam and its (IMO) main > selling point, structural regular expressions: > http://doc.cat-v.org/plan_9/4th_edition/papers/sam/ > http://doc.cat-v.org/bell_labs/sam_lang_tutorial/sam_tut.pdf > http://doc.cat-v.org/bell_labs/structural_regexps/se.pdf > > As a workaround, I could also use Edlin in place of Sam. > But is there a way to turn line numbers off in Edlin? > This would be great for writing things other than code. > > Thanks very much in advance, > also, thanks again for all the devs (Jim & others) behind FreeDOS! > > Greetings from Estonia, > Mart > > > _______________________________________________ > Freedos-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freedos-user > _______________________________________________ Freedos-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-user
