martanne / dvtm

dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs.
MIT License
857 stars 106 forks source link

Terminal size won't updated after resized if dvtm started using su -c #75

Open McSinyx opened 6 years ago

McSinyx commented 6 years ago

After running su -c dvtm, I shrink the terminal width and try to open Vim and it doesn't seem to recognize the new size:

2017-11-27t15 32 32

The bug isn't limited to programs with alternate screen as in #47 but also with cat. These pictures show the output of the command ran:

  1. Before resizing 2017-11-27t15 39 01
  2. After shrinking 2017-11-27t15 41 40

The problem could be avoided if one uses sudo instead but I'm curious about the reason behind this.

Edit: I'm using dvtm 0.15.2 provided by Debian testing repository.