AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 759745
Accepted
Pixelbog
Pixelbog
Asked: 2023-10-25 00:27:52 +0800 CST2023-10-25 00:27:52 +0800 CST 2023-10-25 00:27:52 +0800 CST

lynx - 更改行编辑样式/ lineedit_mode

  • 772

我想知道的是:

/etc/lynx/lynx.cfg选项中的变量名称是什么Line Edit Style?

我试图将其设置为Bash-like Bindings,但我找不到任何相关文档。


我尝试过的:

Line Edit Style我知道我可以通过options menu按 来设置o。文档提到了一个名为 的选项,但找不到任何进一步的内容。lineedit_mode

为什么lynx记录如此之少?:(

keyboard-shortcuts
  • 2 2 个回答
  • 43 Views

2 个回答

  • Voted
  1. Best Answer
    Thomas Dickey
    2023-10-26T07:47:51+08:002023-10-26T07:47:51+08:00

    .lynxrc当您从选项菜单保存时,通常由 Lynx 写入您的主目录。大约有 375 行(太长,无法在此处引用),但开始

    # Lynx User Defaults File
    #
    # This file contains options saved from the Lynx Options Screen (normally
    # with the 'o' key).  To save options with that screen, you must select the
    # checkbox:
    #       Save options to disk
    #
    # You must then save the settings using the link on the line above the
    # checkbox:
    #       Accept Changes
    #
    # You may also use the command-line option "-forms_options", which displays
    # the simpler Options Menu instead.  Save options with that using the '>' key.
    #
    # There is normally no need to edit this file manually, since the defaults
    # here can be controlled from the Options Screen, and the next time options
    # are saved from the Options Screen this file will be completely rewritten.
    # You have been warned...
    #
    # If you are looking for the general configuration file - it is normally
    # called "lynx.cfg".  It has different content and a different format.
    # It is not this file.
    

    该lineedit_mode部分如下所示:

    # lineedit_mode specifies the key binding used for inputting strings in   
    # prompts and forms.  If lineedit_mode is set to "Default Binding" then
    # the following control characters are used for moving and deleting:
    # 
    #              Prev  Next       Enter = Accept input
    #    Move char: <-    ->        ^G    = Cancel input
    #    Move word: ^P    ^N        ^U    = Erase line
    #  Delete char: ^H    ^R        ^A    = Beginning of line
    #  Delete word: ^B    ^F        ^E    = End of line
    # 
    # Current lineedit modes are:
    #    Default Binding
    #    Alternate Bindings
    #    Bash-like Bindings
    lineedit_mode=Default Binding
    

    您可以直接编辑该文件,以预先设置任何设置。Lynx 将读取该文件(如果存在)并使用这些设置。但是,下次您在选项菜单中将选项保存到磁盘时,您可能添加/修改的任何注释都将被覆盖。

    以上是正常行为,但是

    • 如果您碰巧使用英语以外的其他语言,并且 Lynx 配置为支持该语言,则注释将采用该语言(请参阅此)。但设置及其值保持不变。

    • 选项菜单中的某些设置(因为它们来自lynx.cfg,或者一些开发人员选择使它们不持久)不会写入.lynxrc,但可以通过ENABLE_LYNXRC中的设置进行更改lynx.cfg。

    基于表单的选项菜单在未保存到的项目旁边显示一个 (!) 标记~/.lynxrc- 禁用其中某些项目的原因是,如果从每个项目的 .lynxrc 文件中读取它们,则可能会导致混乱。会议。但是,可以使用ENABLE_LYNXRC设置启用或禁用它们。

    • 2
  2. MC68020
    2023-10-25T04:24:55+08:002023-10-25T04:24:55+08:00

    lynx.cfg 的完整文档以典型的 Linux 内核文档形式提供。这是 v 2.8.3
    (2.8.9 目前稳定)

    特别是,就键绑定而言:

    KEYMAP:<KEYSTROKE>:<LYNX FUNCTION>
    

    正如上面链接文档的一部分第 #2190 行中的完整描述。

    • 0

相关问题

  • LMB + CTRL 禁用

  • 如何停止使用 Kazam 录制

  • 将 CAPS+hjkl 绑定到方向键;大写到 ESC

  • 睡眠快捷指令 lubuntu?

  • 在 Vim 中删除到命令行末尾

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve