LoginSignup
7

More than 5 years have passed since last update.

posted at

updated at

Gottyに感動した

参考

感想

  • 文字が見やすい。斜体対応
  • w3mが見やすい
  • byobuを使うと続きを引き継ぎやすい

課題

  • クリップボードからの貼り付けができない
    • ctrl_v_paste = false ?
  • 日本語入力ができない(uim使うか)
    • hterm側で改善されれば・・・
  • Webブラウザのタブの切り替えをキーボードで行うと文字が入力されてしまう。

インストール

実行
./gotty \
 -c user:pass \
 --random-url \
 --random-url-length=80 \
 -p 3000 \
 -w \
 byobu
標準出力
2015/12/27 18:35:02 Permitting clients to write input to the PTY.
2015/12/27 18:35:02 Using Basic Authentication
2015/12/27 18:35:02 Server is starting with command: byobu
2015/12/27 18:35:02 URL: http://127.0.0.1:3000/cnj7tnpo59vewtk7q8qq93e4pzvpvwmv4jjc058qaai4wkad7pm9n2u4ammbnzg5ygqyqt1kpjepspqx/
2015/12/27 18:35:02 URL: http://192.168.1.5:3000/cnj7tnpo59vewtk7q8qq93e4pzvpvwmv4jjc058qaai4wkad7pm9n2u4ammbnzg5ygqyqt1kpjepspqx/
  • -c : basic認証
  • -w : 入力を許可
  • -p : listen port

~/.gotty

curl https://raw.githubusercontent.com/yudai/gotty/master/.gotty -o ~/.gotty
~/.gotty
 // [string] Address to listen, all addresses will be used when empty
-// address = ""
+address = "localhost"

 // [string] Port to listen
-// port = "8080"
+port = "3000"

 // [bool] Permit clients to write to the TTY
-// permit_write = false
+permit_write = true

 // [bool] Enable basic authentication
-// enable_basic_auth = false
+enable_basic_auth = true

 // [string] Default username and password of basic authentication (user:pass)
 //          To enable basic authentication, set `true` to `enable_basic_auth`
-// credential = "user:pass"
+credential = "user:pass"
./gotty byobu

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
7