由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - Cursor Position in bash prompt
相关主题
Ubuntu 怎么让命令行提示符现实部分当前路径 比如最后3层怎么把某个版面的文章发到自己的邮箱
新手问个问题Vim: how can I jump to the previous cursor position?
why does my PS1 setup fail?vim
how to build short cut to insert a text under vi?block cursor in vim
vim: how to copy/yank the regular expression matched string如何
XEmacs and Emacs' wheel behavior都来测一下你的浏览器速度
贡献一个很简短的vi Manualputty中的debian中文显示成问号了。。。
Cygwin/X里弹出的XTerm没Prompt是怎么回事?GTK cursor (转载)
相关话题的讨论汇总
话题: cursor话题: prompt话题: position话题: tput话题: bash
进入Linux版参与讨论
1 (共1页)
D******y
发帖数: 3780
1
CentOS 5.3 64bit
I set export PS1="\[$(tput setaf 2)\]\u@\h:\w # \[$(tput sgr0)\]" in my .
bashrc
if I press enter without any commands, the cursor will move it to the middle
of the prompt like the following:
root@server [cursor] /var/lib/mysql #
if I input any command and press enter, the cursor will be at the correct
position.
if I don't set any color prompt, everything is good.
Anyone knows why? Thankssssssss
1 (共1页)
进入Linux版参与讨论
相关主题
GTK cursor (转载)vim: how to copy/yank the regular expression matched string
still can not install debian normally on dockstarXEmacs and Emacs' wheel behavior
How to change the color of roy@ubuntu:~$ of the terminal贡献一个很简短的vi Manual
thinkpad用户有吗?Cygwin/X里弹出的XTerm没Prompt是怎么回事?
Ubuntu 怎么让命令行提示符现实部分当前路径 比如最后3层怎么把某个版面的文章发到自己的邮箱
新手问个问题Vim: how can I jump to the previous cursor position?
why does my PS1 setup fail?vim
how to build short cut to insert a text under vi?block cursor in vim
相关话题的讨论汇总
话题: cursor话题: prompt话题: position话题: tput话题: bash