sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
* Re: 9term/9wm hacks
@ 1995-05-01  8:18 Steve_Kilbane
  0 siblings, 0 replies; 3+ messages in thread
From: Steve_Kilbane @ 1995-05-01  8:18 UTC (permalink / raw)
  To: hc05; +Cc: sam-fans

> From: hc05@summitis.com
> I've loaded the patches to both 9term & 9wm on an RS/6000 running AIX
> 3.2.5.  9term worked fine, but I had trouble with 9wm.  I lost the
> ability to use the mouse to anything but bring up the root menu or a
> 9menu.  The mouse would not work for scrolling, selecting text, or
> bringing up a window.

Interesting. I suspect the either the select() or FIFO handling, since
they seem like areas AIX could be broken in, but since I've never used
AIX I can't comment. select() seems the most likely, since if there
was a FIFO problem it would probably hang completely. Does anyone
with more AIX experience have any pointers?

steve


^ permalink raw reply	[flat|nested] 3+ messages in thread

* 9term/9wm hacks
@ 1995-04-28 20:41 hc05
  0 siblings, 0 replies; 3+ messages in thread
From: hc05 @ 1995-04-28 20:41 UTC (permalink / raw)
  To: Sam mailing list

>Subject: 9wm/9term cmdpipes
>X-Face: Iqsa(US9p?)Y^W+6Ff[Z]<t?\A!eaL'DG{20*#{C1;'Ct&}L}B^/1(aYI@hP)4!<}7D=2gm
>	8!$T`8QNfK<te\20%A\`wm*wa2"^Up*Qs"X}KeV*3XeB2te&sKp*t`N;^BDh[6=K{ZBE=O>rM"uFE)
>	lFDjag1e]\/#2
>Content-Type: text
>Content-Length: 30278
>	8!$T`8QNfK<te\20%A\`wm*wa2"^Up*Qs"X}KeV*3XeB2te&sKp*t`N;^BDh[6=K{ZBE=O>rM"uFE)
>	lFDjag1e]\/#2
>
>A while ago, I mentioned some hacks I'd done to 9term to add a
>command pipe, like sam's. Rich $alz commented that 9wm could do
>with something similar, and I couldn't resist. This is the
>result, including patches for both 9term and 9wm. There are
>probably bugs, but they work ok for me. :-) A README file
>is included.
>
>Steve

I've loaded the patches to both 9term & 9wm on an RS/6000 running AIX
3.2.5.  9term worked fine, but I had trouble with 9wm.  I lost the
ability to use the mouse to anything but bring up the root menu or a
9menu.  The mouse would not work for scrolling, selecting text, or
bringing up a window.  I had to write to the pipe to bring up an xterm
so I could exit.  I otherwise like the idea, though, and am not
complaining.  I think I'll use the 9term pipe to see if I can work elm
from a 9menu.

Thanks,
Beirne


-- 
-------------------------------------------------------------------------------
Beirne Konarski                 | Reading maketh a full man, conference a
beirnek@summitis.com            | ready man, and writing an exact man.
"Untouched by Scandal"          |       -- Francis Bacon
-------------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

* 9term/9wm hacks
@ 1995-02-07 12:59 Steve_Kilbane
  0 siblings, 0 replies; 3+ messages in thread
From: Steve_Kilbane @ 1995-02-07 12:59 UTC (permalink / raw)
  To: sam-fans

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2275 bytes --]

I've been playing with some small hacks to 9term and 9wm which I
thought I'd mention to the list, since they might be of interest.
Basically, I was wondering how some of the characteristics of
8½ and Help could be implemented using the existing arrangement.
Basically I was after some level of programmability without having
to change the tools much (or do much work:-)).

In 9term, I've implemented command inputs via a pipe, similar to
the command pipe sam uses. Each 9term creates a named pipe with
the name /tmp/.9terms.$USER.$DISPLAY/$WINDOWID. Characters read
from this pipe get sent to the shell, and also appear on the
screen. The directory that the pipes are created in is mode 700,
as a nod towards security, but how safe this is, I don't know.

In 9wm, each time a window is made current the file
/tmp/.9wm-windows is re-written, containing a line for each
window. Each line contains <window label><space><windowid>.
The lines are written in the same order as the window focus
list, so the current window is the first line, the previous
current window is the second line, and so on.

From here on in, it's just script writing. The most common
script determines which 9term was the most recently used,
and sends its arguments to that 9term's pipe. Another
script is similar, but uses xv_get_sel to determine text
that was last snarfed, and uses that in the command.

Scripts are normally run from 9menu popped up from the
main 9menu. One contains the commands used while producing
a document with latex, another has commands often used
while building an instance of the current program I'm
working on, and a third pops up the last 15 commands from
$history, for re-execution. Although I haven't done this,
9menus could be created which send commonly-used commands
to the current instance of sam (personally, I don't have
many sam commands I use a lot).

It's not a perfect system. Security is bound to be a problem,
the 9wm file should have a more unique name, and if you send
text to a 9term pipe it doesn't currently set dot first, so
the text appears in the wrong place. The command still works,
though. Finally, the hacks aren't to the most recent version
of 9term (they're to 1.3.2, and I know that matty's up to
at least 1.5).

Comments are welcome.

steve


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-05-01  7:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-05-01  8:18 9term/9wm hacks Steve_Kilbane
  -- strict thread matches above, loose matches on Subject: below --
1995-04-28 20:41 hc05
1995-02-07 12:59 Steve_Kilbane

sam-fans - fans of the sam editor

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/sam-fans

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 sam-fans sam-fans/ http://inbox.vuxu.org/sam-fans \
		sam-fans@hawkwind.utcs.toronto.edu
	public-inbox-index sam-fans

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.sam-fans


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git