10-23-2005
simulate text mode in X-Windows
Hi.
I need to run old full-screen text-mode application under X-Windows. (By the way it is touch-screen calibrator firmware). The screen resolution is to be 1280x1024 exactly. The program expect text-mode geometry 80x25. Running xterm (no window manager) I have adjusted the font pararameters to the wanted width, but I cannot find the font or its size to make xterm so long in height (I always had about 2.5 sm free space in the bottom).
Can anybody tell the way (switch, font ?) to make a xterm window be 1280x1024 and place 80x25 symbols?
Can I using some font editor open some font and increase a little its character height? It doesn't how ugly the font will appear.
Give me advice, please!
Mi6
8 More Discussions You Might Find Interesting
1. IP Networking
Hi people... Is there any way to configure the conection i text mode ? I need to know how to make the modem work and how to configure a dial up conection in text mode by redhat 7.1 and if possible how to configure the email...
I use the workstation installation...any help will be welcome...... (2 Replies)
Discussion started by: furioso
2 Replies
2. UNIX for Dummies Questions & Answers
hello all
I saw somewhere there is some kind of version of emacs in full text mode ?
how can I get/download it? if I have ordenry emacs installed can I start it in text mode?
thanks (2 Replies)
Discussion started by: umen
2 Replies
3. Solaris
Hi all
I have installed solaris 5.10 and it is loading in GUI mode by default.
I want to load in text mode by default. How to do this? How to switch from GUI to text mode and vise versa.?
Please help.. (2 Replies)
Discussion started by: johnl
2 Replies
4. Windows & DOS: Issues & Discussions
hello again all,
assume I can not log in to the windows installation, (maybe) because of a system file corruption or failure.. however, I do log in to the system using the windows CD with R (repair) mode, that is the command line prompt.
Is there a way in that command prompt to copy the files... (10 Replies)
Discussion started by: milhan
10 Replies
5. SuSE
Hi All,
I used to have my suse linux(VM) server in graphic mode but not anymore since morning. I cant rolback since i loose somuch work. Any idea how to it back to normal. Thanks (6 Replies)
Discussion started by: s_linux
6 Replies
6. Hardware
Dear All,
i am trying to install the redhat linux using graphical mode...but it stucks while probing video card...i have installed linux using text mode it works fine and whole the installation goes fine. after installation if i give startx command it again stucks....looks like a vga card... (9 Replies)
Discussion started by: zaheer.gr8
9 Replies
7. Programming
Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX
I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies
8. UNIX for Dummies Questions & Answers
This is a DEMO only...
Someone recently asked about creating a box to make something look nicer on screen.
I suggested that with careful colouring a 3D effect could be created...
Linux version; this also works on a Macbook Pro but is not as easy to see as the other code below:-
... (0 Replies)
Discussion started by: wisecracker
0 Replies
LEARN ABOUT REDHAT
set_display_switch_mode
set_display_switch_mode(3alleg4) Allegro manual set_display_switch_mode(3alleg4)
NAME
set_display_switch_mode - Tells Allegro how the program handles background switching.
SYNOPSIS
#include <allegro.h>
int set_display_switch_mode(int mode);
DESCRIPTION
Sets how the program should handle being switched into the background, if the user tabs away from it. Not all of the possible modes will be
supported by every graphics driver on every platform. The available modes are:
SWITCH_NONE
Disables switching. This is the default in single-tasking systems like DOS. It may be supported on other platforms, but you should use it
with caution, because your users won't be impressed if they want to switch away from your program, but you don't let them!
SWITCH_PAUSE
Pauses the program whenever it is in the background. Execution will be resumed as soon as the user switches back to it. This is the default
in most fullscreen multitasking environments, for example the Linux console, but not under Windows.
SWITCH_AMNESIA
Like SWITCH_PAUSE, but this mode doesn't bother to remember the contents of video memory, so the screen, and any video bitmaps that you
have created, will be erased after the user switches away and then back to your program. This is not a terribly useful mode to have, but it
is the default for the fullscreen drivers under Windows because DirectDraw is too dumb to implement anything better.
SWITCH_BACKGROUND
The program will carry on running in the background, with the screen bitmap temporarily being pointed at a memory buffer for the fullscreen
drivers. You must take special care when using this mode, because bad things will happen if the screen bitmap gets changed around when your
program isn't expecting it (see below).
SWITCH_BACKAMNESIA
Like SWITCH_BACKGROUND, but this mode doesn't bother to remember the contents of video memory (see SWITCH_AMNESIA). It is again the only
mode supported by the fullscreen drivers under Windows that lets the program keep running in the background.
Note that you should be very careful when you are using graphics routines in the switching context: you must always call acquire_screen()
before the start of any drawing code onto the screen and not release it until you are completely finished, because the automatic locking
mechanism may not be good enough to work when the program runs in the background or has just been raised in the foreground.
RETURN VALUE
Returns zero on success, invalidating at the same time all callbacks previously registered with set_display_switch_callback(). Returns -1
if the requested mode is not currently possible.
SEE ALSO
set_display_switch_callback(3alleg4), get_display_switch_mode(3alleg4), exmidi(3alleg4), exswitch(3alleg4)
Allegro version 4.4.2 set_display_switch_mode(3alleg4)