9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
AIX is really different from most distros I am used to. I am trying to set up my .bashrc so I did this in the file. I noticed when I ssh into the server or use the bash command for a new shell it was being ignored.
#-------------------------------------------------------------
# Source global... (2 Replies)
Discussion started by: cokedude
2 Replies
2. Red Hat
Hi,
I'm trying to customize the ksh prompt for users on a RHEL 6.6 system for having user@host pwd : $ and user@host pwd # in red color for root.
I think it's possible but i do not even succeded for a non root user :
I added in my ~/.kshrc :
PS1="Hello : " and it works
but when i... (4 Replies)
Discussion started by: Fundix
4 Replies
3. Shell Programming and Scripting
Hi,
I want to monitor our batch jobs at a specific interval for later analysis to see the performance and CPU utilization
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
ps aux|grep dsadm|head
xxxxx 386 0.0 0.0 103524 15448 pts/0 S Mar27 0:00... (6 Replies)
Discussion started by: ratheeshjulk
6 Replies
4. UNIX for Dummies Questions & Answers
By default, the files are creates with this permissions:-rw-rw-r--
Is it possible to customize that in such away that ,always created as 777.
Where i need to make changes?
Please guide me.
Thanks (2 Replies)
Discussion started by: pandeesh
2 Replies
5. UNIX for Dummies Questions & Answers
Currently I am using mailx command for sending mails.
But the mail is sent as from userid@servername by default.
Is it possible to customise the from mail address in mailx command?
Thanks (2 Replies)
Discussion started by: pandeesh
2 Replies
6. UNIX for Dummies Questions & Answers
Hello i'm just wondering how to customize the color of unix's (or SSH) background, cursor, and letter?
Thank you for your time (4 Replies)
Discussion started by: mgyeah
4 Replies
7. Red Hat
Hello Every One,
I am not sure if this is the correct forum to post this question. But please help me with your ideas.
I have got a work (proj) where i need to customize the RHEL OS . This would involve building packages, installing them , correcting privileges etc and all these... (4 Replies)
Discussion started by: shirsha
4 Replies
8. UNIX for Dummies Questions & Answers
i have a question about setting the background in a workspace in CDE.
I have CDE runnning on Solaris 8 here at work and I want to use some images I have as the background in or two of the workspaces. When I use xv on the image and choose the option the option from the Display Menu -> Root:... (1 Reply)
Discussion started by: Kanu77
1 Replies
9. UNIX for Dummies Questions & Answers
Does anyone now how to customize an xterm window in solaris to dynamically 'pwd' in the banner. I know how to launch with xterm -n 'cwd' but it does not change when I change dir's. (4 Replies)
Discussion started by: toddy44
4 Replies
desktop_color_depth(3alleg4) Allegro manual desktop_color_depth(3alleg4)
NAME
desktop_color_depth - Finds out the desktop color depth. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int desktop_color_depth();
DESCRIPTION
Finds out the currently selected desktop color depth. You can use this information to make your program use the same color depth as the
desktop, which will likely make it run faster because the graphic driver won't be doing unnecessary color conversions behind your back.
Under some OSes, switching to a full screen graphics mode may automatically change the desktop color depth. You have, therefore, to call
this function before setting any graphics mode in order to retrieve the real desktop color depth. Example:
allegro_init();
...
if ((depth = desktop_color_depth()) != 0) {
set_color_depth(depth);
}
RETURN VALUE
Returns the color depth or zero on platforms where this information is not available or does not apply.
SEE ALSO
get_desktop_resolution(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4)
Allegro version 4.4.2 desktop_color_depth(3alleg4)