Skip to content

KDE Konsole doesn't seem to respond to "get screen size" escape sequence #48

@arcivanov

Description

@arcivanov

X11 Konsole/bash on Fedora 33 with Python 3.9.1

Firstly, thank you for the project, it reminds me of the good-old Borland Turbo Vision, which was absolutely epic.

However, I just started writing a prototype and the most basic features seem not to work. I guess it's something specific with my setup (Python 3.9?), but I'm still going to report it in case the problem is unknown and global.

Just for the reference, other console tools like bpytop and s-tui work perfectly.

  1. Mouse is not working at all.
  2. TTY size is not retrieved.

I suspect it's all related to console comms but it's hard to say what's going on.

As far as TTY size I always end up going this route with res being []:

picotui/picotui/screen.py

Lines 144 to 146 in 7a26e62

res = select.select([0], [], [], 0.2)[0]
if not res:
return (80, 24)

bpytop uses os.get_terminal_size() which seems to work perfectly:
https://github.com/aristocratos/bpytop/blob/2fbdc35125ad5d9a9f613736f194a33ec69bb14b/bpytop.py#L651

Anybody else has issues with basic functionality like that? I'm running code virtually identical to the https://github.com/pfalcon/picotui/blob/master/example_menu.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions