Cursor disappears in vim while using screen inside secure shell

552 views
Skip to first unread message

tomka...@gmail.com

unread,
Jun 19, 2014, 2:28:20 PM6/19/14
to chromiu...@chromium.org
Hey folks.

I tried opening a file in vim inside a screen session and the cursor does not show up.
I tried without using screen and it works correctly and I am able to see the current position of the cursor.

Is there a way to solve this issue ?
It used to work fine until about 2 days ago


Robert Ginda

unread,
Jun 19, 2014, 2:44:51 PM6/19/14
to Bibin Thomas, chromium-hterm
This sounds like https://code.google.com/p/chromium/issues/detail?id=386414.  Are you on dev channel?


--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/477213a1-aca1-40b8-99d7-291088131413%40chromium.org.

Shane McCarron

unread,
Jun 19, 2014, 2:45:27 PM6/19/14
to tomka...@gmail.com, chromiu...@chromium.org
I have had this happen from time to time.  Disconnecting and re-entering the screen session seems to reset it.


--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/477213a1-aca1-40b8-99d7-291088131413%40chromium.org.

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.



--
Shane McCarron
halin...@gmail.com

tomka...@gmail.com

unread,
Jun 19, 2014, 3:04:21 PM6/19/14
to chromiu...@chromium.org, tomka...@gmail.com
Hi Robert.

Yes I am using the dev channel.
The version is Secure Shell version 0.8.27.
Chrome version is Version 37.0.2054.3 dev-m

tomka...@gmail.com

unread,
Jun 19, 2014, 3:07:27 PM6/19/14
to chromiu...@chromium.org, tomka...@gmail.com
Hi Shane.

I tried disconnecting. It did not help.
I tried starting a new session and opening vim inside the new one.

The cursor still does not show up inside vim.

kshe...@umich.edu

unread,
Jun 22, 2014, 10:12:40 AM6/22/14
to chromiu...@chromium.org, tomka...@gmail.com
I started having problems of this type two days ago, I think soon after an update to my Samsung 303C.  This is after over one year of extensively using ssh on this machine with no such problems.  

The cursor works fine for a minute or so of typing, then disappears, or freezes in the wrong place.  The problem seems to start either after using a ctrl key sequence, or after running a program like top, emacs, etc.  Just typing alphanumeric characters into the prompt doesn't seem to trigger the problem (but maybe I haven't tried long enough).

I am not on beta or dev channel, and never have been on this machine.

I tried powerwash and it didn't help.

Running in screen or tmux doesn't solve the problem (and doesn't cause it either as it can happen in the login shell too).

There seem to be no problems with pointer or keyboard use outside the terminal.

The same problem happens using crosh, or when using ssh launched from outside the browser.

All ssh options are set to default, and the problem happens equivalently when connecting to several destination servers.

Robert Ginda

unread,
Jun 23, 2014, 12:15:11 PM6/23/14
to kshe...@umich.edu, chromium-hterm, Bibin Thomas
Can you check the js console for errors and confirm that zoom is at 100%?


Robert Ginda

unread,
Jun 23, 2014, 1:12:42 PM6/23/14
to Kerby Shedden, chromium-hterm, Bibin Thomas
Also, please check `stty size` and see if it reports the correct terminal dimensions.  I think we may have an issue setting the correct dimensions on startup.  If so, resizing the terminal should fix the issue.

Kerby Shedden

unread,
Jun 23, 2014, 11:10:33 PM6/23/14
to Robert Ginda, chromium-hterm, Bibin Thomas
Thanks for your response.

I am at 100% zoom.  

stty size reports "36 149" when the window is maximized.  Resizing the ssh window doesn't solve the problem for me (maybe that's not what you meant).  I also tried "reset" and "stty sane", but neither helped.

I attached a screenshot showing the terminal window and all terminal settings.  You can see the red cursor in the lower left corner, and the lack of a cursor on the active line in the terminal.


Screenshot 2014-06-24 at 9.28.48 AM.png

nwmc...@gmail.com

unread,
Jun 28, 2014, 11:53:59 AM6/28/14
to chromiu...@chromium.org, tomka...@gmail.com
++

unlo...@gmail.com

unread,
Jul 17, 2014, 9:45:45 AM7/17/14
to chromiu...@chromium.org, tomka...@gmail.com
I am having the same issue, btw.  I am on Chrome Canary (so not too surprised).  But I don't want this bug to creep out there in a later release.

I see it more than in vim.  Also in shell, emacs, less, and other CLI stuff.

Sometimes the cursor gets stuck, like in the wrong place (bottom of screen usually).  Mostly it just disappears.

In emacs, it appears / disappears as I move my cursor around.

I always have to close/reopen my shell window and then it's OK for like 5 mins.

tks,
Dave

Robert Ginda

unread,
Jul 17, 2014, 12:39:38 PM7/17/14
to unlo...@gmail.com, chromium-hterm, Bibin Thomas
Check the bug I mentioned in my initial reply.  We have a workaround on the current Secure Shell (dev) release.


--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.

Daniel Baker

unread,
Jul 28, 2014, 11:57:13 AM7/28/14
to chromiu...@chromium.org, unlo...@gmail.com, tomka...@gmail.com
I was having the same issue, using the dev channel seems to fix it...  I was very confused for a bit though - as I live in my terminal :)  

sc...@entercastle.com

unread,
Sep 19, 2014, 1:22:21 AM9/19/14
to chromiu...@chromium.org, unlo...@gmail.com, tomka...@gmail.com
I started seeing this behavior a few days ago on the stable channel. I moved to the dev channel because it seemed like a few others in this thread had luck with that, but it didn't resolve my issue: the cursor is still unreliable.

Any ideas to try next?

Robert Ginda

unread,
Sep 19, 2014, 12:24:11 PM9/19/14
to sc...@entercastle.com, chromium-hterm, David Buchanan, Bibin Thomas
Are you using the built-in terminal in Chrome OS that you get to from Ctrl-Alt-T?  If so, try installing Secure Shell, it will fix crosh.  The next Chrome OS release should have crosh fixed by default.

Scott Lowe

unread,
Sep 19, 2014, 12:35:04 PM9/19/14
to Robert Ginda, chromium-hterm, David Buchanan, Bibin Thomas
Installing Secure Shell fixed it after a Powerwash. Thanks for the quick response!

Scott Lowe   |   Co-Founder & CTO   |   Castle   |   @entercastle   |   (918) 685-0032
Reply all
Reply to author
Forward
0 new messages