[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (; TRAMP hangs if .inputrc binds C-j

From: Davor Cubranic
Subject: Re: tramp (; TRAMP hangs if .inputrc binds C-j
Date: Wed, 25 Jul 2018 13:05:40 -0700

I use this in my .inputrc, which lets me keep all my bindings except for Ctrl-J 
when in TRAMP:

$if term=dumb
# don't bind Control-J or it messes up TRAMP
"\C-j": next-history

> On Jul 25, 2018, at 11:35 AM, Michael Albinus <address@hidden> wrote:
> Davor Cubranic <address@hidden> writes:
> Hi Davor,
>> I’d be very happy with adding something to the docs, as it took me a
>> long time to find the reason. Most advice points to shell config files
>> being the culprit, especially the prompt, and it was pure luck that I
>> found one user’s report yesterday that tracked it down to his
>> .inputrc. Even then, they didn’t narrow it to just the C-j binding, or
>> how to fix it short of removal. So I think it might also be useful to
>> have the “$if term=dumb” workaround in the documentation.
> I've added the following to the manual:
> --8<---------------cut here---------------start------------->8---
>          And finally, bash’s readline shall not use key bindings like
>          ‘C-j’ to commands.  Disable reading the readline
>          initialization file:
>               [ $TERM = "dumb" ] && INPUTRC=/dev/null
> --8<---------------cut here---------------end--------------->8---
> I don't use bash myself; could you pls check whether this works as expected?
>> Thanks again,
>> Davor
> Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]