Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 154983 Details for
Bug 187424
bug / feature request: backport bind-tty-special-chars
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
bash-bind-stty-chars.patch
bash-bind-stty-chars.patch (text/plain), 2.16 KB, created by
Tim Waugh
on 2007-05-18 09:00:00 UTC
(
hide
)
Description:
bash-bind-stty-chars.patch
Filename:
MIME Type:
Creator:
Tim Waugh
Created:
2007-05-18 09:00:00 UTC
Size:
2.16 KB
patch
obsolete
>--- bash-3.0/lib/readline/bind.c.bind-stty-chars 2007-05-18 09:52:34.000000000 +0100 >+++ bash-3.0/lib/readline/bind.c 2007-05-18 09:54:10.000000000 +0100 >@@ -1355,6 +1355,7 @@ > int *value; > int flags; > } boolean_varlist [] = { >+ { "bind-matching-paren", &_rl_bind_stty_chars, 0 }, > { "blink-matching-paren", &rl_blink_matching_paren, V_SPECIAL }, > { "byte-oriented", &rl_byte_oriented, 0 }, > { "completion-ignore-case", &_rl_completion_case_fold, 0 }, >--- bash-3.0/lib/readline/readline.c.bind-stty-chars 2007-05-18 09:55:33.000000000 +0100 >+++ bash-3.0/lib/readline/readline.c 2007-05-18 09:56:40.000000000 +0100 >@@ -251,6 +251,10 @@ > rather than as a meta-prefixed escape sequence. */ > int _rl_output_meta_chars = 0; > >+/* Non-zero means to look at the termios special characters and bind >+ them to equivalent readline functions at startup. */ >+int _rl_bind_stty_chars = 1; >+ > /* **************************************************************** */ > /* */ > /* Top Level Functions */ >@@ -863,7 +867,8 @@ > static void > readline_default_bindings () > { >- rl_tty_set_default_bindings (_rl_keymap); >+ if (_rl_bind_stty_chars) >+ rl_tty_set_default_bindings (_rl_keymap); > } > > /* Reset the default bindings for the terminal special characters we're >@@ -871,8 +876,11 @@ > static void > reset_default_bindings () > { >- rl_tty_unset_default_bindings (_rl_keymap); >- rl_tty_set_default_bindings (_rl_keymap); >+ if (_rl_bind_stty_chars) >+ { >+ rl_tty_unset_default_bindings (_rl_keymap); >+ rl_tty_set_default_bindings (_rl_keymap); >+ } > } > > /* Bind some common arrow key sequences in MAP. */ >--- bash-3.0/lib/readline/rltty.c.bind-stty-chars 2007-05-18 09:57:11.000000000 +0100 >+++ bash-3.0/lib/readline/rltty.c 2007-05-18 09:57:58.000000000 +0100 >@@ -657,10 +657,12 @@ > > otio = tio; > >- rl_tty_unset_default_bindings (_rl_keymap); >+ if (_rl_bind_stty_chars) >+ rl_tty_unset_default_bindings (_rl_keymap); > save_tty_chars (&otio); > RL_SETSTATE(RL_STATE_TTYCSAVED); >- _rl_bind_tty_special_chars (_rl_keymap, tio); >+ if (_rl_bind_stty_chars) >+ _rl_bind_tty_special_chars (_rl_keymap, tio); > > prepare_terminal_settings (meta_flag, otio, &tio); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 187424
: 154983