07-01-2010
Display a menu on bottom right of screen
Hi,
I have a menu of around 10 lines with options.
I want to display it in bottom right corner of screen for better display.
I can do it with clear screen. But I don't want to use it, because it will clear the existing text. After one choice from menu is executed, the menu should just place itself on bottom right corner of screen without clearing the text above.
I have no idea how to do it in korn shell.
Does korn allow to print text on particular pixels/locations on screen as it is possible with C?
Can anyone give me any idea?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I control the screen output when trying to read a large file onto the screen x number of lines at a time. I'm trying to use this is a bourne shell script. I want to display 10 lines of a file, pause the screen so that a user can read the file, and then display the next 10 lines of the file,... (6 Replies)
Discussion started by: jrdnoland1
6 Replies
2. Shell Programming and Scripting
Hello All,
I have a file that is formatted like this
1234556
1234567
1234588
1123888
1999999
1010101
1919191
1919191....
for a total of 26000 + lines
how do I get a script to read lets say 50 lines at a time
and display the output to the screen in column format around 5 or 6... (2 Replies)
Discussion started by: zilla30066
2 Replies
3. Shell Programming and Scripting
Hi everyone,
I'm new to Linux and bash scripting.
Question? How can I display a menu at the bottom of the screen when displaying a content of a file with the less command?
Like in gvim with bash support, when debugging or testing your script this text "Press enter or type command to... (0 Replies)
Discussion started by: Qwond
0 Replies
4. AIX
Hi,
How can i increase the size of my display on AIX 5.3.What i mean is e.g if i do and ps -ef i would get some like:
/data/app/oracle/product/10.2
/usr/bin/ksh /usr/local/bin/s
i want it to show the whole thing on the screen without cutting it,because there is still space on the screen... (0 Replies)
Discussion started by: sellafrica1
0 Replies
5. Shell Programming and Scripting
So I'm pretty green still at this, and right now I don't even have the IF statements in just trying to get this part to work. I want to basically click optino 1,2,3,4 for which logs I want to search, and then be able to put in the variable I want to grep out? Sounds easy just not clear in my mind... (4 Replies)
Discussion started by: xgringo
4 Replies
6. UNIX for Advanced & Expert Users
I connect via vnc to a linux computer.
after a logout, I cannot see the files on the screen (although i can see the screensaver).
I can open a terminal and see the files etc.
How can i see the files on the screen again? (5 Replies)
Discussion started by: FelipeAd
5 Replies
7. Shell Programming and Scripting
Hi Guys,
Any good reference for me to perform user database update statement on table which has quite number of fields could be updated depend on user specified column name and the value to assign.
All the approaches are welcome and appreciated.
Thanks. (1 Reply)
Discussion started by: ckwan123
1 Replies
8. Shell Programming and Scripting
I am trying to display the text the user selects from a bash menu. The below will display the menu and allow the user to enter a number, but will not display the choice selected.
bash
while true
do
printf "\n please make a selection from the MENU \n
... (4 Replies)
Discussion started by: cmccabe
4 Replies
9. Post Here to Contact Site Administrators and Moderators
When I try to look at some of the posts (like "Rookie Grandmother"), I see the thread title and the menu at the bottom, but not the text of the post in the middle. I can see ALL of the posts in the Recent menu, but NONE of the others.
The screenshot I attached shows the situation.
I just... (2 Replies)
Discussion started by: JRWoodward
2 Replies
10. Shell Programming and Scripting
I pass a number to my script. Passing "1" below.
./getfile.sh 1
echo "User entered: $1"
ls -ltr *.conf | sed -n '$p'
I wish to use ls -ltr i.e list files in ascending order of time the latest showing at the bottom of the output.
Number 1 should get me the last row of ls -ltr output i.e... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT OPENSOLARIS
tk_popup
tk_popup(1T) Tk Built-In Commands tk_popup(1T)
__________________________________________________________________________________________________________________________________________________
NAME
tk_popup - Post a popup menu
SYNOPSIS
tk_popup menu x y ?entry?
_________________________________________________________________
DESCRIPTION
This procedure posts a menu at a given position on the screen and configures Tk so that the menu and its cascaded children can be traversed
with the mouse or the keyboard. Menu is the name of a menu widget and x and y are the root coordinates at which to display the menu. If
entry is omitted or an empty string, the menu's upper left corner is positioned at the given point. Otherwise entry gives the index of an
entry in menu and the menu will be positioned so that the entry is positioned over the given point.
EXAMPLE
How to attach a simple popup menu to a widget.
# Create a menu
set m [menu .popupMenu]
$m add command -label "Example 1" -command bell
$m add command -label "Example 2" -command bell
# Create something to attach it to
pack [label .l -text "Click me!"]
# Arrange for the menu to pop up when the label is clicked
bind .l <1> {tk_popup .popupMenu %X %Y}
SEE ALSO
bind(1T), menu(1T), tk_optionMenu(1T)
KEYWORDS
menu, popup
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTk |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tk is available on http://opensolaris.org.
Tk 4.0 tk_popup(1T)