2

This is the code than open a whiptail message box based on the content of the file in the file variable. The file has many lines.

$(whiptail --title "Opening file" --yesno "$(cat $file)" 78 78 3>&1 1>&2 2>&3)

Now the box is fixed in width and height. How to show a scrolling text box so I can see all of the text in the file?

Cyrus
  • 84,225
  • 14
  • 89
  • 153
provola
  • 342
  • 1
  • 3
  • 15

1 Answers1

1

The option --scrolltext is supposed to do this, and reading source code, it applies to textbox and messagebox (yesno is a special case of the latter), but in a quick check, I see no scrollbar. Perhaps it will work with the version of newt which you are using.

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105