Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在BSD系统上配置tty_Tty_Xterm_Bsd_Openbsd_Netbsd - Fatal编程技术网

在BSD系统上配置tty

在BSD系统上配置tty,tty,xterm,bsd,openbsd,netbsd,Tty,Xterm,Bsd,Openbsd,Netbsd,对于Linux debian Linux 4.19.0-1-amd64#1 SMP debian 4.19.12-1(2018-12-22)x86_64 GNU/Linux和xfce上的类似命令,我得到: alain@debian-linux:~$ dbus-send --system --type=method_call --print-reply --dest =org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.L

对于Linux debian Linux 4.19.0-1-amd64#1 SMP debian 4.19.12-1(2018-12-22)x86_64 GNU/Linux和xfce上的类似命令,我得到:

alain@debian-linux:~$ dbus-send --system --type=method_call --print-reply --dest
=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListActivatable  
Names
ktop/DBus org.freedesktop.DBus.ListActivatableNames   <
OpenBSD LeOpenBSD 6.4 GENERIC.MP#364 amd64上使用xfce I get的相同命令:

alain@debian-linux:~$ dbus-send --system --type=method_call --print-reply --dest
=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListActivatable  
Names
ktop/DBus org.freedesktop.DBus.ListActivatableNames   <
ktop/DBus org.freedesktop.DBus.ListActivatableNames<
在linux上,在屏幕的最后,我们转到下一行。
在BSD(OpenBSD NetBSD)上,命令行在同一行上继续,第一个字不显示。
在xfce终端仿真器、xterm或TTY(Alt-Ctrl-F3)中也是一样的

我试图在defaut部分的gettytab中添加am,但没有效果。
Termcap手册页上写着:
当光标到达右边距时,如果显示环绕到下一行的开头,则应具有调幅功能。
我能做什么?

简短回答 如果您希望在当前shell中不使用此功能

set +o emacs
ksh +o emacs
如果要生成没有此功能的新shell

set +o emacs
ksh +o emacs
长话短说 这种行为主要是由于OpenBSD上支持的shell


在这些编辑模式中,如果一行长于屏幕宽度(请参见COLUMNS参数),“>”、“+”或“我认为您实际描述的可能是Linux和大多数BSD上使用的两个非常不同的shell及其非常不同的命令行编辑实现之间的差异

这可能与不同终端仿真器实现之间的差异无关;也不存在描述这些终端仿真的终端功能数据库之间的差异


在BSD系统上,默认shell的命令行编辑器根据光标的位置在屏幕宽度上滚动整个命令行。在某些Linux系统上,我看到默认的shell命令行编辑器将长行环绕,以继续下一行。

您可以出于一个目的禁用编辑模式,然后对其进行响应,之后,您的历史记录将可用。您还可以使用
history
以编辑模式列出您的历史记录(仍然可用)。在我这方面效果很好是的,我可以使用历史记录或fc-。。。但这并不容易。我可以默认使用ed或vi或。。。修改命令行。我喜欢用箭头键在线条上导航,我可以很容易地改变一个字母,一个单词。。。使用set+o emacs时,箭头键给出^[[A…所以我必须在xterm中,在终端模拟器中重新定义密钥…我从我个人的角度来看这一点,但这并不容易。也许你使用了一些已经定义好的东西,你可以提供一个链接。谢谢。好问题…我真的不知道该怎么做!我在想,
bind
内置函数会像预期的那样工作,但它是并非如此,仅适用于Emacs编辑模式。