-
Notifications
You must be signed in to change notification settings - Fork 257
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
Missing TERM environment variable #447
Comments
In my case I had to make the following C++ call to QTermWidget:
I've added an additional |
Unfortunately, the setEnvironment only works with
To add on this, programs such as
|
@francescmm Looking at the source code, all
Which can also be called with
Hence, instead of using sendText,
One can set the environement then start the session:
Hope this helps |
Thanks for the tip. I agree qtermwidget should define default TERM. Probably moving relevant logic from qterminal to qtermwidget. |
Fixed by #511 |
Some odd behaviors happen when Vim is launched without a terminal, such as mouse and hotkey not working correctly. The problem narrows down to the TERM variable, which is not set by QTermWidget. Thus, setting it to "xterm" fixes it. The solution is easy, but I was wondering if it should rather be set by QTermWidget by default. Using an arbitrary value does not work, but xterm does it.
The bug can be reproduced by enabling or disabling the 'terminal' variable in a desktop file (ie. vim.desktop):
PyQt minimal example (ie. /tmp/vim.py)
The text was updated successfully, but these errors were encountered: