Win10, alternative screen buffer, cursor doesn't blink

May 20, 2008
11,415
99
Syracuse, NY, USA
In Win10/64, stand-alone TCC, after "echo %@consoleb[0]", the cursor doesn't blink in the new buffer. If I go back to the original buffer, it blinks.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
Talk to Microsoft - TCC doesn't have any control over that.
I dunno! If I do this in a plugin command
Code:
Sleep(5000); honk();
    HANDLE hNew = CreateConsoleScreenBuffer(GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, CONSOLE_TEXTMODE_BUFFER, NULL);
    SetConsoleActiveScreenBuffer(hNew);
    Sleep(5000);
I see a nice steadily blinking cursor until the end of the second Sleep. Then, when the prompt appears, the behavior is unpredictable. The cursor may not blink at all, or it may blink oddly, as if it's being controlled by two (independent) timers. I'm curious ... does issuing the prompt do anything at all that would/could affect the blinking of the cursor?
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
There's a Windows API "SetCaretBlinkTime" that adjusts the console cursor blink rate.

TCC never calls that API. And issuing the prompt does nothing that should affect the cursor blinking. On my system, an "echo %@consoleb[0]" does not affect the cursor blinking. (Win 10.0.18298.1000)
 
May 20, 2008
11,415
99
Syracuse, NY, USA
Try "echo %@consoleb[0]" twice. In a stand-alone test EXE that uses SetConsoleActiveScreenBuffer I have to do it twice (i.e., go to a second alternative buffer) to see the misbehavior. But it was there, so apparently it has nothing to do with TCC.

When did you get 10.0.18298.1000? I'm on 18290.rs_prerelease.181121-1501 (10.0.18290.1000).
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
Try "echo %@consoleb[0]" twice. In a stand-alone test EXE that uses SetConsoleActiveScreenBuffer I have to do it twice (i.e., go to a second alternative buffer) to see the misbehavior. But it was there, so apparently it has nothing to do with TCC.

When did you get 10.0.18298.1000? I'm on 18290.rs_prerelease.181121-1501 (10.0.18290.1000).

I tried it 10 times in a row, never had a problem with the cursor.

I'm on the fast ring; got 182898 last night.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
I tried it 10 times in a row, never had a problem with the cursor.

I'm on the fast ring; got 182898 last night.
I think I am too. Was it pushed on you?

From what I could Google up, it seems they did a lot of work on the console cursor. Maybe they fixed it.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
182898 is on its way. Getting a new version of the OS clobbers some customizations of mine, notably
1. my PSUBSTs are removed
2. I lose write access to a subkey of HKLM\...\Services (gotten with the ancient SUBINACL.EXE)
3. I get back all the stuff in "This PC" that I've hidden (3DObjects et al.)

This will be my first chance to test a REG file and a BTM that will (hopefully) fix all that.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
Did you have builds between 18290 and 18298? I had monkeyed with a GP telemetry policy and that had an effect on my updates. I backed off on that and then could find the latest.
 
Similar threads
Thread starter Title Forum Replies Date
KarstenG PSUBST issues with Win10 2004 ? Support 4
vefatica Win10 woes. Support 4
vefatica Win10's ANSI doesn't like 2>NUL Support 10
vefatica TCMD output invisible on Win10 Support 22
V Ctrl-Home/End don't work in Win10 Support 3
samintz How to? Drag & Drop in Win10 Support 2
jaltman tcmd 21.0.19 win10 16179 console window loses content Support 2
T @execstr[] on Win10 Support 5
TT's Help! Uninstalling TCC did not restore cmd.exe as Win10 default batch file processor. Support 4
P Color directories in Win10 build 10586 console Support 11
M No line wraps if last line of the screen buffer is reached Support 5
krischik Take Command opens with (almost) white screen and then hangs Support 3
O Why this screen? Support 10
M TCC screen text bright colors not as bright in 24 as 23 Support 5
R Vertical scroll bar disappeared with SCREEN Support 6
T How to? Show the values of batch variables on the TCC screen Support 21
T How to? Off screen move? Support 3
G Odd problem - screen brightness Support 4
R Find in screen buffer - find next behavior Support 0
samintz How to? Screen capture with color Support 13
fishman@panix.com Can I start TCC in full screen mode? Support 9
G Linux curses (full screen) crashes TC Support 1
L w10 - half screen Support 2
I TC "Registering" but NOT Registering, Now Hung on TCMD Option Screen Support 2
Jay Sage Ctrl-C Not Working Reliably to Copy Screen Content Support 4
L Full Screen in Office 2013 theme chars missing Support 8
J Screen Capture (Console Mode) Support 5
H V15 installer difficult to use with JAWS screen reader Support 0
knudvaneeden cls in TakeCommand screen does not clear full screen Support 26
G WAD Pipe clears screen Support 2
S How to? enable or disable screen saver password Support 5
J Color command and Screen Buffer. Support 2
H VIEW not "screen reader friendly: Support 7
fishman@panix.com Is there a way to get the HELP screen to open maximized? Support 4
O Pausing screen? Support 2
J Utility to Save/Restore current screen Support 16
Joe Caverly Clearing a section of the screen works in CMD, not in TC Support 2
Roedy Screen background colours Support 1
A TakeCommand screen width Support 1
I Environment variable in OPTION screen? Support 2
G Cls Does not appear to clear screen Support 8
D TCC - Full Screen/History window conflict - workaround? Support 4

Similar threads