2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-10-05 07:50:01 +00:00

Have nodeconsole cleanly exit

This commit is contained in:
Jarrod Johnson
2026-05-04 18:35:57 -04:00
parent dc627342e9
commit c54eb2919a
+2 -2
View File
@@ -16,7 +16,6 @@
# limitations under the License.
#TODO: clean exit
import asyncio
import base64
import optparse
@@ -280,7 +279,8 @@ class InputHandler:
await relay_keypresses(self.buffer[3:], modifiers=[SpecialKeys.ALT, SpecialKeys.SYSRQ])
self.reset_input_context()
elif self.buffer == '\x05c.': # Ctrl-E, then .
sys.exit(0)
asyncio.get_running_loop().call_soon(sys.exit, 0)
return
elif self.buffer == '\x05cfa': # toggle focus ...
toggle_focus_all()
elif self.buffer == '\x05c?': # Ctrl-E, then ?