From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 25 Aug 2012 10:47:15 +1200 From: Andy Elvey To: 9fans@9fans.net Message-id: <50380473.2000001@paradise.net.nz> MIME-version: 1.0 Content-type: multipart/alternative; boundary=------------070601060509000805060305 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 Subject: [9fans] The cons file and consolefs Topicbox-Message-UUID: af5bbb22-ead7-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --------------070601060509000805060305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi all - I've just been looking at the docs for cons and consolefs. I am just **blown away** by how cleanly and elegantly keyboard input is handled in Plan 9! There seems to be *none* of the - um - "less than optimal", to put it mildly - approach of Linux, with its termios and friends. There doesn't even seem to be the need for "readline",as far as I can tell. I assume it would be extremely difficult (if not impossible) to implement this approach to keyboard-handling on Linux - would I be correct in saying that? It's a pity, if that's the case. Anyway, just a bit of praise there for the Plan 9 devs..... :) - Andy --------------070601060509000805060305 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all -
 I've just been looking at the docs for cons and consolefs. I am just **blown away** by how cleanly and elegantly keyboard input is handled in Plan 9!  There seems to be *none* of the - um - "less than optimal", to put it mildly - approach of Linux, with its termios and friends.
There doesn't even seem to be the need for "readline",as far as I can tell. 

I assume it would be extremely difficult (if not impossible) to implement this approach to keyboard-handling on Linux - would I be correct in saying that? It's a pity, if that's the case. 

Anyway, just a bit of praise there for the Plan 9 devs.....  :) 
- Andy    

--------------070601060509000805060305-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 25 Oct 2012 13:56:32 +0100 From: Ethan Grammatikidis To: 9fans@9fans.net Message-ID: <20121025135632.3483b203@vardo.ethans.dre.am> In-Reply-To: <50380473.2000001@paradise.net.nz> References: <50380473.2000001@paradise.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [9fans] The cons file and consolefs Topicbox-Message-UUID: c917c696-ead7-11e9-9d60-3106f5b1d025 On Sat, 25 Aug 2012 10:47:15 +1200 Andy Elvey wrote: > Hi all - > I've just been looking at the docs for cons and consolefs. I am just > **blown away** by how cleanly and elegantly keyboard input is handled in > Plan 9! There seems to be *none* of the - um - "less than optimal", to > put it mildly - approach of Linux, with its termios and friends. > There doesn't even seem to be the need for "readline",as far as I can tell. > > I assume it would be extremely difficult (if not impossible) to > implement this approach to keyboard-handling on Linux - would I be > correct in saying that? It's a pity, if that's the case. > > Anyway, just a bit of praise there for the Plan 9 devs..... :) > - Andy > I think you echo all our thoughts there. As to implementing Plan 9's keyboard handling, am I right in assuming you mean for the purpose of writing programs for such a clean interface? If so, you might want to try linking with the plan9port libraries. Alternatively (and probably better) just write for Plan 9 and import your Linux file systems. Drawterm and 9vx provide very easy access to the host's files and u9fs isn't far behind. Almost all the editing and shell operations I do on my Linux box these days are done via drawterm, the only exception being root-owned files. By the way, if you run p9p acme on Linux as root, don't use win. The pty subsystem crashes or something; you have to reboot before you can open any X term. :D -- This is obviously some strange usage of the word "simple" that I was previously unaware of. From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 25 Oct 2012 09:09:39 -0400 To: 9fans@9fans.net Message-ID: <6cc46f23cfd5f05e05ec74e09d5ecf76@brasstown.quanstro.net> In-Reply-To: <20121025135632.3483b203@vardo.ethans.dre.am> References: <50380473.2000001@paradise.net.nz> <20121025135632.3483b203@vardo.ethans.dre.am> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] The cons file and consolefs Topicbox-Message-UUID: c924bb9e-ead7-11e9-9d60-3106f5b1d025 > By the way, if you run p9p acme on Linux as root, don't use win. The > pty subsystem crashes or something; you have to reboot before you can > open any X term. :D just change the permissions on /dev/ptmx back to g+w. in fact, since you have a case narrowed down, it might be easy to find & fix. =E2=98=BA - erik From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 25 Oct 2012 19:14:55 +0100 From: Ethan Grammatikidis To: 9fans@9fans.net Message-ID: <20121025191455.18534f5c@vardo.ethans.dre.am> In-Reply-To: <6cc46f23cfd5f05e05ec74e09d5ecf76@brasstown.quanstro.net> References: <50380473.2000001@paradise.net.nz> <20121025135632.3483b203@vardo.ethans.dre.am> <6cc46f23cfd5f05e05ec74e09d5ecf76@brasstown.quanstro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] The cons file and consolefs Topicbox-Message-UUID: c9cb5080-ead7-11e9-9d60-3106f5b1d025 On Thu, 25 Oct 2012 09:09:39 -0400 erik quanstrom wrote: > > By the way, if you run p9p acme on Linux as root, don't use win. The > > pty subsystem crashes or something; you have to reboot before you can > > open any X term. :D >=20 > just change the permissions on /dev/ptmx back to g+w. in fact, > since you have a case narrowed down, it might be easy to find > & fix. =E2=98=BA >=20 > - erik >=20 ... how did i not find this solution? probably because i wasn't familiar wi= th what the perms should be. it's 100% reproducible, anyway, i'll go pester= p9p-dev. --=20 This is obviously some strange usage of the word=20 "simple" that I was previously unaware of. From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 25 Oct 2012 15:35:49 -0400 To: 9fans@9fans.net Message-ID: <75807d86982f5f72e7dfd894976f0b00@coraid.com> In-Reply-To: <20121025191455.18534f5c@vardo.ethans.dre.am> References: <50380473.2000001@paradise.net.nz> <20121025135632.3483b203@vardo.ethans.dre.am> <6cc46f23cfd5f05e05ec74e09d5ecf76@brasstown.quanstro.net> <20121025191455.18534f5c@vardo.ethans.dre.am> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] The cons file and consolefs Topicbox-Message-UUID: ca25c8d0-ead7-11e9-9d60-3106f5b1d025 > > ... how did i not find this solution? probably because i wasn't familiar with what the perms should be. it's 100% reproducible, anyway, i'll go pester p9p-dev. many smart people i know actively avoid knowing the details of ill-conceived and archic technology. :-) - erik