Code Monkey home page Code Monkey logo

Comments (4)

thecapacity avatar thecapacity commented on July 19, 2024

Note the cursor is on the line just above print(...) in the attached screenshot

from zenburn.

jnurmine avatar jnurmine commented on July 19, 2024

Hi, this is due to the terminal application. I don't have a Mac Term at hand, but I'd guess your best bet is to use escape sequences accepted by your terminal in your .vimrc. Or, configure the terminal via its GUI if there's such a setting.

Also, test first in the terminal with:
printf '\033]50;CursorShape=2\x7
and
printf '\033]50;CursorShape=0\x7

If those changed the cursor, please try something like this in .vimrc:

let &t_EI = "\<Esc>]50;CursorShape=0\x7"
let &t_SI = "\<Esc>]50;CursorShape=0\x7"

If there was no change, the escape sequences above do not work.

from zenburn.

thecapacity avatar thecapacity commented on July 19, 2024

Thanks, it doesn't look like that changed the cursor... i.e. I tried it from the command line (had to add an extra ' at the end of the printf ... (hoping that was correct).

I'm not sure why it's MacTerm specific though?
- i.e. can't I just make the cursor yellow or something via a .vimrc file?

Really appreciate the feedback!

from zenburn.

jnurmine avatar jnurmine commented on July 19, 2024

Yes, extra ' was a good addition, I misplaced it, sorry.

Vim uses the terminal escape sequences to change things like the cursor color. If some particular code is not supported by the terminal, nothing happens.

I had a look at some Mac Term screenshots. Are you using Mac Term in Terminals/Emulation/Base Emulator "XTerm" (and xterm-256color) mode? Maybe there is some "Emulation Tweak" which can be enabled?

from zenburn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.