modify readline so it adjusts internal variables when the locale changes between calls to readline()

This commit is contained in:
Chet Ramey
2022-08-15 12:32:00 -04:00
parent 0142068628
commit b9ed20acfd
24 changed files with 4908 additions and 4758 deletions
+79 -73
View File
@@ -8159,7 +8159,9 @@ Variable Settings
eighth bit and prefixing an <ESC> character, converting them
to a meta-prefixed key sequence. The default value is 'on',
but will be set to 'off' if the locale is one that contains
eight-bit characters.
eight-bit characters. This variable is dependent on the
'LC_CTYPE' locale category, and may change if the locale is
changed.
'disable-completion'
If set to 'On', Readline will inhibit word completion.
@@ -8254,7 +8256,9 @@ Variable Settings
regardless of what the terminal claims it can support. The
default value is 'off', but Readline will set it to 'on' if
the locale contains eight-bit characters. The name
'meta-flag' is a synonym for this variable.
'meta-flag' is a synonym for this variable. This variable is
dependent on the 'LC_CTYPE' locale category, and may change if
the locale is changed.
'isearch-terminators'
The string of characters that should terminate an incremental
@@ -8319,7 +8323,9 @@ Variable Settings
If set to 'on', Readline will display characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence. The default is 'off', but Readline will set it to
'on' if the locale contains eight-bit characters.
'on' if the locale contains eight-bit characters. This
variable is dependent on the 'LC_CTYPE' locale category, and
may change if the locale is changed.
'page-completions'
If set to 'on', Readline uses an internal 'more'-like pager to
@@ -8416,7 +8422,7 @@ Key Bindings
string that is inserted when the key is pressed (a MACRO).
The 'bind -p' command displays Readline function names and bindings
in a format that can put directly into an initialization file.
in a format that can be put directly into an initialization file.
*Note Bash Builtins::.
KEYNAME: FUNCTION-NAME or MACRO
@@ -12001,27 +12007,27 @@ D.3 Parameter and Variable Index
* COPROC: Bash Variables. (line 260)
* DIRSTACK: Bash Variables. (line 264)
* disable-completion: Readline Init File Syntax.
(line 146)
(line 148)
* echo-control-characters: Readline Init File Syntax.
(line 151)
(line 153)
* editing-mode: Readline Init File Syntax.
(line 156)
(line 158)
* EMACS: Bash Variables. (line 274)
* emacs-mode-string: Readline Init File Syntax.
(line 162)
(line 164)
* enable-active-region: Readline Init File Syntax.
(line 172)
(line 174)
* enable-bracketed-paste: Readline Init File Syntax.
(line 185)
(line 187)
* enable-keypad: Readline Init File Syntax.
(line 194)
(line 196)
* ENV: Bash Variables. (line 279)
* EPOCHREALTIME: Bash Variables. (line 284)
* EPOCHSECONDS: Bash Variables. (line 292)
* EUID: Bash Variables. (line 299)
* EXECIGNORE: Bash Variables. (line 303)
* expand-tilde: Readline Init File Syntax.
(line 205)
(line 207)
* FCEDIT: Bash Variables. (line 316)
* FIGNORE: Bash Variables. (line 320)
* FUNCNAME: Bash Variables. (line 326)
@@ -12035,15 +12041,15 @@ D.3 Parameter and Variable Index
* HISTFILESIZE: Bash Variables. (line 402)
* HISTIGNORE: Bash Variables. (line 413)
* history-preserve-point: Readline Init File Syntax.
(line 209)
(line 211)
* history-size: Readline Init File Syntax.
(line 215)
(line 217)
* HISTSIZE: Bash Variables. (line 433)
* HISTTIMEFORMAT: Bash Variables. (line 440)
* HOME: Bourne Shell Variables.
(line 13)
* horizontal-scroll-mode: Readline Init File Syntax.
(line 224)
(line 226)
* HOSTFILE: Bash Variables. (line 448)
* HOSTNAME: Bash Variables. (line 459)
* HOSTTYPE: Bash Variables. (line 462)
@@ -12051,13 +12057,13 @@ D.3 Parameter and Variable Index
(line 18)
* IGNOREEOF: Bash Variables. (line 465)
* input-meta: Readline Init File Syntax.
(line 233)
(line 235)
* INPUTRC: Bash Variables. (line 475)
* INSIDE_EMACS: Bash Variables. (line 479)
* isearch-terminators: Readline Init File Syntax.
(line 241)
(line 245)
* keymap: Readline Init File Syntax.
(line 248)
(line 252)
* LANG: Creating Internationalized Scripts.
(line 51)
* LANG <1>: Bash Variables. (line 485)
@@ -12079,15 +12085,15 @@ D.3 Parameter and Variable Index
(line 27)
* MAPFILE: Bash Variables. (line 540)
* mark-modified-lines: Readline Init File Syntax.
(line 278)
(line 282)
* mark-symlinked-directories: Readline Init File Syntax.
(line 283)
(line 287)
* match-hidden-files: Readline Init File Syntax.
(line 288)
(line 292)
* menu-complete-display-prefix: Readline Init File Syntax.
(line 295)
(line 299)
* meta-flag: Readline Init File Syntax.
(line 233)
(line 235)
* OLDPWD: Bash Variables. (line 544)
* OPTARG: Bourne Shell Variables.
(line 34)
@@ -12096,9 +12102,9 @@ D.3 Parameter and Variable Index
(line 38)
* OSTYPE: Bash Variables. (line 551)
* output-meta: Readline Init File Syntax.
(line 300)
(line 304)
* page-completions: Readline Init File Syntax.
(line 306)
(line 312)
* PATH: Bourne Shell Variables.
(line 42)
* PIPESTATUS: Bash Variables. (line 554)
@@ -12121,19 +12127,19 @@ D.3 Parameter and Variable Index
* READLINE_POINT: Bash Variables. (line 626)
* REPLY: Bash Variables. (line 630)
* revert-all-at-newline: Readline Init File Syntax.
(line 316)
(line 322)
* SECONDS: Bash Variables. (line 633)
* SHELL: Bash Variables. (line 642)
* SHELLOPTS: Bash Variables. (line 647)
* SHLVL: Bash Variables. (line 656)
* show-all-if-ambiguous: Readline Init File Syntax.
(line 322)
* show-all-if-unmodified: Readline Init File Syntax.
(line 328)
* show-all-if-unmodified: Readline Init File Syntax.
(line 334)
* show-mode-in-prompt: Readline Init File Syntax.
(line 337)
* skip-completed-text: Readline Init File Syntax.
(line 343)
* skip-completed-text: Readline Init File Syntax.
(line 349)
* SRANDOM: Bash Variables. (line 661)
* TEXTDOMAIN: Creating Internationalized Scripts.
(line 51)
@@ -12144,11 +12150,11 @@ D.3 Parameter and Variable Index
* TMPDIR: Bash Variables. (line 720)
* UID: Bash Variables. (line 724)
* vi-cmd-mode-string: Readline Init File Syntax.
(line 356)
(line 362)
* vi-ins-mode-string: Readline Init File Syntax.
(line 367)
(line 373)
* visible-stats: Readline Init File Syntax.
(line 378)
(line 384)

File: bashref.info, Node: Function Index, Next: Concept Index, Prev: Variable Index, Up: Indexes
@@ -12619,46 +12625,46 @@ Node: Readline Arguments342016
Node: Searching343060
Node: Readline Init File345246
Node: Readline Init File Syntax346507
Node: Conditional Init Constructs369706
Node: Sample Init File373902
Node: Bindable Readline Commands377026
Node: Commands For Moving378230
Node: Commands For History380281
Node: Commands For Text385275
Node: Commands For Killing388924
Node: Numeric Arguments391957
Node: Commands For Completion393096
Node: Keyboard Macros397287
Node: Miscellaneous Commands397974
Node: Readline vi Mode403913
Node: Programmable Completion404820
Node: Programmable Completion Builtins412600
Node: A Programmable Completion Example423352
Node: Using History Interactively428599
Node: Bash History Facilities429283
Node: Bash History Builtins432288
Node: History Interaction437296
Node: Event Designators440916
Node: Word Designators442270
Node: Modifiers444030
Node: Installing Bash445841
Node: Basic Installation446978
Node: Compilers and Options450700
Node: Compiling For Multiple Architectures451441
Node: Installation Names453134
Node: Specifying the System Type455243
Node: Sharing Defaults455959
Node: Operation Controls456632
Node: Optional Features457590
Node: Reporting Bugs468809
Node: Major Differences From The Bourne Shell470084
Node: GNU Free Documentation License486934
Node: Indexes512111
Node: Builtin Index512565
Node: Reserved Word Index519392
Node: Variable Index521840
Node: Function Index538614
Node: Concept Index552398
Node: Conditional Init Constructs370081
Node: Sample Init File374277
Node: Bindable Readline Commands377401
Node: Commands For Moving378605
Node: Commands For History380656
Node: Commands For Text385650
Node: Commands For Killing389299
Node: Numeric Arguments392332
Node: Commands For Completion393471
Node: Keyboard Macros397662
Node: Miscellaneous Commands398349
Node: Readline vi Mode404288
Node: Programmable Completion405195
Node: Programmable Completion Builtins412975
Node: A Programmable Completion Example423727
Node: Using History Interactively428974
Node: Bash History Facilities429658
Node: Bash History Builtins432663
Node: History Interaction437671
Node: Event Designators441291
Node: Word Designators442645
Node: Modifiers444405
Node: Installing Bash446216
Node: Basic Installation447353
Node: Compilers and Options451075
Node: Compiling For Multiple Architectures451816
Node: Installation Names453509
Node: Specifying the System Type455618
Node: Sharing Defaults456334
Node: Operation Controls457007
Node: Optional Features457965
Node: Reporting Bugs469184
Node: Major Differences From The Bourne Shell470459
Node: GNU Free Documentation License487309
Node: Indexes512486
Node: Builtin Index512940
Node: Reserved Word Index519767
Node: Variable Index522215
Node: Function Index538989
Node: Concept Index552773

End Tag Table