0x2c7/ruby_jard

[BUG] empty space below the prompt when running in Rails project on WSL/Ubuntu

ADTC opened this issue · 2 comments

ADTC commented

Describe the bug
Jard does not take up the full height of the console window. There is empty space below the prompt.

To Reproduce
Steps to reproduce the behavior:

  1. Install jard on a Ruby on Rails project.
  2. Add the jard command somewhere in the project.
  3. Run rails server (and perform action to launch jard if needed).
  4. See jard console.

Expected behavior
Jard takes up the full height of the console window.

Screenshots
image

Environment:

  • OS: Ubuntu 20.04.2 LTS running on WSL (Windows Subsystem for Linux; Windows 10)
  • Terminal Emulator: Xterm from Ubuntu on Windows Terminal
  • tput colors: 256
  • echo $TERM: xterm-256color
  • stty: speed 38400 baud; line = 0; -brkint -imaxbel
  • Do you use tmux/screen or similar tty multiplexer? No. Not that I know of.
ADTC commented

Note: After using help and before using list it seems the Terminal is fully aware of the 5 extra lines. But jard is ignoring them:

image

ADTC commented

Looks like this is by design? Perhaps the space could be removed if the screen is too short in height. Why does it have the space anyway?

BTW, AWESOME TOOL! I learnt a lot just by debugging. I just wish there is a way to browse the UI like looking through the list of variables, expanding and collapsing them, hiding the threads list or backtrace list, etc.

Edit: So I noticed pretty much everything is configurable. In the end, the problem is it's not configurable on the fly, and the help command did not point me to this page about configuring it.

I don't know yet if any of the layout options gets rid of the space. Hope so!