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
@@ -8158,7 +8158,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.
@@ -8253,7 +8255,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
@@ -8318,7 +8322,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
@@ -8415,7 +8421,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
@@ -12000,27 +12006,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)
@@ -12034,15 +12040,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)
@@ -12050,13 +12056,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)
@@ -12078,15 +12084,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)
@@ -12095,9 +12101,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)
@@ -12120,19 +12126,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)
@@ -12143,11 +12149,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: bash.info, Node: Function Index, Next: Concept Index, Prev: Variable Index, Up: Indexes
@@ -12618,46 +12624,46 @@ Node: Readline Arguments341749
Node: Searching342790
Node: Readline Init File344973
Node: Readline Init File Syntax346231
Node: Conditional Init Constructs369427
Node: Sample Init File373620
Node: Bindable Readline Commands376741
Node: Commands For Moving377942
Node: Commands For History379990
Node: Commands For Text384981
Node: Commands For Killing388627
Node: Numeric Arguments391657
Node: Commands For Completion392793
Node: Keyboard Macros396981
Node: Miscellaneous Commands397665
Node: Readline vi Mode403601
Node: Programmable Completion404505
Node: Programmable Completion Builtins412282
Node: A Programmable Completion Example423031
Node: Using History Interactively428275
Node: Bash History Facilities428956
Node: Bash History Builtins431958
Node: History Interaction436963
Node: Event Designators440580
Node: Word Designators441931
Node: Modifiers443688
Node: Installing Bash445496
Node: Basic Installation446630
Node: Compilers and Options450349
Node: Compiling For Multiple Architectures451087
Node: Installation Names452777
Node: Specifying the System Type454883
Node: Sharing Defaults455596
Node: Operation Controls456266
Node: Optional Features457221
Node: Reporting Bugs468437
Node: Major Differences From The Bourne Shell469709
Node: GNU Free Documentation License486556
Node: Indexes511730
Node: Builtin Index512181
Node: Reserved Word Index519005
Node: Variable Index521450
Node: Function Index538221
Node: Concept Index552002
Node: Conditional Init Constructs369802
Node: Sample Init File373995
Node: Bindable Readline Commands377116
Node: Commands For Moving378317
Node: Commands For History380365
Node: Commands For Text385356
Node: Commands For Killing389002
Node: Numeric Arguments392032
Node: Commands For Completion393168
Node: Keyboard Macros397356
Node: Miscellaneous Commands398040
Node: Readline vi Mode403976
Node: Programmable Completion404880
Node: Programmable Completion Builtins412657
Node: A Programmable Completion Example423406
Node: Using History Interactively428650
Node: Bash History Facilities429331
Node: Bash History Builtins432333
Node: History Interaction437338
Node: Event Designators440955
Node: Word Designators442306
Node: Modifiers444063
Node: Installing Bash445871
Node: Basic Installation447005
Node: Compilers and Options450724
Node: Compiling For Multiple Architectures451462
Node: Installation Names453152
Node: Specifying the System Type455258
Node: Sharing Defaults455971
Node: Operation Controls456641
Node: Optional Features457596
Node: Reporting Bugs468812
Node: Major Differences From The Bourne Shell470084
Node: GNU Free Documentation License486931
Node: Indexes512105
Node: Builtin Index512556
Node: Reserved Word Index519380
Node: Variable Index521825
Node: Function Index538596
Node: Concept Index552377

End Tag Table