Sponsored Content
Full Discussion: Help with Signals
Top Forums UNIX for Advanced & Expert Users Help with Signals Post 302844196 by wisecracker on Saturday 17th of August 2013 04:37:06 AM
Old 08-17-2013
That has answered it:-

Code:
^M == <CR>, 0x0D...
^[ == Esc, 0x1B...
[7m == Reverse Video...

" Interrupt " == Purely a warning print to the window/screen in reverse video including spaces.

^[ == Esc, 0x1B...
[27m == Normal video...

Perfectly normal piece of *NIX shell scripting I would have thought, except it looks as though it is generated on a Windows machine because of the ^M part.

Look up ANSI escape codes and video modes...
 

10 More Discussions You Might Find Interesting

1. Programming

Signals In HP-UX

does the way of handling, interrupting signals in HP-UX same as that of solaris. If there is difference than what it is.?:confused: (1 Reply)
Discussion started by: kapilv
1 Replies

2. UNIX for Dummies Questions & Answers

Signals...

(posted this in the scripting forum as well, but figured it should go here) So, what's going on is this: For our program, we had to create our own shell, and if the user pressed ctrl-c just at the cmdline, then this signal would be ignored, but if there is a foreground process running, let's... (0 Replies)
Discussion started by: blind melon
0 Replies

3. Programming

Using Signals

How can use signals in a C program If i want a child program to signal it's parent program that it(child) program has completed the task that it was assigned.:confused: (2 Replies)
Discussion started by: kapilv
2 Replies

4. UNIX for Dummies Questions & Answers

threads and signals

can any one give me an example of a concurrency program in threads and signals, i.e how to deliver messages between threads using signals. thanks (0 Replies)
Discussion started by: moe_7
0 Replies

5. Programming

threads and signals

can any one give me an example of a concurrency program in threads and signals, i.e how to deliver messages between threads using signals. thanks (2 Replies)
Discussion started by: moe_7
2 Replies

6. OS X (Apple)

How to debug signals

Hi, In our program, we are using SIGTERM and i tired to put break point in this function. But my debuger is unable to brake at that point. I am working on Mac X and using XCode. Thanks (0 Replies)
Discussion started by: Saurabh78
0 Replies

7. Programming

Can we debug Signals

Hi, In our program, we are using SIGTERM and i tired to put break point in this function. But my debuger is unable to brake at that point. I am working on Mac X and using XCode. Thanks (1 Reply)
Discussion started by: Saurabh78
1 Replies

8. UNIX for Dummies Questions & Answers

Help understanding signals

I am having trouble with folowing sigset_t s; // now s represents set of signals sigemptyset(&s) ; // initialize this set and exclude all the signals from it.is it empty? sigaddset(&s,SIGILL);//this set containts only SIGILL signal sigprocmask(SIG_BLOCK,&s,NULL);//lost on this one Can... (3 Replies)
Discussion started by: joker40
3 Replies

9. UNIX for Dummies Questions & Answers

perror with signals

I have following problem with this code.. First time trough the main loop..... perror gives ....blocked signal:success(all other times gives illlegal seek) Should every time trought the main loop be success?? And the perror otside of main loop...didn't change mask:success That line of code... (2 Replies)
Discussion started by: joker40
2 Replies

10. UNIX for Dummies Questions & Answers

Blocking signals

I know how to add signal to a set. But what if I want to add 2 or 3 signals to the set. I know I can use sigaddset (&set,SIGBUS)....but what if I want to add SIGBUS and SIGALRM at once. Do i have to do it like this.. sigaddset (&set,SIGBUS); sigaddset (&set,SIGALRM); Is there another way to... (0 Replies)
Discussion started by: joker40
0 Replies
Xv(3X)																	    Xv(3X)

Name
       Xv - X Window System video extension

Description
       The  Xv	extension provides support for video adaptors attached to an X display.  It takes the approach that a display may have one or more
       video adaptors, each of which has one or more ports through which independent video streams pass.

       An adaptor may be able to display video in a drawable, capture video from a drawable, or both.  It translates between video encoding (NTSC,
       PAL,  SECAM,  etc...) and drawable format (depth and visual-id pair). An adaptor may support multiple video encodings and/or multiple draw-
       able formats.

       Clients use Xv(3X) to gain access and manage sharing of a display's video resources.  Typically, a client will use XvQueryExtension(3X)	to
       determine  the  status of the extension, XvQueryAdaptors(3X) to get a description of what video adaptors exist, and XvQueryEncodings(3X) to
       get a description of what video encodings an adaptor supports.

       Once a client has determined what video resources are available, it is free to put video into a drawable or  get  video	from  a  drawable,
       according  the  capabilities  supported.   Clients  can	select	to  receive events when video activity changes in a drawable and when port
       attributes have changed.

Summary of Library Functions
       The following is a summary of Xv library functions:

       XvGetPortAttribute(3X) - return current port attribute value

       XvGetStill(3X) - capture a single frame of video from a drawable

       XvGetVideo(3X) - capture video from a drawable

       XvGrabPort(3X) - lock port for exclusive use by client

       XvPortNotify(3X) - event generated when port attributes change

       XvPutStill(3X) - write a single frame of video to a drawable

       XvPutVideo(3X) - write video into a drawable

       XvQueryAdaptors(3X) - return adaptor information for a screen

       XvQueryBestSize(3X) - determine the optimum drawable region size

       XvQueryEncodings(3X) - return list of encodings for an adaptor

       XvQueryExtension(3X) - return version and revision of extension

       XvSelectPortNotify(3X) - enable or disable XvPortNotify events

       XvSelectVideoNotify(3X) - enable or disable XvVideoNotify events

       XvSetPortAttribute(3X) - set an attribute for a port

       XvStopVideo(3X) - stop active video

       XvUngrabPort(3X) - release a grabbed port

       XvVideoNotify(3X) - event generated for video processing

       Each of these functions is described in its own Xv man page.

XFree86 							   Version 4.7.0							    Xv(3X)
All times are GMT -4. The time now is 10:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy