<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body class="" style="text-align:left; direction:ltr;"><div>On Tue, 2021-01-12 at 10:15 -0600, Phoebe Goldman wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">Emacs by default allocates a pty for subprocesses. There’s no way to do this portably, as many Lisps don’t support it, so UIOP won’t help you here. If you’re on SBCL and portability is not a concern, you can use <span style="font-family: "Andale Mono"; font-style: normal;" class="">sb-ext:run-program</span><span style="font-style: normal;" class=""> with a </span><span style="font-family: "Andale Mono"; font-style: normal;" class="">:pty</span> keyword argument, as described in section 7.7.3 of the SBCL manual. Failing that, it’s probably best to use <span style="font-family: "Andale Mono"; font-style: normal;" class="">sudo -S</span><span style="font-style: normal;" class="">.</span></blockquote><div></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div class=""><div class=""><div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div class=""><div class=""></div></div></blockquote></div></div></div></blockquote><div><br class=""></div><div>While it looks like Pierre has his own solution, I thought I would mention this for posterity on the list: "script" is a relatively portable unix command that will allocate a pty for running.  If you need a pty on a unix then it's probably your best-bet if you don't want to be tied to sb-ext:run-program.</div><div><br></div></body></html>