Re: [9fans] Terminal possibliities...

2016-10-02 Thread James A. Robinson
As Chris indicated, the keyboard modifiers let you simulate buttons 2 or
3.  The remaining issue is the chording combinations, selecting with 1 and
then clicking 2 (cut) or 3 (paste), or having some copied text and using
2-1 to execute with args.  The patch I mentioned helps with those, letting
you sweep left and right to cut, paste, or execute with args.

>From the man page diff:

3-finger-swipe left to cut (cmd+x),
3-finger-swipe right to paste (cmd+v),
3-finger-swipe up to copy (cmd+c),
3-finger-swipe down to exec with arg (2-1 chord),
3-finger-tap to middle-click.

On Sun, Oct 2, 2016, 19:48  wrote:

> > I believe that it is documented somewhere on Russ Cox’s website or on
> plan9port.
>
> Sorry, I thought you were referring to the swipe gestures introduced in the
> link you quoted.
>
> sl
>
>


Re: [9fans] Terminal possibliities...

2016-10-02 Thread sl
> I believe that it is documented somewhere on Russ Cox’s website or on 
> plan9port.

Sorry, I thought you were referring to the swipe gestures introduced in the
link you quoted.

sl



Re: [9fans] Terminal possibliities...

2016-10-02 Thread Alex Musolino
>
> Is there any interest in putting these p9port style keyboard modifiers
> into p9bl or 9front?
>

9front has Shift+RMB for emulating MMB.


Re: [9fans] Terminal possibliities...

2016-10-02 Thread Chris McGee
I believe that it is documented somewhere on Russ Cox’s website or on plan9port.

Basically, you can hold down the ctrl or alt keys while clicking/dragging to 
simulate the same action with the middle or right mouse button. I think that 
chording is possible too by holding down both ctrl and alt at the same time. 
Although, I’m not sure how you would do chording with the left and middle or 
left and right. Maybe you can use shift in those cases.

I’m wondering if this kind of thing has been discussed before. Perhaps there 
are good reasons to keep the functionality out of p9bl or 9front?

Chris

> On Oct 2, 2016, at 10:28 PM, s...@9front.org wrote:
> 
> Could you explain exactly what the modifiers are and how they work?
> 
> sl
> 




Re: [9fans] Terminal possibliities...

2016-10-02 Thread sl
> Is there any interest in putting these p9port style keyboard modifiers into 
> p9bl or 9front?

Could you explain exactly what the modifiers are and how they work?

sl



Re: [9fans] Terminal possibliities...

2016-10-02 Thread Chris McGee
Is there any interest in putting these p9port style keyboard modifiers into 
p9bl or 9front?

It might be a good backup for when I don’t have a true three button mouse 
kicking around.

Chris

> 
> Since I'm on a macbook with a one-button touchpad I end up using
> the keyboard modifiers plus the patch submitted by djeannot24 to
> plan9port (see https://codereview.appspot.com/6115053 
> ) to help get
> around the lack of buttons.
> 
> Jim
> 



Re: [9fans] plan9.bell-labs.com hates AppleWebKit?

2016-10-02 Thread sl
> So... Does Alcatel-Lucent have a problem with AppleWebKit
> users on principle?

Interesting reversal.

sl



[9fans] 9p - meaning of iounit

2016-10-02 Thread Chris McGee
Hello All,

I am learning the 9p protocol and implementing a 9P server. After reading the 
9p manual page, the types of messages and much of the overview is clear. There 
are a number of items that are less clear.

For example, it took some time to figure out how to provide a directory 
structure on a Tread.

Lately, I’m looking at the “iounit.” Initially, I had thought of it as a way to 
give the size of a file on Topen. After some testing I realized that the 
network subsystem in plan9 is expecting the iounit to be large enough to write 
commands into a /net/tcp ctl file. With a small iounit, the network subsystem 
truncates the commands, such as “connect xyz|1234” to match the size of the 
iounit.

So, what is this mysterious iounit? Is there another man page or plan9 document 
that describes it in more detail?

Thanks,
Chris


[9fans] plan9.bell-labs.com hates AppleWebKit?

2016-10-02 Thread James A. Robinson
So... Does Alcatel-Lucent have a problem with AppleWebKit
users on principle?

It looks to me as though my problem with browsing around
under http://plan9.bell-labs.com/sources/ (and other subpages)
is because the server doesn't like the User-Agent string:

$ telnet plan9.bell-labs.com 80
Trying 135.104.24.16...
Connected to plan9.bell-labs.com.
Escape character is '^]'.
GET /sources/contrib/ HTTP/1.1
Host: plan9.bell-labs.com
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
DNT: 1
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

HTTP/1.1 200 OK
Connection closed by foreign host.

And here it is again w/o the User-Agent string:

$ telnet plan9.bell-labs.com 80
Trying 135.104.24.16...
Connected to plan9.bell-labs.com.
Escape character is '^]'.
GET /sources/contrib/ HTTP/1.1
Host: plan9.bell-labs.com
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
DNT: 1
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

HTTP/1.1 200 OK
Server: Plan9
Date: Sun, 02 Oct 2016 17:29:09 GMT
Connection: close
Last-Modified: Fri, 14 Mar 2014 22:14:11 GMT
Content-Type: text/html

[... proper body returned...]

I tried playing around with the UA value and found that if I change
AppleWebKit to something else such as AppleWebKis I get a
response...

Jim


Re: [9fans] Terminal possibliities...

2016-10-02 Thread James A. Robinson
On Sun, Oct 2, 2016 at 2:13 AM Richard Miller <9f...@hamnavoe.com> wrote:
> I've tried accessing plan 9 using vnc from a touchscreen tablet,
> and yes it does suck. Rio and acme really do want a mouse.
>
> With a multitouch screen it's possible somebody could think up a
> new gesture-based plan 9 interface which would work as well as mouse
> chording.

Since I'm on a macbook with a one-button touchpad I end up using
the keyboard modifiers plus the patch submitted by djeannot24 to
plan9port (see https://codereview.appspot.com/6115053) to help get
around the lack of buttons.

Jim


Re: [9fans] Terminal possibliities...

2016-10-02 Thread Richard Miller
> i'm sure that touchpad will suck for chording.

I've tried accessing plan 9 using vnc from a touchscreen tablet,
and yes it does suck.  Rio and acme really do want a mouse.

With a multitouch screen it's possible somebody could think up
a new gesture-based plan 9 interface which would work as well
as mouse chording.