@creative_writer I am glad the worst is over, sorry to hear you are sick. Whenever I am sick my mental health definitely suffers.
I think the driving force behind what I was getting and what you are going through are probably pretty different... I did have an undiagnosed mood disorder though.
Anyway somehow I had a mix of emotional and logical response to get away from being in real danger. I reasoned with myself which somehow helped and gave me something to build on.
It was a lot of things but the main thing was realising how long life is and how much that gives the opportunity for things to change. That coupled with the reasoning that if I followed through all the possibilities would be gone... it was logical to leave a chance of things improving. Somehow I held onto that piece of logic through everything that followed.
Other things that helped was considering what the impact on my family would be. Also one other thing that is harder to explain... I have a kind of coping mechanism where I get a kind of ironic humour from when things are really bad? Not really funny but a feeling that somehow gets me through, hard to explain.
Alright I don't know how to share the real specifics, maybe it is impossible because it is so much that just went on in my brain with myself. Also it could all be easily not applicable for you and your own individual situation. I will stop rambling away now feel free to ignore me. I am not trying to say anything is easy or my situation is anything like yours. I will seriously stop waffling now