08-05-2001
Fix X Display Resolution
Hi TAT,
There are two basic programs for adjusting the settings
for your X windows:
My favorite is the text based -
xf86config
or use -
Xconfigurator
Normally try using the defaults in xf86config, usually its
just a matter of experimenting to see what looks best
with your monitor and video card.
Instead of starting your X windows each time to check
your results. You can test your settings with the
command:
Xtest
If you have your system configured to automatically load
X windows when you boot so you can't see what to do -
then reboot and press Ctrl-X several times to get a text
screen.
Here are a few key commands that may help:
Screen is haywire and you want to exit X windows -
ctrl-alt-backspace
Changed login consoles and you want X to redisplay -
ctrl-alt-F7
Enjoy!
9 More Discussions You Might Find Interesting
1. Solaris
Hi All
I've been having a lot of errors logged on the Cisco Catalyst (4000 series) which one of my Solaris servers is patched into. I have a feeling they are duplex related, but I'm a bit stuck as to how to confirm that.
How do I:
1. Check the duplex settings on my eri0 card?
2. Set the... (3 Replies)
Discussion started by: saabir
3 Replies
2. UNIX for Dummies Questions & Answers
Total newbie here!!
How do I view and alter network settings (ip address, subnet mask and default gateway) in UNIX?
Thanks in advance.. (3 Replies)
Discussion started by: ZappaDub
3 Replies
3. UNIX for Dummies Questions & Answers
Hello new to unix,
I have Mac os tiger on a g3 ibook. There are only two monitor settings,
the largest being 600x800. Can I add a larger setting from the command line?
Thanks,
Alicia (0 Replies)
Discussion started by: laughhearty
0 Replies
4. UNIX for Advanced & Expert Users
Hi all,
When i am using an mailx command to send an email to my work email(say
abc@company.com) I am getting the following mailer dameon error at /var/email
This is a MIME-encapsulated message
--l7OJ7XfN022568.1187982453/devas08.company.com
The original message was received at Fri,... (4 Replies)
Discussion started by: ammu
4 Replies
5. BSD
Hi everyone.
I'm trying to setup eMule and torrents on the local network behind the BSD server. And everything seems to work except one detail - it works as long as ${fwcmd} add deny log tcp from any to any in via ${oif} setup
is commented out. Meaning that not only required ports are open,... (1 Reply)
Discussion started by: reality
1 Replies
6. Linux
Hi,
How to set ip address in linux.
Regards,
Guguli (1 Reply)
Discussion started by: guguli
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
from my Windows Workstation I can connect with PUTTY to an AIX 6.1 unix server.
On AIX via PUTTY I run DBCA which has a grphical interface.
Then :
#DISPLAY=local_host:0.0 ; export DISPLAY
$(hostname) $(whoami):/appli/oracle/product/10.2.0/db_1/bin#dbca
_X11TransSocketINETConnect()... (12 Replies)
Discussion started by: big123456
12 Replies
8. HP-UX
Hi all
My first post here. I've been told certain things regarding HP-UX's .sh_history file which I'm not so sure I agree with completely.
These things are that the history file gets flushed on every clean shell exit (plausible, but I doubt it seeing as there are more than 11 thousand lines... (9 Replies)
Discussion started by: kinetik
9 Replies
9. UNIX for Advanced & Expert Users
Hi all,
I am confusing myself with trying to set up a firewall and hope someone here can help me progress.
I have a small cluster of three Raspberry PI's running NOOBS, which I believe is a Debian fork.
I have a "Gateway" machine, if that is the right phrase, that has a USB Wifi dongle... (0 Replies)
Discussion started by: steadyonabix
0 Replies
LEARN ABOUT REDHAT
readkey
readkey(3alleg4) Allegro manual readkey(3alleg4)
NAME
readkey - Returns the next character from the keyboard buffer. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int readkey();
DESCRIPTION
Returns the next character from the keyboard buffer, in ASCII format. If the buffer is empty, it waits until a key is pressed. You can see
if there are queued keypresses with keypressed().
The low byte of the return value contains the ASCII code of the key, and the high byte the scancode. The scancode remains the same whatever
the state of the shift, ctrl and alt keys, while the ASCII code is affected by shift and ctrl in the normal way (shift changes case,
ctrl+letter gives the position of that letter in the alphabet, eg. ctrl+A = 1, ctrl+B = 2, etc). Pressing alt+key returns only the scan-
code, with a zero ASCII code in the low byte. For example:
int val;
...
val = readkey();
if ((val & 0xff) == 'd') /* by ASCII code */
allegro_message("You pressed 'd'
");
if ((val >> 8) == KEY_SPACE) /* by scancode */
allegro_message("You pressed Space
");
if ((val & 0xff) == 3) /* ctrl+letter */
allegro_message("You pressed Control+C
");
if (val == (KEY_X << 8)) /* alt+letter */
allegro_message("You pressed Alt+X
");
This function cannot return character values greater than 255. If you need to read Unicode input, use ureadkey() instead.
SEE ALSO
install_keyboard(3alleg4), ureadkey(3alleg4), keypressed(3alleg4), clear_keybuf(3alleg4), simulate_keypress(3alleg4)
Allegro version 4.4.2 readkey(3alleg4)