external: fix issues with coming back from vim
This commit is contained in:
parent
8de79a6e5a
commit
1d92b52379
|
@ -27,7 +27,6 @@ BACKLOG
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
bug: can't input unicode
|
bug: can't input unicode
|
||||||
click on links to open them
|
click on links to open them
|
||||||
bug: exiting editor breaks curses
|
|
||||||
dumb rendering mode per site
|
dumb rendering mode per site
|
||||||
well, preferences per site maybe?
|
well, preferences per site maybe?
|
||||||
download without memory buffer
|
download without memory buffer
|
||||||
|
|
|
@ -12,6 +12,9 @@ def open_external_program(command):
|
||||||
"""
|
"""
|
||||||
curses.nocbreak()
|
curses.nocbreak()
|
||||||
curses.echo()
|
curses.echo()
|
||||||
|
curses.curs_set(1)
|
||||||
subprocess.run(command)
|
subprocess.run(command)
|
||||||
|
curses.mousemask(curses.ALL_MOUSE_EVENTS)
|
||||||
|
curses.curs_set(0)
|
||||||
curses.noecho()
|
curses.noecho()
|
||||||
curses.cbreak()
|
curses.cbreak()
|
||||||
|
|
Reference in a new issue