Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

clear don't work && vim going crazy #39

Closed
b4dtR1p opened this issue Sep 6, 2015 · 7 comments
Closed

clear don't work && vim going crazy #39

b4dtR1p opened this issue Sep 6, 2015 · 7 comments

Comments

@b4dtR1p
Copy link

b4dtR1p commented Sep 6, 2015

the simple clear command don't work, and vim goning crazy!

vim don't recognize direction command and also don't show menu and other plugin installed.

os => osx ElCapitan beta6

@G07cha
Copy link
Contributor

G07cha commented Sep 7, 2015

This is two separate problems. Better be if you create separate ticket for vim, @b4dtR1p
clear command investigation result:

  • iTerm2/Terminal:
❯ clear
#Clearing the screenecho $TERM
xterm-256color
  • Black Screen:
$ clear
TERM environment variable not set.
$ echo $TERM
$TERM

@G07cha
Copy link
Contributor

G07cha commented Sep 7, 2015

Same problem as in #36 btw

@vlad-shatskyi
Copy link
Contributor

@b4dtR1p, complete Vim support is a long way, we're working on it.

It's more interesting with clear. It sends an ANSI sequence, which means "move cursor to the upper left corner; erase everything after the cursor". However, in the current design one job (that is when you type clean and then press enter) has no access to the output of another job, unlike in xterm. That means that if you types ls, the next command can't access its output.

Currently you can clear the screen with Ctrl+L, but I'll check how we can make clear work as well. I can see two ways:

  • Have a built-in clear function.
  • Redefine the sequence in terminfo.

@b4dtR1p
Copy link
Author

b4dtR1p commented Sep 7, 2015

First of all congratulations for the idea , we lacked a terminal node and thank you for your speedy response!

@b4dtR1p
Copy link
Author

b4dtR1p commented Sep 7, 2015

for environment variable path @G07cha read the TODO #58

@notslang
Copy link
Contributor

this issue should be closed since half is covered by #36 and half is very long-term

@vlad-shatskyi
Copy link
Contributor

Clear was just added, and vim has been sane for a while.

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

No branches or pull requests

4 participants