lynx - 줄 편집 스타일 변경/lineedit_mode

lynx - 줄 편집 스타일 변경/lineedit_mode

내가 알고 싶은 것은:

/etc/lynx/lynx.cfgoptions 의 변수 이름은 무엇입니까 Line Edit Style?

설정하려고 하는데 Bash-like Bindings관련 문서를 찾을 수 없습니다.


내가 시도한 것:

Line Edit Styleoptions menu을 누르면 설정할 수 있는 것으로 알고 있습니다 o. 게다가문서라는 옵션이 언급되었지만 lineedit_mode더 이상 찾을 수 없습니다.

기록이 왜 lynx이렇게 적나요? :(

답변1

.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

lynx.cfg에 대한 전체 문서는 일반적인 Linux 커널 문서 형식으로 제공됩니다.이는 v 2.8.3용입니다.
(2.8.9 현재 안정 버전)

특히, 키 바인딩에 관한 한:

KEYMAP:<KEYSTROKE>:<LYNX FUNCTION>

위에 링크된 문서 섹션의 #2190행에 자세히 설명되어 있습니다.

관련 정보