-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressing q
does not quit presentation after leaving embedded terminal
#188
Comments
Some additional info:
I wrote that it works sometimes because I often get error mention in #139 when entering |
I just found a solution specific for my setup. My default shell is I'm not sure @d0c-s4vage if this is worth investigating further. If not, feel free to close the issue. |
@napmn there's some oddness in how the embedded terminal captures keypresses, and especially with knowing if the terminal has focus, and how to make it let go of that focus. I thought I had an issue open to make this easier to work with, but I'm not finding it. I'll make a new one to specifically address that with:
|
As for the error that you experience sometimes, I haven't been able to reproduce it yet. I'll spend some time trying to figure that one out. For now though, #191 should handle the visual updates to the terminal. #161 is the issue I was thinking of to make sure keybindings to escape the terminal are set/working correctly |
Hmm,
|
typing |
Describe the bug
Can't use
q
to quit presentation after using terminal fromterminal
extension. Usingq
to quit works when terminal is not used.To Reproduce
Steps to reproduce the behavior:
examples
).ctrl+a
to get focus back to presentation.j / k
-> worksq
to quit presentation -> presentation does not quit but freezesExpected behavior
Pressing
q
after exiting terminal will quit presentation.Screenshots

Original terminal after killing process from other terminal (i pressed multiple
q
andQ
when trying to exit presentation):Weird stuff copying into prompt when clicking anywhere in the terminal:

Environment (please complete the following information):
Additional context
Log output:
DEBUG:lookatme.RENDER:Rendering slide 0
DEBUG:lookatme.RENDER: Rendering token {'type': 'heading', 'level': 1, 'text': 'A Plain Terminal'}
DEBUG:lookatme.RENDER: Rendering token {'type': 'paragraph', 'text': 'A plain bash terminal:'}
DEBUG:lookatme.RENDER: Rendering token {'type': 'code', 'lang': 'md', 'text': '
terminal8\nbash -il\n
'}DEBUG:lookatme:Took 1.4066696166992188e-05s to render 25 bytes
DEBUG:lookatme.RENDER: Rendering token {'type': 'code', 'lang': 'terminal8', 'text': 'bash -il'}
DEBUG:lookatme.RENDER: Rendering token {'type': 'heading', 'level': 1, 'text': 'A Plain Terminal'}
DEBUG:lookatme.RENDER: Rendering token {'type': 'paragraph', 'text': 'A plain bash terminal:'}
DEBUG:lookatme.RENDER: Rendering token {'type': 'code', 'lang': 'md', 'text': '
terminal8\nbash -il\n
'}DEBUG:lookatme:Took 8.106231689453125e-06s to render 25 bytes
DEBUG:lookatme.RENDER: Rendering token {'type': 'code', 'lang': 'terminal8', 'text': 'bash -il'}
DEBUG:lookatme.RENDER:Rendered slide 0 in 0.14720892906188965
DEBUG:lookatme.RENDER:Rendering slide 1
DEBUG:lookatme.RENDER: Rendering token {'type': 'heading', 'level': 1, 'text': 'Next slide'}
DEBUG:lookatme.RENDER: Rendering token {'type': 'paragraph', 'text': 'This is next slide'}
DEBUG:lookatme.RENDER: Rendering token {'type': 'heading', 'level': 1, 'text': 'Next slide'}
DEBUG:lookatme.RENDER: Rendering token {'type': 'paragraph', 'text': 'This is next slide'}
DEBUG:lookatme.RENDER:Rendered slide 1 in 0.0011858940124511719
DEBUG:lookatme:KEY: e
DEBUG:lookatme:KEY: c
DEBUG:lookatme:KEY: h
DEBUG:lookatme:KEY: o
DEBUG:lookatme:KEY:
DEBUG:lookatme:KEY: t
DEBUG:lookatme:KEY: e
DEBUG:lookatme:KEY: s
DEBUG:lookatme:KEY: t
DEBUG:lookatme:KEY: enter
DEBUG:lookatme:KEY: ctrl a
DEBUG:lookatme:KEY: j
DEBUG:lookatme:KEY: k
DEBUG:lookatme:KEY: q
DEBUG:lookatme:KEY: backspace
DEBUG:lookatme:KEY: ctrl a
DEBUG:lookatme:KEY: j
DEBUG:lookatme:KEY: q
DEBUG:lookatme:Terminating terminal 1/2
DEBUG:lookatme:Terminating terminal 2/2
Let me know if you need some additional info. Thanks!
The text was updated successfully, but these errors were encountered: