10-01-2008
# you might find this fun
# does random color xterms
# want aixterm because i have code for /ksh shell that lets me control multi colored text, i.e. i have have diff file types have diff colors on aixterm /tty
if [[ $# = 0 || $1 = "-rand" || $1 = "-r" ]]
then
perl -e '
$fg=rand 2**24;
do { $bg = rand
2**24 }
while (unpack("%32b*", pack "N",($bg^$fg)&0xe0e0e0) < 8);
($fg, $bg) = map { sprintf "#%06x", $_ } $fg, $bg;
exec("xterm", , "-fn", "-fg", $fg, "-bg", $bg);
' fi &
fi
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a way to slowly scroll the output of a file instead of page or cat ?
Instead of one page at a time, I would like to slowly scroll the displayed output of the file. (12 Replies)
Discussion started by: darthur
12 Replies
2. Shell Programming and Scripting
Is there a way to maximize an xterm window in a ksh script?
I've tried a number of approaches, but none seem to have the desired affect.
All I want to accomplish is to have the window maximized upon being called in the script...i.e:
xterm -T MyNewXterm -e programToOpen & | maximized --or... (1 Reply)
Discussion started by: spieterman
1 Replies
3. AIX
Hi,
I'm using xterm and aixterm with Mwm on AIX, and having trouble controlling icon placement when minimising windows. Basically when I run an xterm or aixterm I want to be able to specify where the icon will be if minimised.
The man page mentions the "#geometry Geometry" option to aixterm,... (1 Reply)
Discussion started by: cunningdavid
1 Replies
4. UNIX for Advanced & Expert Users
Is there any way to change title of aixterm window online? Also is it possible to freeze first/last few lines online? (1 Reply)
Discussion started by: Soham
1 Replies
5. AIX
Hello,
can anyone help and suggest a way I can implement the following Idea:
I would like to use the status line in aixterm to display the current hostname as well as some other environment variables during the session. I have not been able to put any string and display that in the status line.... (0 Replies)
Discussion started by: gio001
0 Replies
6. UNIX for Advanced & Expert Users
been trying to get the mouse scroll wheel to page the terminal for about 2 yrs now on aixterm. any ideas. the below syntax does not work in aixterm but does work in xterm.
------------------------- this does not work in aixterm but does work in xterm,, with a cat Xdefult | sed... (1 Reply)
Discussion started by: nullwhat
1 Replies
7. UNIX for Dummies Questions & Answers
I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Discussion started by: keenansnews
1 Replies
8. AIX
There is this workstations that I sometimes work on and it annoys me because it does not have any vertical scrollbar enabled.
I did a Google on activating scroll bar but they talk about escape sequences that I have no clue on how to do this:
CSI ? P m h DEC Private Mode Set... (2 Replies)
Discussion started by: Browser_ice
2 Replies
9. HP-UX
How to scroll back and forwrd in HP-UX?
1.How to auto complete commands in HP-UNIX, which key should be used as in Linux "tab" key is being used.
2. How to scroll back and forward in HP-UX ; in Linux we use up and down arrow.:confused::confused::confused::confused: (3 Replies)
Discussion started by: manalisharmabe
3 Replies
10. UNIX for Dummies Questions & Answers
I figured out my question. mods please delete. Thank you (2 Replies)
Discussion started by: rpmischris
2 Replies
LEARN ABOUT OPENSOLARIS
scrl
scrl(3XCURSES) X/Open Curses Library Functions scrl(3XCURSES)
NAME
scrl, scroll, wscrl - scroll a window
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library... ]
#include <curses.h>
int scrl(int n);
int scroll(WINDOW *win);
int wscrl(WINDOW *win, int n);
PARAMETERS
n number and direction of lines to scroll
win pointer to the window in which to scroll
DESCRIPTION
The scroll() function scrolls the window win up one line. The current cursor position is not changed.
The scrl() and wscrl() functions scroll the window stdscr or win up or down n lines, where n is a positive (scroll up) or negative (scroll
down) integer.
The scrollok(3XCURSES) function must be enabled for these functions to work.
RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR.
ERRORS
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
clearok(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)
SunOS 5.11 5 Jun 2002 scrl(3XCURSES)