Coder Social home page Coder Social logo

Comments (9)

MisterTea avatar MisterTea commented on May 24, 2024

I tried to revive 118210c but it doesn't work well in many cases. Basically, this is very hard to do without a deep integration with a terminal emulator. I could pass some escape sequence letting the terminal emulator know that there is a disconnect, but they would have to render something and handle removing it after we reconnect.

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

Actually maybe I can change the title of the window. Let me look into that

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

Actually it's non-trivial to change the window title. I tried setting PROMPT_COMMAND but that doesn't seem to be portable :-/

from eternalterminal.

krayon avatar krayon commented on May 24, 2024

Perhaps you could do it for users of tmux at least, by manipulating the status bar(s)? In the event control mode allows for setting stuff like that, you could probably flash a colour or similar? Seems there's a fair bit of customisation available:
https://leanpub.com/the-tao-of-tmux/read#status-bar

As long as you can retrieve current settings, you could change it, then change it back after a delay. You could even have a place holder for an indicator (such as "%%ETDCNT") that could contain the number of disconnections etc.

I am not sure how feasible all this is, just a thought.

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

@krayon This is a great idea but I don't have time at the moment. Would this be something that you would be interested in submitting a PR for? If you made a standalone C++ class with a connect() disconnect() API I can write the logic to call it.

from eternalterminal.

ddickstein avatar ddickstein commented on May 24, 2024

Any further plans here? This would be really helpful, especially when trying to differentiate cases of disconnection vs frozen programs at a glance. (The tmux approach proposed would work for me)

from eternalterminal.

MisterTea avatar MisterTea commented on May 24, 2024

@ddickstein Care to submit a PR? :-)

I'm a tmux -CC user so this isn't high pri for me TBQH but happy to review a PR for it.

from eternalterminal.

ddickstein avatar ddickstein commented on May 24, 2024

What changes do you think are necessary to get it to work? I haven't spent much time working in C++ and I don't know the codebase here. Do you have a rough sense of how much work it is and what the steps would be?

from eternalterminal.

krayon avatar krayon commented on May 24, 2024

@MisterTea I absolutely would but unfortunately I don't have the time and I don't actually use EternalTCP myself. I was just evaluating it for someone and had that idea. I'm sorry I can't offer a PR for this :(

from eternalterminal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.