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

Invisible cursor #61

Closed
czo opened this issue Mar 2, 2015 · 2 comments
Closed

Invisible cursor #61

czo opened this issue Mar 2, 2015 · 2 comments

Comments

@czo
Copy link

czo commented Mar 2, 2015

How to change cursor visibility? i wrote a small python websocket proxy to forward xen's "xm console" standard input and output to term.js. Everything seems to working fine (including midnight commander, vi, etc) except the cursor. It's always invisible. tput civis/cnorm and any escape sequence found on the net does not help.

@walterl
Copy link

walterl commented Apr 23, 2015

I had the same problem. After reading through the source I found the following solution: term = new Terminal({ cols: 80, rows: 24, useStyle: true }). Specifically the useStyle: true part.

@chjj
Copy link
Owner

chjj commented Apr 23, 2015

You need to set the .terminal-cursor css class, but useStyle will do it automatically.

@chjj chjj closed this as completed Apr 23, 2015
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

3 participants