summaryrefslogtreecommitdiff
path: root/acme
diff options
context:
space:
mode:
Diffstat (limited to 'acme')
-rw-r--r--acme/acid/Acid.disbin0 -> 360 bytes
-rw-r--r--acme/acid/Acid0.disbin0 -> 117 bytes
-rw-r--r--acme/acid/guide2
-rw-r--r--acme/acid/readme12
-rw-r--r--acme/bin/guide5
-rw-r--r--acme/bin/readme25
-rw-r--r--acme/dis/adiff.disbin0 -> 2638 bytes
-rw-r--r--acme/dis/agrep.disbin0 -> 514 bytes
-rw-r--r--acme/dis/awd.disbin0 -> 455 bytes
-rw-r--r--acme/dis/cd.disbin0 -> 891 bytes
-rw-r--r--acme/dis/new.disbin0 -> 1157 bytes
-rw-r--r--acme/dis/spout.disbin0 -> 1481 bytes
-rw-r--r--acme/dis/win.disbin0 -> 9295 bytes
-rw-r--r--acme/dis/winm.disbin0 -> 9454 bytes
-rw-r--r--acme/edit/a.disbin0 -> 4287 bytes
-rw-r--r--acme/edit/c.disbin0 -> 4481 bytes
-rw-r--r--acme/edit/d.disbin0 -> 314 bytes
-rw-r--r--acme/edit/e.disbin0 -> 3986 bytes
-rw-r--r--acme/edit/g.disbin0 -> 4625 bytes
-rw-r--r--acme/edit/guide4
-rw-r--r--acme/edit/i.disbin0 -> 4286 bytes
-rw-r--r--acme/edit/p.disbin0 -> 4731 bytes
-rw-r--r--acme/edit/pipe.disbin0 -> 6305 bytes
-rw-r--r--acme/edit/readme31
-rw-r--r--acme/edit/x.disbin0 -> 5052 bytes
-rw-r--r--acme/mail/Mail.disbin0 -> 20058 bytes
-rw-r--r--acme/mail/Mailpop3.disbin0 -> 18989 bytes
-rw-r--r--acme/mail/guide5
-rw-r--r--acme/mail/mkbox.disbin0 -> 263 bytes
-rw-r--r--acme/mail/readme29
30 files changed, 113 insertions, 0 deletions
diff --git a/acme/acid/Acid.dis b/acme/acid/Acid.dis
new file mode 100644
index 00000000..05d87c4f
--- /dev/null
+++ b/acme/acid/Acid.dis
Binary files differ
diff --git a/acme/acid/Acid0.dis b/acme/acid/Acid0.dis
new file mode 100644
index 00000000..afb83b88
--- /dev/null
+++ b/acme/acid/Acid0.dis
Binary files differ
diff --git a/acme/acid/guide b/acme/acid/guide
new file mode 100644
index 00000000..0fc99511
--- /dev/null
+++ b/acme/acid/guide
@@ -0,0 +1,2 @@
+Acid pid
+Acid -l alef -l symsfile pid
diff --git a/acme/acid/readme b/acme/acid/readme
new file mode 100644
index 00000000..fcf343be
--- /dev/null
+++ b/acme/acid/readme
@@ -0,0 +1,12 @@
+Capital A Acid is a rudimentary acme interface to the debugger acid.
+It uses a win to provide an interactive window for acid. In that window,
+a couple of extra acme-specific features are enabled:
+
+w(command)
+ runs the command and places its output in a new window.
+ e.g. w(lstk()) places the stack trace in a distinct window.
+
+Also, in any such window, text executed with button 2 is
+presented as input to acid in the main Acid window. Thus, for
+example, one may evaluate variables presented in a stack trace
+by `executing' it with button 2.
diff --git a/acme/bin/guide b/acme/bin/guide
new file mode 100644
index 00000000..31cea12e
--- /dev/null
+++ b/acme/bin/guide
@@ -0,0 +1,5 @@
+win
+new command ...
+aspell file
+adiff file1 file2
+adict -d oed
diff --git a/acme/bin/readme b/acme/bin/readme
new file mode 100644
index 00000000..941099e8
--- /dev/null
+++ b/acme/bin/readme
@@ -0,0 +1,25 @@
+This directory and its subdirectory $cputype are always mounted at
+the end of /bin for programs run from acme. They hold a collection
+of small acme-specific applications:
+
+win [command]
+ Create an acme window to serve as a terminal, analogous
+ to xterm. By default, it runs the shell, rc, but it works with
+ any interactive program, e.g. hoc. Within the window,
+ commands executed with button 2 are 'executed' by sending
+ their text to the standard input of the command, appending
+ a newline if necessary.
+new command
+ Run the non-interactive command, placing its standard and
+ diagnostic output in a new window.
+aspell file
+ Run spell on the file, labeling the output with addresses so
+ misspelled words can be found in context using button 3.
+adiff file1 file2
+ Run diff on the files, labeling the output with addresses so
+ changes can be found in context using button 3.
+adict
+ Interactive version of dict(1). Button 3 looks up words and
+ may be applied to any word in any adict window.
+ When a word has multiple definitions, indicate the number
+ (as in acme Mail) to disambiguate.
diff --git a/acme/dis/adiff.dis b/acme/dis/adiff.dis
new file mode 100644
index 00000000..c8e3bba8
--- /dev/null
+++ b/acme/dis/adiff.dis
Binary files differ
diff --git a/acme/dis/agrep.dis b/acme/dis/agrep.dis
new file mode 100644
index 00000000..a51e7534
--- /dev/null
+++ b/acme/dis/agrep.dis
Binary files differ
diff --git a/acme/dis/awd.dis b/acme/dis/awd.dis
new file mode 100644
index 00000000..9b9e5765
--- /dev/null
+++ b/acme/dis/awd.dis
Binary files differ
diff --git a/acme/dis/cd.dis b/acme/dis/cd.dis
new file mode 100644
index 00000000..c3acf4f5
--- /dev/null
+++ b/acme/dis/cd.dis
Binary files differ
diff --git a/acme/dis/new.dis b/acme/dis/new.dis
new file mode 100644
index 00000000..a803bc73
--- /dev/null
+++ b/acme/dis/new.dis
Binary files differ
diff --git a/acme/dis/spout.dis b/acme/dis/spout.dis
new file mode 100644
index 00000000..72732ad4
--- /dev/null
+++ b/acme/dis/spout.dis
Binary files differ
diff --git a/acme/dis/win.dis b/acme/dis/win.dis
new file mode 100644
index 00000000..ed473574
--- /dev/null
+++ b/acme/dis/win.dis
Binary files differ
diff --git a/acme/dis/winm.dis b/acme/dis/winm.dis
new file mode 100644
index 00000000..55fe635e
--- /dev/null
+++ b/acme/dis/winm.dis
Binary files differ
diff --git a/acme/edit/a.dis b/acme/edit/a.dis
new file mode 100644
index 00000000..992f7caf
--- /dev/null
+++ b/acme/edit/a.dis
Binary files differ
diff --git a/acme/edit/c.dis b/acme/edit/c.dis
new file mode 100644
index 00000000..48a7ef3b
--- /dev/null
+++ b/acme/edit/c.dis
Binary files differ
diff --git a/acme/edit/d.dis b/acme/edit/d.dis
new file mode 100644
index 00000000..9c77295a
--- /dev/null
+++ b/acme/edit/d.dis
Binary files differ
diff --git a/acme/edit/e.dis b/acme/edit/e.dis
new file mode 100644
index 00000000..8faa3808
--- /dev/null
+++ b/acme/edit/e.dis
Binary files differ
diff --git a/acme/edit/g.dis b/acme/edit/g.dis
new file mode 100644
index 00000000..15bb20ce
--- /dev/null
+++ b/acme/edit/g.dis
Binary files differ
diff --git a/acme/edit/guide b/acme/edit/guide
new file mode 100644
index 00000000..5beced2e
--- /dev/null
+++ b/acme/edit/guide
@@ -0,0 +1,4 @@
+e file | x '/regexp/' | c 'replacement'
+e 'file:0,$' | x '/.*word.*\n/' | p -n
+e file | pipe command args ...
+New /absolute/file/name
diff --git a/acme/edit/i.dis b/acme/edit/i.dis
new file mode 100644
index 00000000..4b44420a
--- /dev/null
+++ b/acme/edit/i.dis
Binary files differ
diff --git a/acme/edit/p.dis b/acme/edit/p.dis
new file mode 100644
index 00000000..70202e9b
--- /dev/null
+++ b/acme/edit/p.dis
Binary files differ
diff --git a/acme/edit/pipe.dis b/acme/edit/pipe.dis
new file mode 100644
index 00000000..2e6fc9b1
--- /dev/null
+++ b/acme/edit/pipe.dis
Binary files differ
diff --git a/acme/edit/readme b/acme/edit/readme
new file mode 100644
index 00000000..e4d29579
--- /dev/null
+++ b/acme/edit/readme
@@ -0,0 +1,31 @@
+The programs collected in /acme/edit offer a sam-like command interface
+to acme windows. The guide file
+ /acme/edit/guide
+holds templates for several editing operations implemented
+by external programs. These programs, composed in
+a pipeline, refine the sections of a file to be modified.
+Thus in sam when one says
+ x/.*\n/ g/foo/ p
+in /acme/edit one runs
+ x '/.*\n/' | g '/foo/' | p
+The e command, unrelated to e in sam, disambiguates file names, collects
+lists of names, etc., and produces input suitable for the other tools.
+For example:
+ e '/usr/rob/acme:0,$' | x /oldname/ | c /newname/
+changes oldname to newname in all the files loaded in acme whose names match
+the literal text /usr/rob/acme.
+
+The commands in /acme/edit are
+ e
+ x
+ g
+ c
+ d
+ p
+ pipe (like sam's | , which can't be used for syntactic reasons)
+
+p takes a -n flag analogous to grep's -n. There is no s command.
+e has a -l flag to produce line numbers instead of the default character numbers.
+Its implementation is poor but sufficient for the mundane job of recreating
+the occasional line number for tools like acid; its use with the other commands
+in this directory is discouraged.
diff --git a/acme/edit/x.dis b/acme/edit/x.dis
new file mode 100644
index 00000000..2d488e83
--- /dev/null
+++ b/acme/edit/x.dis
Binary files differ
diff --git a/acme/mail/Mail.dis b/acme/mail/Mail.dis
new file mode 100644
index 00000000..6bd9a65b
--- /dev/null
+++ b/acme/mail/Mail.dis
Binary files differ
diff --git a/acme/mail/Mailpop3.dis b/acme/mail/Mailpop3.dis
new file mode 100644
index 00000000..256da17b
--- /dev/null
+++ b/acme/mail/Mailpop3.dis
Binary files differ
diff --git a/acme/mail/guide b/acme/mail/guide
new file mode 100644
index 00000000..2e23b9e1
--- /dev/null
+++ b/acme/mail/guide
@@ -0,0 +1,5 @@
+Mail /mail/box/$user/stored
+Mail
+Mailpop3
+mkbox /mail/box/$user/new_box
+mail -'x' someaddress
diff --git a/acme/mail/mkbox.dis b/acme/mail/mkbox.dis
new file mode 100644
index 00000000..924fb03d
--- /dev/null
+++ b/acme/mail/mkbox.dis
Binary files differ
diff --git a/acme/mail/readme b/acme/mail/readme
new file mode 100644
index 00000000..9442f57e
--- /dev/null
+++ b/acme/mail/readme
@@ -0,0 +1,29 @@
+Mail is the single program in this directory. Its argument specifies
+the mail box to read, default /mail/box/$user/mbox.
+For example, running
+ Mail /mail/box/$user/stored
+(a line in the guide file) looks at saved mail.
+
+Mail maintains a window containing headers for all the
+messages in the mailbox and monitors the mailbox for new messages.
+Using button 3 to indicate a message number opens
+a window on that message. commands in the mailbox window are
+ Put Write the mailbox back to the file (never done automatically)
+ Mail Make a new message window ready to mail someone.
+ Takes argument names analogously to acme's New.
+ Del Exit Mail, after checking that mailbox isn't modified.
+New messages appear at the top of the window and are highlighted upon arrival.
+(The messages are numbered oldest to newest, the opposite of regular mail.)
+
+Message windows have a simple format: the first line, up to the first tab or newline,
+holds the sender or, when sending, the addressee. Edit the line to change who the
+message goes to. Message windows contain the commands
+ Reply Make a new window to compose a reply to this message
+ Delmesg Delete the message from the screen and from the mailbox
+ Del Delete the window, leaving the message in the mailbox
+ Post Send the message to the addressee
+ Save Save to the named mailbox, default/mail/box/$user/stored
+Save takes a full file name; if that name has no slashes, the file is taken
+to be in /mail/box/$user and must already exist. Use mkbox in the guide to
+create target mailboxes in /mail/box/$user.
+Reply and mail windows contain an obvious subset of the commands.