Hacker GitHub

← All repos

nelhage/reptyr

View on GitHub ↗ ★ 6,362 C

Reparent a running program to a new terminal

20 mentions on Hacker News by 18 people: 7 stories, 13 comments · first 2011-01-22 · latest 2025-12-11

Mentions per year 20 mentions · busiest year 2014 (4)
20082026
  1. …Windows, but if you're wondering if there's a way to do this on Linux, there is: https://strace.io/ https://github.com/nelhage/reptyr https://github.com/crigler/dtach https://github.com/jerome-pouiller/reredirect…
  2. …fork from the server and use this forked process right away. I used similar logic as in reptyr ( https://github.com/nelhage/reptyr ) to redirect the PTY. This worked quite well. https://github.com/albertz/python-preloaded
  3. like reptyr[1] or retty[2] does? [1] https://github.com/nelhage/reptyr [2] https://github.com/lkundrak/retty
  4. …bring processes to the foreground once you left the session. there are hacky ways to do it though: http://github.com/nelhage/reptyr http://github.com/jerome-pouiller/reredirect https://github.com/lkundrak/retty/
    comment by bandie91 · 2024-05-25 · in Tmux is worse-is-better
  5. ▲ 2
    Reptyr: Reparent a running program to a new terminal
    story by lnyan · 2023-10-05 · 0 comments
  6. …mobility, and i get a much nicer experience out of two tools: - mosh: https://mosh.org/ - reptyr: https://github.com/nelhage/reptyr using mosh means i don't get SIGHUP, and if i lose my local display, i can open another mosh, reptr my old…
    comment by geocar · 2022-04-03 · in GNU ed ate my homework
  7. ▲ 3
    Reptyr: Reparent a running program to a new terminal
    story by mrzool · 2021-11-15 · 1 comment
  8. …print the result. Another good example of using this to inject code for non-malicious purposes is https://github.com/nelhage/reptyr , which lets you tell another process to switch terminals (e.g., move it into a screen/tmux session). - You…
  9. ▲ 1
    Reptyr: Tool for “Re-Ptying” Programs
    story by ingve · 2019-11-20 · 0 comments
  10. You can indeed reattach a session into screen/tmux:) https://github.com/nelhage/reptyr Also consider using ssh config to make your default command create or attach a tmux session.
    comment by yjftsjthsd-h · 2018-12-28 · in SSH Examples, Tips and Tunnels
  11. ▲ 1
    Reptyr – A tool for “re-ptying” programs
    story by keeler · 2017-04-07 · 0 comments
  12. Is there a comparison of reTTY with reptyr ( https://github.com/nelhage/reptyr )? reptyr claims to work with less while reTTY does not.
  13. I don't know about "best", but there's RePTYr. https://github.com/nelhage/reptyr
  14. ▲ 53
    Reptyr – Reparent a running program to a new terminal
    story by pmoriarty · 2014-12-07 · 10 comments
  15. There's this for attaching a running program to your terminal when it is not started in screen: https://github.com/nelhage/reptyr
  16. ▲ 1
    A tool for “re-ptying” programs
    story by brassybadger · 2014-09-01 · 0 comments
  17. …and you do something like, say, open vim and then realize you haven't opened it in tmux, check out https://github.com/nelhage/reptyr - it lets you do things like ctrl-z to background vim, start tmux, then steal the vim process into your…
    comment by mbillie1 · 2014-02-21 · in Tmux 1.9 released
  18. reptyr: https://github.com/nelhage/reptyr is Linux specific & involves a fairly gruesome abuse of ptrace() to attach a running process to your current pty. It won't put the process in the shell jobs list though. There's also retty:…
  19. ▲ 58
    Reptyr - Reparent a running program to a new terminal
    story by albertzeyer · 2011-05-21 · 4 comments
  20. …happens when I try to take control of an ssh session. Ubuntu 10.04.1, built with met% git clone https://github.com/nelhage/reptyr.git met% cd reptyr/ met% make