<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>udzura</author_name>
  <author_url>https://blog.hatena.ne.jp/udzura/</author_url>
  <blog_title>ローファイ日記</blog_title>
  <blog_url>https://udzura.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>library pty (Ruby 2.2.0)pty とは、擬似端末（Pseudo tTY）を扱うライブラリ。典型的には以下のように使う。 require 'pty' status = nil PTY.spawn(&quot;for i in $(seq 1 10); do echo progress $i; sleep 1; done&quot;) do |pty_out, pty_in, pid| pty_in.close while l = pty_out.gets puts &quot;PTY: #{l}&quot; end status = PTY.check pid end # PTY: progress 1 # PT…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fudzura.hatenablog.jp%2Fentry%2F2015%2F08%2F07%2F104500&quot; title=&quot;Rubyで別のコマンドをラップしたい時、ptyライブラリが便利 - ローファイ日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-08-07 10:45:00</published>
  <title>Rubyで別のコマンドをラップしたい時、ptyライブラリが便利</title>
  <type>rich</type>
  <url>https://udzura.hatenablog.jp/entry/2015/08/07/104500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
