vte

gnome-terminal (or VTE) sets $TERM to xterm rather than xterm-256color

前提是你 提交于 2019-12-25 16:54:21
问题 Is there a compelling reason why gnome-terminal (and, under the hood, maybe the VTE widget) sets $TERM to xterm rather than xterm-256color ? Clearly it supports 256 colors. For a while, I had a line in my .bashrc / .zshrc to simply export TERM=xterm-256color , because that's usually the terminal emulator that I'm using. But then I open up tmux , and the behavior / colors are wrong in many CLI applications, such as emacs and htop , because tmux will set the TERM variable to screen-256color,

PyGobject VTE terminal, command printed twice

夙愿已清 提交于 2019-12-13 01:43:21
问题 I'm writing an application to connect to few Linux server via SSH, which using VTE terminal to make some operation on this server. To connect to this server I'm using bash expect command to provide password. I want to run this command instantly after VTE was run , but here I have some ugly behavior of VTE, command was printed twice to terminal, once before bash prompt, and second normal after bash prompt echo Here command to connesc ssh [drespondek@oc5045316303 ~]$ echo Here command to