Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VtrSendCommandToRunner sends ^L #45

Open
jyurek opened this issue Feb 18, 2015 · 4 comments
Open

VtrSendCommandToRunner sends ^L #45

jyurek opened this issue Feb 18, 2015 · 4 comments

Comments

@jyurek
Copy link

jyurek commented Feb 18, 2015

The workaround is to set let g:VtrClearBeforeSend = 0.

VtrSendCommandToRunner will try to clear the terminal before running a command with ^L. If your terminal doesn't like that for whatever reason, it won't get cleared and the command won't run because there's a ^L on the front of it. I don't know why, but mine exhibits this behavior.

@christoomey
Copy link
Owner

I'm interested in understanding why ^L doesn't work for your terminal, but an alternate fix for you would be to find a sequence that does work and set it to g:VtrClearSequence, e.g.

let g:VtrClearSequence = "��clear"

*VtrClearSequence*
3.11 g:VtrClearSequence~
The character sequence to send to clear the runner. This sequence is used in
the explicit VTR comamnd |VtrClearRunner|. In addition, the sequence may be
used with the commands |VtrSendCommandToRunner|, |VtrResizeRunner|,
|VtrReattachRunner|, and |VtrReorientRunner| depending on the current value of
their respective "ClearOn" settings.
The default sequence will clear any unfinished commands sent to the shell
prompt within the runner pane and clear the scrollback history to present a
clean prompt ready for the next command. The character literals, � , for
<Ctrl-u> and <Ctrl-l> respectively, can be inserted using <Ctrl-v> while in
insert mode. See the help file, ':help i_Ctrl-v', for more detail.
let g:VtrClearSequence = "� �"
Default: "� "

@russ
Copy link

russ commented Mar 25, 2015

I'm having this problem as well. Not sure what the setup issue is. I'm using iTerm if that helps. My fix was to set the clear sequence variable to this.

let g:VtrClearSequence = "clear\r"

@raine
Copy link
Contributor

raine commented Jun 9, 2015

I realized the mapping is useless, and removed it. But I probably wouldn't have known the cause without this issue.

@astier
Copy link

astier commented Jul 22, 2020

I have this issue as well. I am using st as my terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants