swaros / contxt

context manager
MIT License
0 stars 0 forks source link

WezTerm line output seems having wrong length #152

Open swaros opened 1 year ago

swaros commented 1 year ago

Describe the bug console output is looking wrong in WezTerm.

To Reproduce Steps to reproduce the behavior:

  1. open wezTerm
  2. just execute an dir command, or any other that makes use of output formats
  3. see the screen

Expected behavior the output should not break the lines also in WezTerm.

Screenshots image

Desktop (please complete the following information):

Additional context it seems that it is having an unexpected offset on the left side. overall the created string line is one char to big in WezTerm

swaros commented 1 year ago

expected screen looks like this image

swaros commented 11 months ago

weird behavior. this happens once after first start and then it seems working as expected.

image

if i am back to the "working state" i did not found a way to get back to the "fail state". also wezTerm seems the only one having the issue.

will keep this issue at least til i know what behavior triggers this misleading size calculation

swaros commented 11 months ago

there should be an check in the ctxout module for changed terminal size. right now this is executed once. but this is awkward, because if the terminal size is changed, the whole output is destroyed.

at least after a couple of time (~ 200ms) and recheck of the terminal size should be done, and if there is an difference, the plugins should be updated.