Thank you Brian for the port guidance and revisions, and thank you to Stuart and Ian for the terminal testing. I have hardened the curses initialization up in 2.1 to better support older terminals, which may not support ANSI color or cursor setting modes.

I plan to submit an updated port this weekend.  Really appreciate the feedback.

Pat

On 10/15/21 2:11 PM, Brian Callahan wrote:


On 10/15/2021 11:49 AM, Ian Darwin wrote:
> Unfortunately I can't replicate this. I tried just now with a freshly
> installed rxvt-unicode package. Tried both with and without tmux running in > urxvt, both worked. Let me know if there's some special setup you have and
> I'll try to track the problem down.
>
> ~Brian

I'm not sure what's triggering it, but looking at curs_set(3) doc
I think ERR should simply be ignored:

       The curs_set routine sets the cursor state is set to invisible, normal,        or very visible for visibility equal to 0, 1, or 2 respectively.  If        the terminal supports the visibility requested, the previous cursor
       state is returned; otherwise, ERR is returned.

This works but I don't know python so there might be a nicer way

  # Initialize curses
  try:
    curses.curs_set(2)
  except:
    1

Use the keyword "pass" instead of the constant 1.

Thanks Ian. How is this diff?

~Brian

--
Pat Jensen, CCIE #53452

Reply via email to