t*********2 发帖数: 32 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: tianyagirl2 (呢喃), 信区: Linux
标 题: 【请教】Linux里面Set, Env, Stty有什么区别?
发信站: BBS 未名空间站 (Sat Oct 6 02:04:05 2007)
小女子初学Linux,请教下Set, Env, Stty有什么区别?
他们显示的内容是不是来自于profile文件?谢谢。 |
|
h**o 发帖数: 548 | 2 what does "stty raw -echo" mean?
Thanks |
|
a***u 发帖数: 14 | 3 I can use stty erase ^? to change the setting, but still, cannot use backspace
to delete characters. What's the problem? Is there any problem with my key
mapping?
Thanks. |
|
|
k******r 发帖数: 2300 | 5 What does "stty hupcl ixon ixoff" do? If you can explain it using an example,
it would be great. Thanks a lot. |
|
e*******e 发帖数: 812 | 6 % /bin/stty erase ^?
/bin/stty: invalid argument `AdobeFnt.lst'
Try `/bin/stty --help' for more information.
it is a linux machine. |
|
c*****n 发帖数: 11 | 7 I found the answer. Thank you for reading.
stty_orig=`stty -g`
stty -echo
read secret
stty $stty_orig
program. |
|
r****e 发帖数: 4 | 8
Here is what shows: stty -a: |
|
c**t 发帖数: 9197 | 9 display what you input is? |
|
|
E*V 发帖数: 17544 | 11 emacs sucks
我记得1,可以改emacs的key map
2。改term的key map
stty ?
3。 改xrog的key map
.Xmodmap |
|
U*E 发帖数: 3620 | 12 I have no idea
what's your `stty -a` |
|
V*E 发帖数: 1642 | 13 理论上stty就可以reset eol
具体我没有设置过,不过你可以看我的那个link |
|
r*****o 发帖数: 109 | 14 终于发现是mapping的问题
加了一条
stty erase "^?"
终于搞定
看来screen和default 的setting 有点不一样。 |
|
v*****r 发帖数: 1119 | 15 哈 这是 terminal 的 setting, 跟 vi 没啥关系. 下次开 vi 前,run "stty -ixon"
把它 disable 掉 |
|
z**********y 发帖数: 2 | 16 stty is used to read and modify the devices's driver program for user! |
|
z**********y 发帖数: 2 | 17 stty is used to read and modify the devices' driver program's settings for
user! |
|
l**********r 发帖数: 4612 | 18 【 以下文字转载自 Linux 讨论区 】
发信人: linuxbeginer (linux), 信区: Linux
标 题: 【讨论】Linux启动时执行配置文件的顺序
发信站: BBS 未名空间站 (Sat Oct 13 14:41:08 2007)
1,请问LINUX系统中各类变量设置文件:
/etc/profile, /etc/bashrc, ~/.bash_profile, ~/.bash_login, ~/.profile,~/.
bashrc
其中前两个是全局变量设置文件,后四个是用户自定义变量设置文件,他们之间是怎样的
执行顺序?
2.在linux下分别打命令env,set,export,stty
这4个命令的输出各取自于上述中哪个变量配置文件?这4个命令作用有什么不同?
在网上找了很久了,也么有人能完整回答特别是第二个问题。谢谢 |
|
j***y 发帖数: 87 | 19
sure you can do it as long as you have the X Server installed on student...edu
because X works on a client/server mode, and the display system is a server,
while your program is a client.
run 'stty erase ^H' to re-define the erase key. |
|
|
p*a 发帖数: 592 | 21 我用的是XEmacs20.4
在Emacs里起tcsh shell,发现每次打command line命令,
都会被echo一遍很是讨厌,如果用bash就没这个问题,
但是一定要用tcsh,所以没办法在newsgroup查了查,
有人说放一句stty -echo到.emacs_tcsh里去可以去掉
这个echo,我试了果然可以但又有了新问题它把字的颜色
改成了一种蓝色看起来很是费眼神我想把它设成黑的,该怎么办? |
|
a****a 发帖数: 112 | 22 我的Unix帐号忽然出了点毛病,本来可以用上下箭头去回忆
敲过的命令,忽然就不行了。我用的是CShell,试着改了改
stty的参数,但找不到该怎么做。请高人们帮忙,多谢!
虽然问题不大,但是确实挺麻烦的。 |
|
|
a**n 发帖数: 313 | 24 Type this command after you open an xterm.
stty erase ^H |
|
g********d 发帖数: 89 | 25
Add a standard .login file in home dir
including the following
if (! $?ENVONLY) then
# Set the interrupt character to Ctrl-c and do clean backspacing.
if (-t 0) then
stty intr '^C' echoe
endif
# Set the TERM environment variable
eval `tset -s -Q`
endif |
|
c*****t 发帖数: 1879 | 26 1. make sure the terminal emulation setting is correct.
2. either check the program that provide the window and check its
erase key setting. Or you can update shell setting with "stty"
command. You can press ^V first, then hit the backspace to see
what exactly your terminal program was trying to send. |
|
f*******e 发帖数: 1061 | 27 ctrl h in hpux
or
stty erase backspace |
|
c*****t 发帖数: 1879 | 28 1. make sure the terminal emulation setting is correct.
2. either check the program that provide the window and check its
erase key setting. Or you can update shell setting with "stty"
command. You can press ^V first, then hit the backspace to see
what exactly your terminal program was trying to send. |
|
f*******e 发帖数: 1061 | 29 ctrl h in hpux
or
stty erase backspace |
|
D**u 发帖数: 179 | 30 stty或者我记得term下好像有个数据结构的在
apue那本书里面,你去查查 |
|