xterm

How can the size of the tk embedded xterm be dynamic?

两盒软妹~` 提交于 2020-03-01 01:48:08
问题 One can write a simple python script to embed an xterm into a tk frame: from Tkinter import * import subprocess root = Tk() termf = Frame(root, height=800, width=1000) termf.pack(fill=BOTH, expand=YES) wid = termf.winfo_id() After the window is established proc = subprocess.Popen('xterm -into %d -sb ' % wid,shell=True) root.mainloop() On my computer it looks like How can I make the embedded xterm be dynamically sized to the size of the termf frame even when resizing the frame(by dragging the

清除终端屏幕的真实

折月煮酒 提交于 2020-02-27 01:46:09
在终端上使用 clear 命令只会使用户误以为屏幕已被清除...使用鼠标滚动时,您仍然可以看到以前命令的输出。 当您淹没在文本海啸中时,这将使生活变得困难。 可以在Internet上找到的各种解决方案(转义码等)只是clear命令已经完成的工作的变体。 那么,如何真正清除Linux中终端的内容呢? #1楼 使用KDE和Ubuntu 12.04 LTS和“ Konsole”终端,所有发布的答案均无效。 但是,按默认键盘快捷键CTRL + Shift + X确实可以! 资源: https://bugs.kde.org/show_bug.cgi?id=288913 #2楼 以下链接将说明如何使该别名永久化,这样您就不必继续输入它。 https://askubuntu.com/questions/17536/how-do-i-create-a-permanent-bash-alias 这些是该链接上详细介绍的步骤。 vim〜/ .bashrc或gedit〜/ .bashrc或您喜欢的任何文本编辑器 将别名cls ='printf“ \\ 033c”'放在文件底部 保存并退出 。 〜/ .bashrc(是的,。和〜之间应该有一个空格) 现在检查是否一切正常! 我不相信这些信息只是将其传递。 #3楼 在PuTTY中,我所读的答案均无效,因此我对 本文 发表了评论: 在连接的设置中,在“窗口-

using xterm with java

风格不统一 提交于 2020-02-06 04:00:06
问题 first of all, I found a lot of questions about xterm and java, but no questions handles my problem directly. What is my problem? I want to start a xterm terminal from java and I want to send commands to this terminal. First I just want to change the directory, but it does not work. But it is important, that I don't know all commands at the beginning of the program, so it is recommended, that I can send commands to the terminal at run-time. Here is my code: String[] command= {"xterm"}; Runtime

How does Vim guess background color on xterm?

﹥>﹥吖頭↗ 提交于 2020-01-13 05:44:52
问题 Vim has the ability to correctly guess the background color of an Xterm in order to set its internal option bg to either dark or white according to the terminal's one. Vim is able to do that correctly only when TERM is set to either xterm {, -color , -256color } or linux but no others like tmux or screen . How does Vim to guess that? I've found that most people forces setting up the background option to either dark or light in their .vimrc file; but I'd like a way to guess the same way Vim

what is terminal escape sequence for ctrl + arrow (left, right,…) in TERM=linux

杀马特。学长 韩版系。学妹 提交于 2020-01-09 19:16:02
问题 I am building a terminal window in a browser (sth. like ajaxterm) and don't know which escape sequence to send to ssh tunnel (opened via paramiko.SSHClient().invoke_shell(term='linux') ). I have found a key logger and tried it in a terminal with $TERM == 'linux', but it returns the same sequence for ctrl+left and left (27,91,68). If I try keylogger in another terminal (with $TERM == 'xterm') I get the codes (27,91,49,59,53,68). But these codes do not move generate the expected output from SSH

what is terminal escape sequence for ctrl + arrow (left, right,…) in TERM=linux

≯℡__Kan透↙ 提交于 2020-01-09 19:13:31
问题 I am building a terminal window in a browser (sth. like ajaxterm) and don't know which escape sequence to send to ssh tunnel (opened via paramiko.SSHClient().invoke_shell(term='linux') ). I have found a key logger and tried it in a terminal with $TERM == 'linux', but it returns the same sequence for ctrl+left and left (27,91,68). If I try keylogger in another terminal (with $TERM == 'xterm') I get the codes (27,91,49,59,53,68). But these codes do not move generate the expected output from SSH

what is terminal escape sequence for ctrl + arrow (left, right,…) in TERM=linux

大憨熊 提交于 2020-01-09 19:11:30
问题 I am building a terminal window in a browser (sth. like ajaxterm) and don't know which escape sequence to send to ssh tunnel (opened via paramiko.SSHClient().invoke_shell(term='linux') ). I have found a key logger and tried it in a terminal with $TERM == 'linux', but it returns the same sequence for ctrl+left and left (27,91,68). If I try keylogger in another terminal (with $TERM == 'xterm') I get the codes (27,91,49,59,53,68). But these codes do not move generate the expected output from SSH

what is terminal escape sequence for ctrl + arrow (left, right,…) in TERM=linux

梦想的初衷 提交于 2020-01-09 19:10:42
问题 I am building a terminal window in a browser (sth. like ajaxterm) and don't know which escape sequence to send to ssh tunnel (opened via paramiko.SSHClient().invoke_shell(term='linux') ). I have found a key logger and tried it in a terminal with $TERM == 'linux', but it returns the same sequence for ctrl+left and left (27,91,68). If I try keylogger in another terminal (with $TERM == 'xterm') I get the codes (27,91,49,59,53,68). But these codes do not move generate the expected output from SSH

ncurses: init_color() has no effect

徘徊边缘 提交于 2020-01-05 11:47:59
问题 Trying to define color pairs, I was getting strange results. All 256 colors are already defined, and attempt to change any color with init_color() has no affect. I'm using Putty with 256-colors enabled and TERM=xterm-256color (also putty-256color), ncurses 6.0 compiled with --enable-widec and --enable-ext-colors. This shows all colors are defined and the init_color() doesn't change anything even though it succeeds: init_scr(); start_color(); if (has_colors() && COLORS == 256 && can_change

emacs -nw issues with cscope and terminals

 ̄綄美尐妖づ 提交于 2020-01-03 06:20:37
问题 Few issues with emacs in term windows. Any help is appreciated. a. I start emacs over ssh with emacs -nw with cscope enabled. After I search for a symbol or a definition, on the cscope buffer when i press 'enter', emacs says - Buffer is read-only. Whereas the same functionality on emacs with xwindows (gtk or anything else) takes me to the file and line on edit buffer. How can I have the same functionality with 'emacs -nw'. b. Also the arrow mark on edit/source buffer when i do next reference