Giter Club home page Giter Club logo

Comments (7)

cbucher avatar cbucher commented on August 19, 2024

There was a such cursor in the original project (Console2).
Authors have commented out this code in sources.
I don't know the reason. I will see.

from console.

horeah avatar horeah commented on August 19, 2024

Ok, many thanks!

And even more thanks for the revived project!

On Wed, Oct 30, 2013 at 6:24 PM, Christophe Bucher <[email protected]

wrote:

There was a such cursor in the original project (Console2).
Authors have commented out this code in sources.
I don't know the reason. I will see.


Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-27407063
.

from console.

cbucher avatar cbucher commented on August 19, 2024

beta version 1.09.0.13304

from console.

horeah avatar horeah commented on August 19, 2024

The new "Console" cursor works nicely for my shell, and is correctly resized.

If I use cmd.exe as a shell, though, the cursor won't resize when I press Insert.

In both cases, the cursor color that I configure in the Tabs pane is ignored for this type of cursor (maybe this is on purpose?)

from console.

cbucher avatar cbucher commented on August 19, 2024

the size is retrieved by GetConsoleCursorInfo
switching between overwrite mode and insert mode doesn't modify this value
and I find no way to know in which mode the current console is
(GetConsoleMode returns the registry settings and not the current state of a console)

color is forced to white (as in Windows console, the cursor uses XOR painting)
XOR with other colors produces glitches, visual result is ugly

from console.

horeah avatar horeah commented on August 19, 2024

On Thu, Oct 31, 2013 at 6:09 PM, Christophe Bucher <[email protected]

wrote:

the size is retrieved by GetConsoleCursorInfo
switching between overwrite mode and insert mode doesn't modify this value
and I find no way to know in which mode the current console is

My shell uses SetConsoleCursorInfo to set the cursor size when Insert is
pressed. And the cursor resizing works and looks fine (in both the standard
terminal and Console).

With cmd.exe inside Console, the cursor resizing doesn't work; this
probably means that cmd.exe uses some other way of changing the cursor (?!)

color is forced to white (as in Windows console, the cursor uses XOR

painting)
XOR with other colors produces glitches, visual result is ugly

Makes sense.

from console.

cbucher avatar cbucher commented on August 19, 2024

conhost intercepts INS key press ; and changes an internal state "InsertionMode"
conhost draws the cursor depending of this internal state

But the state is wrong : if we call doskey /overstrike or doskey /insert the edition mode changes but the cursor stays the same.

I can not do better, I leave the code as is.

from console.

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.