Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

d_text_proc(3alleg4) [centos man page]

d_text_proc(3alleg4)						  Allegro manual					      d_text_proc(3alleg4)

d_text_proc, d_ctext_proc, d_rtext_proc - Dialogs procedure drawing text onto the screen. Allegro game programming library. SYNOPSIS
#include <allegro.h> int d_text_proc(int msg, DIALOG *d, int c); int d_ctext_proc(int msg, DIALOG *d, int c); int d_rtext_proc(int msg, DIALOG *d, int c); DESCRIPTION
These draw text onto the screen. The dp field should point to the string to display. d_ctext_proc() centers the string horizontally, and d_rtext_proc() right aligns it. Any '&' characters in the string will be replaced with lines underneath the following character, for dis- playing keyboard shortcuts (as in MS Windows). To display a single ampersand, put "&&". To draw the text in something other than the default font, set the dp2 field to point to your custom font data. SEE ALSO
exgui(3alleg4), exrgbhsv(3alleg4) Allegro version 4.4.2 d_text_proc(3alleg4)

Check Out this Related Man Page

exgui(3alleg4)                                                    Allegro manual                                                    exgui(3alleg4)

exgui - Using the GUI routines. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exgui DESCRIPTION
This program demonstrates how to use the GUI routines. From the simple dialog controls that display a text or a bitmap to more complex mul- tiple choice selection lists, Allegro provides a framework which can be customised to suit your needs. SEE ALSO
DATAFILE(3alleg4), DIALOG(3alleg4), END_OF_MAIN(3alleg4), MENU(3alleg4), active_menu(3alleg4), alert(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), d_bitmap_proc(3alleg4), d_box_proc(3alleg4), d_button_proc(3alleg4), d_check_proc(3alleg4), d_clear_proc(3alleg4), d_ctext_proc(3alleg4), d_edit_proc(3alleg4), d_icon_proc(3alleg4), d_keyboard_proc(3alleg4), d_list_proc(3alleg4), d_menu_proc(3alleg4), d_radio_proc(3alleg4), d_rtext_proc(3alleg4), d_shadow_box_proc(3alleg4), d_slider_proc(3alleg4), d_text_list_proc(3alleg4), d_text_proc(3alleg4), d_textbox_proc(3alleg4), d_yield_proc(3alleg4), do_dia- log(3alleg4), gui_bg_color(3alleg4), gui_fg_color(3alleg4), gui_mg_color(3alleg4), install_keyboard(3alleg4), install_mouse(3alleg4), install_timer(3alleg4), key(3alleg4), load_datafile(3alleg4), makecol(3alleg4), position_dialog(3alleg4), replace_filename(3alleg4), screen(3alleg4), set_dialog_color(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), unload_datafile(3alleg4), ustrtok(3alleg4), ustrz- cat(3alleg4), ustrzcpy(3alleg4), uszprintf(3alleg4) Allegro version 4.4.2 exgui(3alleg4)
Man Page

14 More Discussions You Might Find Interesting

1. Programming

C Reference Book

Hi All, Which one do you think is better as the C reference book: C in a Nutshell (O'Reilly, 2005) or C Primer Plus 5th ed. (Sams, 2004)? I knew both of them should be great, but I certainly do not want to buy both. Any suggestion? Thanks! (6 Replies)
Discussion started by: zx1106
6 Replies

2. Shell Programming and Scripting

**HELP** need to split this line faster than cut-command

Hi, A datafile containing lines such as below needs to be split: 500000000000932491683600000000000000000000000000016800000GS0000000000932491683600*HOME I need to get the 2-5, 11-20, and 35-40 characters and I can do it via cut command. cut -c 2-5 file > temp1.txt cut -c 11-20 file >... (9 Replies)
Discussion started by: daytripper1021
9 Replies

3. Shell Programming and Scripting

Learning Scripting

Hi All, I am facing an issue. I need your advise. I want to take my unix skills to the next level. I want to verse in scripting now. I got some understanding of programming. I did a little bit of C++, Assembly in College. I got some basics in perl. I am wondering if It would be best to... (3 Replies)
Discussion started by: Pouchie1
3 Replies

4. Programming

C While Loop not working like C++

Hi new to C give me a hand thank. do { bzero(input,256); printf("Please enter the country name!"); scanf("%s",input); //& character is essential for scanf(), %f = float, %399s as the last character to be the null character ('\0'). } while... (5 Replies)
Discussion started by: GQiang
5 Replies

5. UNIX for Dummies Questions & Answers

awk - change variable on fly

Hello All, I have csv file, where one of fields is date (yyyy/mm/dd 00:00:00). Using awk I am trying to find all records with date newer/older than specific date. My idea was to compare unix timestamps of both dates: start=`date +%s -d "$DateStart"` awk -v start="$start" -v current=`date +%s... (34 Replies)
Discussion started by: haczyk
34 Replies

6. Homework & Coursework Questions

sed & cut command issues

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: After using the egrep command to pull certain lines from the asg5f1 (creating the asg5f1c file), I am required... (1 Reply)
Discussion started by: robrom78
1 Replies

7. UNIX for Dummies Questions & Answers

Strange behaviour when output to terminal vs file (awk)

Hi all ! I noticed something very weird. I have a large pipe delimited file (20 fields/3,000 records) that looks like that: AAA|BBB|11111|22222|...|($NF of record 1) CCC|DDD|33333|44444|...|($NF of record 2) CCC|DDD|55555|66666|...|($NF of record 3) For the lines with same 1st and 2nd... (3 Replies)
Discussion started by: beca123456
3 Replies

8. Shell Programming and Scripting

Sorting a file with frequency on length

Hello, I have a file which has the following structure word space Frequency The file is around 30,000 headwords each along with its frequency. The words have different lengths. What I need is a PERL or AWK script which can sort the file on length of the headword and once the file is sorted on... (12 Replies)
Discussion started by: gimley
12 Replies

9. Shell Programming and Scripting

Extract certain columns from big data

The dataset I'm working on is about 450G, with about 7000 colums and 30,000,000 rows. I want to extract about 2000 columns from the original file to form a new file. I have the list of number of the columns I need, but don't know how to extract them. Thanks! (14 Replies)
Discussion started by: happypoker
14 Replies

10. Shell Programming and Scripting

sed not see last row

Hi Everyone! I have a problem my script. I'm useing sed to find the separate character in my text sed 's/"*"//g' ./myfile.txt My problem: When the last row is doesn't has enter in the end of line, the sed is not work. So if i have a 30 rows text i will see 29 rows separators. Please help... (9 Replies)
Discussion started by: snayper
9 Replies

11. Fedora

Shell Script - awk, begin, for and print

pointsb=`awk -v a2="$a2" -v b2="$b2" -v c2="$c2" -v yb="$yb" -v yc="$yc" \ 'BEGIN { for (y=yc; y<=yb; y++) { x = a2*y*y+b2*y+c2; print x, y }; }'` I am learning shell script. I was reading a script and got confused in this line. I understood that awk is allowing to assign the variable. But... (10 Replies)
Discussion started by: agriz
10 Replies

12. Shell Programming and Scripting

Wrong output when writing to file

Hello, I am having problem while redirecting output to a file where as on console output is proper. for dir in */; do printf "%s, " "$dir"; ls -m "$dir"; echo; done > output.txt Output of above command is coming in single line but when i am redirecting output to a file, single line i... (10 Replies)
Discussion started by: Manoj Rajput
10 Replies

13. Shell Programming and Scripting

Newbie help - parsing through a file

Hello guys, I am a newbie to all of this - I'd like some help with a file I have. It's a ~100mb CSV file with approximately 30 columns. What I'd like to do is to search through the file and REMOVE any lines with a certain case insensitive string in any of the columns: So my file looks... (4 Replies)
Discussion started by: Lokhtar
4 Replies

14. Shell Programming and Scripting

Split large xml into mutiple files and with header and footer in file

Split large xml into mutiple files and with header and footer in file tried below it splits unevenly and also i need help in adding header and footer command : csplit -s -k -f my_XML_split.xml extrfile.xml "/<Document>/" {1} sample xml <?xml version="1.0" encoding="UTF-8"?><Recipient>... (36 Replies)
Discussion started by: karthik
36 Replies