okay, yeah, .SH calls .RT calls .BG calls .rn FJ FS
you could drop -ms but you probably don't want that either...
you could use ms2html :)
you could write your own macros :)))
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups
>/dev/null |[2] grep FS
you can see that the FS macro is being messed with. I'll dig further...
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T530822947a31ba06-M34d92b1177885d8baf1d0ab6
Delivery options: ht
; read -c 72 /dev/wctl
rio(4)
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tf13f657beb7b12c0-Ma0337129de0681f834f7e7c7
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
I think you probably want:
plumb start rc -c 'kertex/divps '$wdir'/'$0' | page -w'
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tce7385fe52c532d6-M95c2618ac3b3dd2f17c75c24
Delivery options: https://9fans.topicbox.com
dow:
^echo w; window troff $% '|' page
The last shell command is remembered, so subsequent
write'n'reviews are a simple ^ thereafter.
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tce7385fe52c532d6-Me347adb350456cff65756
Someone in another forum chased down the sdf thing.
Here is an example:
https://fontforge.org/downloads/Big5.txt
and here is the format:
https://manpages.ubuntu.com/manpages/jammy/man1/ttf2tfm.1.html#subfont%20definition%20files
Hope that helps,
umbraticus
rge.org/archive/generate.html
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T5091c0751c09-M45d4ec39bfb47669e432a2e1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Here are my notes & a script for troff fonts:
http://runjimmyrunrunyoufuckerrun.com/fonts/
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T5091c0751c09-M44d0b0baa163a1282f8973ac
Delivery options: h
hmm, interesting. ^ is indeed very useful;
making it work in sam -d is probably the
correct thing to do but here's a quick hack.
(9front specific, tho you can probably figure
out another way to pretend you typed.)
umbraticus
; fn f{echo ,x/red/c/blue >/dev/kbdin}
; sam -d
-.
a
I hired a
I mean, if you really want it, you can
,|awk '{print NR "\t" $0}'
then
,x/^[0-9]+ /d
or something.
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tc5c492077a61275c-Mf73fea5ddae7354548491a99
Delivery opti
Don't forget Esc cuts a selection.
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T06d3bdd208f5a90b-Maa4736ab2beb35086413d070
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
= prints line number
3,7d deletes some lines
Setting and working with the mark may also suit your problem
find a place, press k, find another place, then ',.d or .,' deletes
everything in between. Multiple marks à la ed would be a nice
addition to sam.
umbraticus
P.S. Here's a patch to make
ick/chord with my left hand on the thinkpad's trackpad
buttons while rolling the ball with my right hand, but
chording with the trackball buttons is also fine. The
scrollwheel thing is pretty nice too.
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.top
Trackballs also often have more than two real buttons.
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T49f3cceea70d2b61-Mba1f4f1caaa4c6c3a0189de1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
are confident with the first part of a word
look(1) could be handy. You could also write a filter
that transposes letters until it finds a match in
/lib/words. Some toys along these lines:
http://runjimmyrunrunyoufuckerrun.com/rc/anagram
http://runjimmyrunrunyoufuckerrun.com/rc/bee
umbraticus
> autocorrect in sam
not really but you can ,>spell
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Mbb8fbc041f3be84400daf880
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
> How to write UTF-8 caracters
keyboard(6)
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T0d54d4b593281935-Mb9d3caaf9c167393db658f43
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
$#*){
case 0
xargs -n1 plumb Can someone point me to a specific resource that explains
> these expressions in more detail than does the sam man and
> sam tut?
http://sam.cat-v.org/ has a cheat sheet & some other
resources. What is sam_tut.pdf mi
> I've to think about the plumber and the the named pipe to be able
> to plumb a file and bring to the front a sam instance if it has
> the file open, moving the file's window to the front with dot set at
> the address, if one is given.
I have this:
diff -u /sys/src/cmd/samterm/plan9.c ./plan9.c
> bash: fg: %: no such job
The % is a prompt: ignore it.
I think your script boils down to something like:
,x/\*|^ +| +$/d
,x/ +//c/
,x/[‘‘’’“”‘’]/c/"
,x/\\p|\\b/c/\n\n\n
,x/\n\n+/c/\n
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topi
e, you will have to set dot before running ^
but this allows more flexibility, eg. you can apply the edits
to a section of a document instead of always the whole thing.
One step at a time, though.
It would be neat if you could use ! ^ < > _ | in conjunction with X…
you probably want to use ssam (no wq required)
what isn't working? some suggestions:
,x/‘‘|’’/s//"/ and ,x/‘|’/s//"/ → ,x/[“‘’”]/c/"
.x s/\*//g → ,x/\*/d
,x/^ +/s/// → ,x/^ +/d
,x/ +$/s/// → ,x/ +$/d
,x/ +/s// / → ,x/ +/c/ /
take your time, learn the language, &
or:
,x/^/i/echo "
,x/$/i/"
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Te7fcdc06a68bb777-M3a70c9ddc3e626951d6349fb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
to use the rio snarf buffer directly.
There is a patch for this floating around somewhere: perhaps
whoever wrote it can chime in.
Below is a quick illustration of the other thought I had,
having label reflect the most recently topped buffer, in
case you are or anyone else is interested.
umbraticus
t recently active buffer.
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tf1e211daf823c0e0-M1e8dc73ec3b6f44f7e047e5b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
> This patch adds a command 'l' to set the label, and sets it at
> startup as described above.
meh; you can already run !label blah from inside sam
not sure the label-on-startup adds much…
but I guess you could just add that at the call to initdraw.
umbr
nothing's tying you to sam syntax:
,|awk '{print NR "\t" $0}'
then undo.
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T716c5aa0e2aa8a27-Mc258d9e136ffe16b7aeb04fa
Delivery options: https://9fans.topicbox.com/gr
uld be
to implement windows-style Ctrl+←/→ word boundary jumping,
maybe even Shift to select…
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T716c5aa0e2aa8a27-M962e5aa87312fb3af7063d84
Delivery options: https://9fans.topicbox.com/gro
back to buffer. Make use of
<>!| commands and so on... standard ^W ^U ^A ^E stuff... plumbing,
searching, command language. rio window placement mostly automated.
I have sam just open files fullscreen automatically, which is quite nice…
umbraticus
-
.LL is to early for tbl but even .ll doesn't do anything in the following.
; {echo .ll 28c; echo .sp 4c; echo .TS; read -c 30 https://9fans.topicbox.com/groups/9fans/T8da23d19a22963e2-M3c72233bbcfbd7760d9d35a1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
> I tried ^ b, it has the same effect as pg down. It doe snot take me to the
> bottom
Yeah. Are you pressing Del to kill the cat?
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T13b7a14fa28da183-M3f2ab540cd456d40b6
; 9fs docs.google.com
srv: timeout establishing connection to net!docs.google.com!9fs
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T7414e0ecd12c8643-Me5e7390dda458d519a62ae21
Delivery options:
http://9p.io is what you want. Your example: http://9p.io/magic/man2html/1/acme
see also http://man.cat-v.org
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tda617782a458b1cf-M4b92ae63af31badd6999bebf
Delivery options:
I use the instructions here: http://fqa.9front.org/fqa8.html#8.4.8.2
to drawterm past the firewall at work; perhaps useful?
umbraticus
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T438cfac2481e3602-Md27f232343773d1082ca85e8
Delivery
I use this with lp(1):
HP Color LaserJet Pro MFP M281fdw
I just looked for something that could speak postscript.
umbraticus
> you'll need to install hubfs first
not true; just:
srv -c tcp!107.191.50.176!9997 gridchat /n/chat
then read and write from /n/chat/chat in whatever manner you please.
info trav
sysfatal("couldn't open /dev/wctl");
for(;;){
if((m = plumbrecv(port)) == nil)
sysfatal("error on plumb port %s", argv[1]);
plumbfree(m);
fprint(wctl, "unhide");
fprint(wctl, "current");
}
}
umbraticus
ed something like this?
umbraticus#include
#include
#include
enum{LEN = 128};
int
match(int n, char *label)
{
int fd, len;
char s[LEN];
snprint(s, LEN, "/dev/wsys/%d/label", n);
if((fd = open(s, OREAD)) < 0)
return 0;
39 matches
Mail list logo