HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Doubt about frames in a shell script
Operating System - HP-UX
1833873
Members
2116
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 02:28 AM
11-24-2004 02:28 AM
Hi guys,
Does anyone know how can I create frames (not the same, but as frames used in SAM) in a shell script?
Any tip will help.
thanks in advance.
Does anyone know how can I create frames (not the same, but as frames used in SAM) in a shell script?
Any tip will help.
thanks in advance.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 03:05 AM
11-24-2004 03:05 AM
Re: Doubt about frames in a shell script
Depending on what exactly you want to do, you could use "dialog".
http://hpux.connect.org.uk/hppd/hpux/Shells/dialog-0.9b/
Basically lets you create pretty windows asking questions, input boxes, etc.
Otherwise you'll most likely need to use the ncurses libraries in C.
Sy
http://hpux.connect.org.uk/hppd/hpux/Shells/dialog-0.9b/
Basically lets you create pretty windows asking questions, input boxes, etc.
Otherwise you'll most likely need to use the ncurses libraries in C.
Sy
GTCI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 03:10 AM
11-24-2004 03:10 AM
Solution
Hi Luciano,
You can do it using 'tput' command. But that would be very tedious and you have to keep track of ROW and COLUMN positions.
I suggest you use tools that are already there. For ex.,
http://hpux.cs.utah.edu/hppd/hpux/Development/Tools/xenmenu-0.8b/
It can help you create text based menus.
-Sri
You can do it using 'tput' command. But that would be very tedious and you have to keep track of ROW and COLUMN positions.
I suggest you use tools that are already there. For ex.,
http://hpux.cs.utah.edu/hppd/hpux/Development/Tools/xenmenu-0.8b/
It can help you create text based menus.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 03:43 AM
11-24-2004 03:43 AM
Re: Doubt about frames in a shell script
Hi,
Just to give you some idea, I am posting this sample script. It will create a small box on the right hand top corner and prints numbers upto 10 while printing something on the main window.
clear
cols=$(tput cols)
startx=1
(( starty = $cols - 10 ))
endx=7
endy=$cols
midx=4
(( midy = $starty + 4 ))
x=$startx
y=$starty
while [ $x -le $endx ]
do
tput cup $x $starty
printf "."
tput cup $x $endy
printf "."
(( x = $x + 1 ))
done
while [ $y -le $endy ]
do
tput cup $startx $y
printf "."
tput cup $endx $y
printf "."
(( y = $y + 1 ))
done
I=0
while [ $I -le 12 ]
do
tput cup $midx $midy
printf "%2d" $I
tput cup 1 1
printf "Working on item $I"
sleep 1
(( I = $I + 1 ))
done
clear
-Sri
Just to give you some idea, I am posting this sample script. It will create a small box on the right hand top corner and prints numbers upto 10 while printing something on the main window.
clear
cols=$(tput cols)
startx=1
(( starty = $cols - 10 ))
endx=7
endy=$cols
midx=4
(( midy = $starty + 4 ))
x=$startx
y=$starty
while [ $x -le $endx ]
do
tput cup $x $starty
printf "."
tput cup $x $endy
printf "."
(( x = $x + 1 ))
done
while [ $y -le $endy ]
do
tput cup $startx $y
printf "."
tput cup $endx $y
printf "."
(( y = $y + 1 ))
done
I=0
while [ $I -le 12 ]
do
tput cup $midx $midy
printf "%2d" $I
tput cup 1 1
printf "Working on item $I"
sleep 1
(( I = $I + 1 ))
done
clear
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP