Exit from dialog command leads to overriding output above #7965

Open
opened 2026-01-31 01:17:10 +00:00 by claunia · 0 comments
Owner

Originally created by @ihor-sviziev on GitHub (May 6, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.815]
Windows Terminal version (if applicable): 0.11.1251.0

Steps to reproduce

  1. Open WSL Ubuntu 18.04
  2. Run command
HEIGHT=0
WIDTH=0
dialog \
    --backtitle "System Information" \
    --title "Menu" \
    --clear \
    --cancel-label "Exit" \
    --menu "Please select:" $HEIGHT $WIDTH 4 \
    "1" "Display System Information" \
    "2" "Display Disk Space" \
    "3" "Display Home Space Utilization"
  1. Press CTRL + C on your keyboard
  2. Try to see output that was shown before dialog
  3. Connect to ubuntu 18.04 machine via ssh, execute the same command
  4. Try to see output that was shown before dialog

Expected behavior

After step 4:

  • you should have a scroll
  • you should see commands that were above:
    example from Ubuntu 20.04:
    image

I would say on Ubuntu 20.04 new line appeared in the center of dialog, not the best experience, but much better than on Windows Terminal.

On Ubuntu 18.04 windows app it looks like this:

  • you should have a scroll
  • you should see commands that were above:
    image

After step 6:

  • you should have a scroll
  • you should see commands that were above:
    example from Ubuntu 20.04:
    image

In this case new line appeared just below the dialog.

On Ubuntu 18.04 Windows APP we have following:

  • you should have a scroll
  • you should see commands that were above:
    image

Actual behavior

After step 4:

  • no scroll at all
  • you can't see commands that were above
    image

After step 6:

  • scroll is present
  • you still can't see commands that were above (only ssh command you can see)
    image

Note: this issue also appeared on earlier versions. Hope it could be fixed before release 1.0 as it's really hard to use Windows Terminal in combination with scripts that using dialogs.

Originally created by @ihor-sviziev on GitHub (May 6, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18363.815] Windows Terminal version (if applicable): 0.11.1251.0 ``` # Steps to reproduce 1. Open WSL Ubuntu 18.04 2. Run command ```bash HEIGHT=0 WIDTH=0 dialog \ --backtitle "System Information" \ --title "Menu" \ --clear \ --cancel-label "Exit" \ --menu "Please select:" $HEIGHT $WIDTH 4 \ "1" "Display System Information" \ "2" "Display Disk Space" \ "3" "Display Home Space Utilization" ``` 3. Press CTRL + C on your keyboard 4. Try to see output that was shown before dialog 5. Connect to ubuntu 18.04 machine via ssh, execute the same command 6. Try to see output that was shown before dialog # Expected behavior **After step 4:** - you should have a scroll - you should see commands that were above: example from Ubuntu 20.04: ![image](https://user-images.githubusercontent.com/1873745/81142592-bc867f80-8f78-11ea-8483-e267cc5cacf7.png) I would say on Ubuntu 20.04 new line appeared in the center of dialog, not the best experience, but much better than on Windows Terminal. On Ubuntu 18.04 windows app it looks like this: - you should have a scroll - you should see commands that were above: ![image](https://user-images.githubusercontent.com/1873745/81143434-83e7a580-8f7a-11ea-8bb1-c5686f4e524e.png) **After step 6:** - you should have a scroll - you should see commands that were above: example from Ubuntu 20.04: ![image](https://user-images.githubusercontent.com/1873745/81142752-1be48f80-8f79-11ea-8d24-6871c8c4f282.png) In this case new line appeared just below the dialog. On Ubuntu 18.04 Windows APP we have following: - you should have a scroll - you should see commands that were above: ![image](https://user-images.githubusercontent.com/1873745/81143528-b72a3480-8f7a-11ea-9099-028be01057f8.png) <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior **After step 4:** - no scroll at all - you can't see commands that were above ![image](https://user-images.githubusercontent.com/1873745/81142383-3cf8b080-8f78-11ea-9b2b-0ab433f343fb.png) **After step 6:** - scroll is present - you still can't see commands that were above (only ssh command you can see) ![image](https://user-images.githubusercontent.com/1873745/81142494-7e895b80-8f78-11ea-93cd-f9368daf7471.png) Note: this issue also appeared on earlier versions. Hope it could be fixed before release 1.0 as it's really hard to use Windows Terminal in combination with scripts that using dialogs.
claunia added the Resolution-Duplicate label 2026-01-31 01:17:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7965