public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* tty swtch key
@ 2014-03-26 18:47 Phillip Susi
  2014-03-27 18:40 ` Mantas Mikulėnas
  0 siblings, 1 reply; 8+ messages in thread
From: Phillip Susi @ 2014-03-26 18:47 UTC (permalink / raw)
  To: util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I could have sworn that I used the tty swtch feature once many years
ago and that it sent a special signal to the shell, causing it to be
suspended and return you to the parent shell, as if you had entered
the suspend command.  I can't find the signal in the man pages now,
and using stty to set a swtch key and hitting it does nothing.  Is
this unimplemented on linux, and if so, shouldn't the man page be
updated to reflect that?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTMyDFAAoJEI5FoCIzSKrw5/8IAIlrwdqcGiPX3uIjttm1E3sh
dltS5nUj9YP+blgsQ4h5uu8m/bzFGp19ocx7OlO3/1qESyuGpnwoNr9wJtzXB8YV
xqqbhlsIF+9dxdD9CUIcHkt+hb7Hu6WDh7YfJRfctfbQgYYVNYKbQgQrl9AMrNmK
DNtXJy90KUhpwqtR9RuOfbwcLsZUU4AsfyqujQs1zBbhAJm9i3JrUGewBUZ0QFOe
M2IW8619AW/qoI//ko1rNVkUBPraZAf4K/XeoQbmT87ch778E+EeWPZhClOlmbM2
QsynEnjy3uUj0r3A5ja97dphjeyGegHI7wpMVLnLs3iR9USOBrlwqll7b2IJYBw=
=DP1V
-----END PGP SIGNATURE-----

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

* Re: tty swtch key
  2014-03-26 18:47 tty swtch key Phillip Susi
@ 2014-03-27 18:40 ` Mantas Mikulėnas
  2014-03-27 19:22   ` Phillip Susi
  2014-03-29  2:49   ` Dale R. Worley
  0 siblings, 2 replies; 8+ messages in thread
From: Mantas Mikulėnas @ 2014-03-27 18:40 UTC (permalink / raw)
  To: util-linux

On 2014-03-26 20:47, Phillip Susi wrote:
> I could have sworn that I used the tty swtch feature once many years
> ago and that it sent a special signal to the shell, causing it to be
> suspended and return you to the parent shell, as if you had entered
> the suspend command.  I can't find the signal in the man pages now,
> and using stty to set a swtch key and hitting it does nothing.  Is
> this unimplemented on linux, and if so, shouldn't the man page be
> updated to reflect that?

AFAIK, Linux never had this feature built-in. I'm not quite old enough
to have actually used it, but I've read and saved a few Usenet posts
that say `shl` ("shell layers") only existed in very old Unix versions
like SVR3, to compete with BSD-style job control.

(Looks like Google Groups removed find-by-Message-ID, unfortunately. I
guess I could just attach all of the posts...)

On the other hand, there _is_ a reimplementation of shl for Linux and
Solaris, as part of heirloom-toolchest
<http://heirloom.sourceforge.net/tools.html> and
<http://heirloom.sourceforge.net/man/shl.1.html>.

-- 
Mantas Mikulėnas <grawity@gmail.com>


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

* Re: tty swtch key
  2014-03-27 18:40 ` Mantas Mikulėnas
@ 2014-03-27 19:22   ` Phillip Susi
  2014-03-27 20:12     ` Mantas Mikulėnas
  2014-03-29  2:49   ` Dale R. Worley
  1 sibling, 1 reply; 8+ messages in thread
From: Phillip Susi @ 2014-03-27 19:22 UTC (permalink / raw)
  To: Mantas Mikulėnas, util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/27/2014 2:40 PM, Mantas Mikulėnas wrote:

> On the other hand, there _is_ a reimplementation of shl for Linux
> and Solaris, as part of heirloom-toolchest 
> <http://heirloom.sourceforge.net/tools.html> and 
> <http://heirloom.sourceforge.net/man/shl.1.html>.

How so?  It has to be implemented in the kernel tty layer.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTNHqMAAoJEI5FoCIzSKrwWIwIAJ1AgQuHn5RMQkWlO11WrA85
Nu1QnJvD/Ubyxchl5L+vbGTXXz2rkb8UKBhzeSZsg4cSO3dTUBL45PunC3+Wh0uk
UYNAtdTmaftiJ4P0OHeO7Q20u7OyzEK4y62aUk65ul5t2m5t6zJMViQhyQeTGqHh
aE2Yz99H3ZycaixcdaTvvc7DK0hLvwr0Zm4vC1oOvHKGobvAvL2dy+Z+2WzBCZ/+
f52dsIObvhprAAeyBykjvoSHvPPCJpuIz3RXtS7yv9wbBr7vqFG43bNBeyEOZgkV
xoZDDAj6o1lrYRjUWmqdyOxbQ6/p8q98kCSk80lLORc4+fr7HdNvRUcIpkOsPeo=
=1Xr+
-----END PGP SIGNATURE-----

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

* Re: tty swtch key
  2014-03-27 19:22   ` Phillip Susi
@ 2014-03-27 20:12     ` Mantas Mikulėnas
  2014-03-27 20:48       ` Phillip Susi
  2014-03-27 23:57       ` Samuel Thibault
  0 siblings, 2 replies; 8+ messages in thread
From: Mantas Mikulėnas @ 2014-03-27 20:12 UTC (permalink / raw)
  To: Phillip Susi, util-linux

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

On 2014-03-27 21:22, Phillip Susi wrote:
> On 3/27/2014 2:40 PM, Mantas Mikulėnas wrote:
> 
>> On the other hand, there _is_ a reimplementation of shl for Linux
>> and Solaris, as part of heirloom-toolchest
>> <http://heirloom.sourceforge.net/tools.html> and
>> <http://heirloom.sourceforge.net/man/shl.1.html>.
> 
> How so?  It has to be implemented in the kernel tty layer.

Not necessarily – remember that `screen` and `tmux` and `dtach` were
implemented entirely in user space. Similarly, heirloom's shl appears to
be built on top of ptys, probably just intercepting the "switch" key and
relaying the rest.

Actually it sounds quite similar to the descriptions of how the old shl
worked... (see Message-ID: <cjs1ka$e25@harn.ceas.rochester.edu>)

-- 
Mantas Mikulėnas <grawity@gmail.com>

[-- Attachment #2: shl.mbox.gz --]
[-- Type: application/gzip, Size: 9407 bytes --]

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

* Re: tty swtch key
  2014-03-27 20:12     ` Mantas Mikulėnas
@ 2014-03-27 20:48       ` Phillip Susi
       [not found]         ` <5334B42D.1010304@gmail.com>
  2014-03-27 23:57       ` Samuel Thibault
  1 sibling, 1 reply; 8+ messages in thread
From: Phillip Susi @ 2014-03-27 20:48 UTC (permalink / raw)
  To: Mantas Mikulėnas, util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/27/2014 4:12 PM, Mantas Mikulėnas wrote:
> Actually it sounds quite similar to the descriptions of how the old
> shl worked... (see Message-ID:
> <cjs1ka$e25@harn.ceas.rochester.edu>)

See that message id where?


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTNI6oAAoJEI5FoCIzSKrwgpUH/Ag8tpw3KXBY8Yq3gopJ5kHy
xngV/ZmnoplMKttwg/AvZNc3m2bgerUgjZB4TYYlDbAPw+IYvyIfcw48MA169hog
bd+tVFiUTtc9nOLzWsPbXRjHn9RYq1OnS90UZvjR+aNytYQTruaE6iOstxVcgJL4
WugWb/b+Oq+H2DtR6RGZL4akR7zM0I+AVGoUNtNaw3g3j/x7uOd8Xg9OEJ0APQmL
2BS8zYLHFbivaITWDx182L6FlDi9SEfBvwp1qDUKEG20o2I0yGjBaHvYhF7brEER
Swg5Q6xwHDjgI1mZ4aNB6JHv2kC9ojNp0d4LpRDPneks8IgI7n0XB4dMMqKNSm0=
=j8Bt
-----END PGP SIGNATURE-----

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

* Re: tty swtch key
  2014-03-27 20:12     ` Mantas Mikulėnas
  2014-03-27 20:48       ` Phillip Susi
@ 2014-03-27 23:57       ` Samuel Thibault
  1 sibling, 0 replies; 8+ messages in thread
From: Samuel Thibault @ 2014-03-27 23:57 UTC (permalink / raw)
  To: Mantas Mikulėnas; +Cc: Phillip Susi, util-linux

Mantas Mikulėnas, le Thu 27 Mar 2014 22:12:41 +0200, a écrit :
> On 2014-03-27 21:22, Phillip Susi wrote:
> > On 3/27/2014 2:40 PM, Mantas Mikulėnas wrote:
> > 
> >> On the other hand, there _is_ a reimplementation of shl for Linux
> >> and Solaris, as part of heirloom-toolchest
> >> <http://heirloom.sourceforge.net/tools.html> and
> >> <http://heirloom.sourceforge.net/man/shl.1.html>.
> > 
> > How so?  It has to be implemented in the kernel tty layer.
> 
> Not necessarily – remember that `screen` and `tmux` and `dtach` were
> implemented entirely in user space.

Err, no, they have to depend on some kernel features. For instance, you
want to be able to ^C a program running in a sudo shell. Only the kernel
can do that.

Samuel

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

* Re: tty swtch key
       [not found]         ` <5334B42D.1010304@gmail.com>
@ 2014-03-28  1:47           ` Phillip Susi
  0 siblings, 0 replies; 8+ messages in thread
From: Phillip Susi @ 2014-03-28  1:47 UTC (permalink / raw)
  To: Mantas Mikulėnas; +Cc: util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 03/27/2014 07:28 PM, Mantas Mikulėnas wrote:
> On 2014-03-27 22:48, Phillip Susi wrote:
>> On 3/27/2014 4:12 PM, Mantas Mikulėnas wrote:
>>> Actually it sounds quite similar to the descriptions of how the
>>> old shl worked... (see Message-ID: 
>>> <cjs1ka$e25@harn.ceas.rochester.edu>)
>> 
>> See that message id where?
> 
> The mbox folder attached to the previous message, unless it got
> lost.

Thanks, I didn't notice the attachment.  So it sounds like maybe this
should be removed from both stty and the kernel then, since it was
never implemented and won't ever be?



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTNNSaAAoJEI5FoCIzSKrw7L8IAJJTMS+LpfUTQHQZRlb6A8zZ
MYKSvL7dCTt/BkJmAz7r/+f0qZSVZInuJnySoeyTgmcHD45M6AWSvZrfmNqwH+d5
8L5MSUBG8tdCCP6ByruhbJJD/txheO0BmwabslZlwxA7tNgf46FfiSbG/IQLczqa
4H1fIQc+oWruIWfQ8q0T+bUy0BJJAx9uMu6vkgAW6L5g6pBbFRn6fsppf+fF04f7
rDc51/Uk0FOntRm+cu58al9N+18K+Q9/K9fVcGeEbXsMk2KjCb5E76hQwPWnu0mV
QVzWWOck+3mplaITwWPhy2tabsxk1q1TcvyvWyj0GKKaVnmvBioM3E1GMZ8PEr4=
=3JZD
-----END PGP SIGNATURE-----

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

* Re: tty swtch key
  2014-03-27 18:40 ` Mantas Mikulėnas
  2014-03-27 19:22   ` Phillip Susi
@ 2014-03-29  2:49   ` Dale R. Worley
  1 sibling, 0 replies; 8+ messages in thread
From: Dale R. Worley @ 2014-03-29  2:49 UTC (permalink / raw)
  To: Mantas Mikulėnas; +Cc: util-linux

> From: Mantas Mikulėnas <grawity@gmail.com>

> (Looks like Google Groups removed find-by-Message-ID, unfortunately. I
> guess I could just attach all of the posts...)

It looks like you can fake that.
https://groups.google.com/forum/#!topic/news.software.readers/IdRY8FQh8xE
reports:

    Also, you can use Google Groups to point to an article, like this:

      https://groups.google.com/forum/#!original/alt.free.newsservers/I6gEnVSP8eI/0Eg5aLNbi0UJ

    Which is a link to the source, header and all, unformatted.

    ⋅AND⋅, when you hit the big "Back Arrow" button,
    it places you on the proper article, in the thread/topic,
    properly formatted, on the proper page of the thread/topic ! !

Dale

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

end of thread, other threads:[~2014-03-29  2:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 18:47 tty swtch key Phillip Susi
2014-03-27 18:40 ` Mantas Mikulėnas
2014-03-27 19:22   ` Phillip Susi
2014-03-27 20:12     ` Mantas Mikulėnas
2014-03-27 20:48       ` Phillip Susi
     [not found]         ` <5334B42D.1010304@gmail.com>
2014-03-28  1:47           ` Phillip Susi
2014-03-27 23:57       ` Samuel Thibault
2014-03-29  2:49   ` Dale R. Worley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox