Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to show the contents of a file on Dialog box for which I have use the "--textbox" dialog and "--tailbox" dialog.

But it doesn't show the whole contents of file, it only shows some of the data.

How do I get it to show the entire file data?

share|improve this question
It is quite unreadable this way. You should not use the code tag (4 spaces at the beginning of the line) for plain text. –  petersohn May 20 '10 at 6:52
add comment

1 Answer

It has no sense to use both --textbox and --tailbox.

Use --textbox to display the whole file, use --tailbox to display only the last lines of the file.

For example, the following command will display the content of the whole file todo.txt in a dialog textbox of size 20x80.

dialog --textbox todo.txt 20 80
share|improve this answer
i have used --textbox but it just display me the last line of the file... –  user35319 May 21 '10 at 5:21
It's still the correct answer. Obvious question: does the file really have more than one line or has it been truncated by something else? –  pjc50 May 21 '10 at 14:00
ya the file has more than one line ofcourse.... –  user35319 May 24 '10 at 9:35
Have you tried with different files and different terminal emulators (xterm, rxvt, gnome-terminal, ...)? –  mrucci May 25 '10 at 5:00
ya i think there is problem in my text file that i want to display... thank you so much for helping me out –  user35319 May 26 '10 at 7:27
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.