Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
0471-Fix-SSH-recursive-search-with-CTRL-R.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0471-Fix-SSH-recursive-search-with-CTRL-R.patch of Package erlang
From 236a874e12b8a537cfca3bc64805112f4181375e Mon Sep 17 00:00:00 2001 From: Jon Carstens <jjcarstens@me.com> Date: Sat, 15 Jul 2023 09:34:36 -0600 Subject: [PATCH 1/3] Fix SSH recursive search with CTRL+R `group.erl` now sends `put_expand_no_trim` when entering a history search. `ssh_cli` does not support that message and so when entering a search when SSH is the underlying driver, the expanded result would not be displayed even though the search functionality would still technically work. This adds support for that `put_expand_no_trim` message when using SSH --- lib/ssh/src/ssh_cli.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ssh/src/ssh_cli.erl b/lib/ssh/src/ssh_cli.erl index 9f6d3be21d..30588fa6cf 100644 --- a/lib/ssh/src/ssh_cli.erl +++ b/lib/ssh/src/ssh_cli.erl @@ -424,6 +424,8 @@ io_request({put_chars, Cs}, Buf, Tty, _Group) -> put_chars(bin_to_list(Cs), Buf, Tty); io_request({put_chars, unicode, Cs}, Buf, Tty, _Group) -> put_chars(unicode:characters_to_list(Cs,unicode), Buf, Tty); +io_request({put_expand_no_trim, unicode, Expand}, Buf, Tty, _Group) -> + insert_chars(unicode:characters_to_list(Expand, unicode), Buf, Tty); io_request({insert_chars, Cs}, Buf, Tty, _Group) -> insert_chars(bin_to_list(Cs), Buf, Tty); io_request({insert_chars, unicode, Cs}, Buf, Tty, _Group) -> @@ -983,4 +985,3 @@ fmt_kv1({K,h,V}) -> io_lib:format("~n~p: ~s",[K, [$\n|ssh_dbg:hex_dump(V)]]). type(0) -> "0 (normal data)"; type(1) -> "1 (extended data, i.e. errors)"; type(T) -> T. - -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor