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

[zti] cursor disappears when on an input field with underscores #77

Open
Christopher-Chappell opened this issue Aug 15, 2023 · 11 comments · May be fixed by #166
Open

[zti] cursor disappears when on an input field with underscores #77

Christopher-Chappell opened this issue Aug 15, 2023 · 11 comments · May be fixed by #166
Assignees

Comments

@Christopher-Chappell
Copy link

For example, from ISPF 3.4 you might see the following screen:
image

From zti, if the cursor is on top of one of the input fields, it is essentially invisible (at least with macos Terminal). I can turn on insert mode in order to see the cursor, or move it, but for some applications you need to turn on overtype mode in order to properly interact with those fields. I don't know if there is any way to make the cursor appear in these circumstances. I vaguely remember there being a crosshair option which may or may not be useful, but ideally I shouldn't need that to be able to see my cursor's position. Changing the cursor shape in Terminal settings also doesn't affect the appearance when in session, so I'm guessing that is to some extent controlled by zti.

@najohnsn
Copy link
Member

Zti is trying to set the "blinking underline" cursor setting. Unfortunately, your terminal emulator does not seem to work well with such a cursor when it is on an underlined space. Maybe, instead, the "default" cursor should be used? Though the "blinking underline" was chosen so that it would be the same on all emulators - as opposed to letting the emulator choose what the "default cursor" should look like.

@Christopher-Chappell
Copy link
Author

Yeah, even if it was just something that lets me toggle between ZTI's setting and my default.

@AnthonyGiorgio
Copy link
Member

For what it's worth, the GNOME Terminal application properly supports the blinking underline cursor. Here's how it looks on my system.
image

@najohnsn
Copy link
Member

After seeing the above screenshot, it made me realize that colors look off in the original screenshot. I'm not confident, but maybe if the colors get fixed, the cursor will become visible? @Christopher-Chappell, can you try export TNZ_COLORS=256 before running zti and see if that changes your experience? (at the very least, it should fix your colors)

@Christopher-Chappell
Copy link
Author

that might just be how I set up my color settings, but I'll try it

@Christopher-Chappell
Copy link
Author

Christopher-Chappell commented Oct 12, 2023

image

well the colors are fixed, but I still don't see the underscore appearing. I'm guessing this is a Terminal.app thing.

@najohnsn
Copy link
Member

Yeah, it's a Terminal.app thing it doesn't provide a way to see an underline cursor when it is on top of an underline character.

Your colors still surprise me a bit. Notice how Anthony's "menu bar" is in white letters and yours is in blue. But I suppose that could be your ISPF color settings. Maybe you have White set to BLUE or something instead of this:
image

@Christopher-Chappell
Copy link
Author

The white text menu bar might be related to the "tab to action bar choices" option in ISPF options. Turning it off changes the color of those items.

I while back I went through on our development system and tried a few different color arrangements, switching blue / green / turquoise / white around to where I found the combination less jarring, and drew my attention to fields more easily. I eventually settled on the setting I have now, but I realize it's not default.

@najohnsn
Copy link
Member

@Christopher-Chappell, in cases where you see the cursor in zti, is it blinking?

@Christopher-Chappell
Copy link
Author

@Christopher-Chappell, in cases where you see the cursor in zti, is it blinking?

Yeah, it does blink after a couple seconds when the cursor is on top of any other character. I tried squinting at my screen when it's on top of an underline and it does not blink or change anything there.

@v1gnesh
Copy link

v1gnesh commented Apr 24, 2024

Just seeing this.. I get this too, when in 3.17.
Kinda unrelated but when in Omeg's E3270UI, if I do a /, I don't get the pop-up window.
This is with Windows Terminal and cmd.exe

@najohnsn najohnsn linked a pull request Nov 1, 2024 that will close this issue
@najohnsn najohnsn self-assigned this Nov 1, 2024
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

Successfully merging a pull request may close this issue.

4 participants