Sponsored Content
The Lounge What is on Your Mind? Which category do you belong to? Post 302988888 by wisecracker on Wednesday 4th of January 2017 12:52:51 PM
Old 01-04-2017
Thanks for the compliment guys but I always quote "Dirty Harry" here:-

"A man's got to know his limitations" and I am aware of mine. ;o)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

listing files that do not belong to current date

How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies

2. UNIX for Dummies Questions & Answers

listing files that does not belong to current date

How do we list all the file names in a directory that does not belong to current date. (3 Replies)
Discussion started by: esh.mohan
3 Replies

3. Post Here to Contact Site Administrators and Moderators

How to change the category?

Hi, I submitted my blog on UNIX in the links section. On submitting, i chose the category as Unix/Linux standards, which i now feel is incorrect. I would like to change the category of my link, but i don't find any option to change the category. Please help me in doing the needful. Thanks... (7 Replies)
Discussion started by: guruprasadpr
7 Replies

4. Shell Programming and Scripting

Split file into given category and others using awk

Hi All, Would it be possible using awk to split a given file into two files based on a certain condition such that one output file will contain all lines that fit the condition while the other output file will contain lines that did not fit the condition? Here is a sample input file ... (6 Replies)
Discussion started by: cympaulife
6 Replies

5. Shell Programming and Scripting

Listing files that belong to a certain year date?

I'm trying to list files, first by size and I'm using something like this ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies

6. Shell Programming and Scripting

extract the max value category

Hi, I have a file and I want the category for each row to be its highest value. gene highest medium lower lowest ABC 20 30 50 70 DEF 90 20 60 0 o/p gene highest medium lower lowest category ABC... (6 Replies)
Discussion started by: Diya123
6 Replies

7. UNIX for Dummies Questions & Answers

ldap , search groups that user belong

i want run query to identify witch groups that user A belong, CN=name,CN=Users,DC=mydomain ?? (1 Reply)
Discussion started by: prpkrk
1 Replies

8. Shell Programming and Scripting

Data filtering and category assigning

Please consider the following file, I have many groups which can be of 3 types, T1 (Serial_Number 1) T2 (Serial_Number 2) and T1*T2 (all other Serial_Number). I want to only consider groups that have both T1 and T2 present and their values are different from each other. In the example file,... (8 Replies)
Discussion started by: jianp83
8 Replies

9. Shell Programming and Scripting

Category and count with awk

I want to categorize and count the as below: Input file: A1 G1 C1 F1 A2 G1 C1 F1 A3 G1 C1 F2 A4 G1 C2 F2 A7 G1 C2 F2 A8 G1 C2 F3 A11 G1 C2 F3 A23 G1 C2 F3 B4 G1 C2 F3 AC4 G2 C3 F4 B6 G2 C4 F4 BB5 G2 C4 F4 A25 G2 C5 F4 B13 G2 C5 F5 D12 G2 C5 F5 D2 G2 C5 F5 (3 Replies)
Discussion started by: aydj
3 Replies

10. UNIX for Beginners Questions & Answers

Delete records that do not belong to that day

i have a requirement to delete records that do not belong to that day. For example in a file that came on July 31st ,2018 there are records that belong to Aug 1st,2018 as well and I want to find and delete those records. I want to delete anything with 01-Aug-2018. I have several files like that. I... (6 Replies)
Discussion started by: Priya
6 Replies
libcaca dirty rectangle manipulation(3caca)			      libcaca			       libcaca dirty rectangle manipulation(3caca)

NAME
libcaca dirty rectangle manipulation - Functions __extern int caca_disable_dirty_rect (caca_canvas_t *) Disable dirty rectangles. __extern int caca_enable_dirty_rect (caca_canvas_t *) Enable dirty rectangles. __extern int caca_get_dirty_rect_count (caca_canvas_t *) Get the number of dirty rectangles in the canvas. __extern int caca_get_dirty_rect (caca_canvas_t *, int, int *, int *, int *, int *) Get a canvas's dirty rectangle. __extern int caca_add_dirty_rect (caca_canvas_t *, int, int, int, int) Add an area to the canvas's dirty rectangle list. __extern int caca_remove_dirty_rect (caca_canvas_t *, int, int, int, int) Remove an area from the dirty rectangle list. __extern int caca_clear_dirty_rect_list (caca_canvas_t *) Clear a canvas's dirty rectangle list. Detailed Description These functions manipulate dirty rectangles for optimised blitting. Function Documentation __extern int caca_disable_dirty_rect (caca_canvas_t *cv) Disable dirty rectangle handling for all libcaca graphic calls. This is handy when the calling application needs to do slow operations within a known area. Just call caca_add_dirty_rect() afterwards. This function is recursive. Dirty rectangles are only reenabled when caca_enable_dirty_rect() is called as many times. This function never fails. Parameters: cv A libcaca canvas. Returns: This function always returns 0. __extern int caca_enable_dirty_rect (caca_canvas_t *cv) This function can only be called after caca_disable_dirty_rect() was called. If an error occurs, -1 is returned and errno is set accordingly: o EINVAL Dirty rectangles were not disabled. Parameters: cv A libcaca canvas. Returns: 0 in case of success, -1 if an error occurred. __extern int caca_get_dirty_rect_count (caca_canvas_t *cv) Get the number of dirty rectangles in a canvas. Dirty rectangles are areas that contain cells that have changed since the last reset. The dirty rectangles are used internally by display drivers to optimise rendering by avoiding to redraw the whole screen. Once the display driver has rendered the canvas, it resets the dirty rectangle list. Dirty rectangles are guaranteed not to overlap. This function never fails. Parameters: cv A libcaca canvas. Returns: The number of dirty rectangles in the given canvas. __extern int caca_get_dirty_rect (caca_canvas_t *cv, intr, int *x, int *y, int *width, int *height) Get the canvas's given dirty rectangle coordinates. The index must be within the dirty rectangle count. See caca_get_dirty_rect_count() for how to compute this count. If an error occurs, no coordinates are written in the pointer arguments, -1 is returned and errno is set accordingly: o EINVAL Specified rectangle index is out of bounds. Parameters: cv A libcaca canvas. r The requested rectangle index. x A pointer to an integer where the leftmost edge of the dirty rectangle will be stored. y A pointer to an integer where the topmost edge of the dirty rectangle will be stored. width A pointer to an integer where the width of the dirty rectangle will be stored. height A pointer to an integer where the height of the dirty rectangle will be stored. Returns: 0 in case of success, -1 if an error occurred. __extern int caca_add_dirty_rect (caca_canvas_t *cv, intx, inty, intwidth, intheight) Add an invalidating zone to the canvas's dirty rectangle list. For more information about the dirty rectangles, see caca_get_dirty_rect(). This function may be useful to force refresh of a given zone of the canvas even if the dirty rectangle tracking indicates that it is unchanged. This may happen if the canvas contents were somewhat directly modified. If an error occurs, -1 is returned and errno is set accordingly: o EINVAL Specified rectangle coordinates are out of bounds. Parameters: cv A libcaca canvas. x The leftmost edge of the additional dirty rectangle. y The topmost edge of the additional dirty rectangle. width The width of the additional dirty rectangle. height The height of the additional dirty rectangle. Returns: 0 in case of success, -1 if an error occurred. Referenced by caca_blit(), caca_clear_canvas(), caca_fill_box(), caca_flip(), caca_flop(), caca_free_frame(), caca_invert(), caca_put_attr(), caca_put_char(), caca_rotate_180(), caca_rotate_left(), caca_rotate_right(), caca_set_canvas_boundaries(), caca_set_frame(), caca_stretch_left(), and caca_stretch_right(). __extern int caca_remove_dirty_rect (caca_canvas_t *cv, intx, inty, intwidth, intheight) Mark a cell area in the canvas as not dirty. For more information about the dirty rectangles, see caca_get_dirty_rect(). Values such that xmin > xmax or ymin > ymax indicate that the dirty rectangle is empty. They will be silently ignored. If an error occurs, -1 is returned and errno is set accordingly: o EINVAL Specified rectangle coordinates are out of bounds. Parameters: cv A libcaca canvas. x The leftmost edge of the clean rectangle. y The topmost edge of the clean rectangle. width The width of the clean rectangle. height The height of the clean rectangle. Returns: 0 in case of success, -1 if an error occurred. __extern int caca_clear_dirty_rect_list (caca_canvas_t *cv) Empty the canvas's dirty rectangle list. This function never fails. Parameters: cv A libcaca canvas. Returns: This function always returns 0. Referenced by caca_refresh_display(). Author Generated automatically by Doxygen for libcaca from the source code. Version 0.99.beta18 Fri Apr 6 2012 libcaca dirty rectangle manipulation(3caca)
All times are GMT -4. The time now is 05:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy