Sponsored Content
Top Forums UNIX for Dummies Questions & Answers set background/foreground color in .profile Post 80946 by dvella on Sunday 14th of August 2005 07:12:17 PM
Old 08-14-2005
Thank you for your assistance Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

problems with ctrl-z, to switch foreground, background

my shell is /sbin/sh. i added stty susp '^Z' with the intention of being able to switch between foreground and background. but the result was strange. i had 2 servers. one is sun the os is 8 and the other is hpux v11. both of them had the same shell. but on hpux, it works perfectly fine while... (9 Replies)
Discussion started by: yls177
9 Replies

2. Shell Programming and Scripting

how to get background job to foreground

hi, i am just wondering that wen we give the following code we make a process run in background...can the viceversa be performed?i.e can this be made foreground again # sleep 75& 21751 # (4 Replies)
Discussion started by: sandilya
4 Replies

3. Shell Programming and Scripting

Background and Foreground of a process within a script

I'm not sure if it is even possible but I figured if it was someone here would know how to do it... I am running a script which starts a bunch of processes in the background but there is one process I would like to bring back to the foreground when complete. Unfortunately the process that I... (2 Replies)
Discussion started by: ctruhn
2 Replies

4. Shell Programming and Scripting

how to set background color in Unix terminal

Hi All, how do I set in .profile file Unix terminal background color = BLUE ? Please advice me. :confused: (2 Replies)
Discussion started by: raghur77
2 Replies

5. UNIX for Advanced & Expert Users

what is the diff b/w background and foreground process

What are all the difference between a Background and Foreground processes ?! A Background process does not have access to STDIN and OUT.. What else ? Is there any detailed description available somewhere ? (5 Replies)
Discussion started by: onequestion
5 Replies

6. Shell Programming and Scripting

Send Foreground job to background redirecting output

I have many CPU intensive processes running and sometimes I run them in the foreground so that I can see what the output is. I want to send that foreground process to the background, but also have it direct the output to a logfile. I know to send something to the bg I do Ctrl-z on the FG... (6 Replies)
Discussion started by: jhullbuzz
6 Replies

7. Shell Programming and Scripting

How can put a background process to the foreground

Hi, guys: I am working on my own shell using c. When I put a process into the background, how can I put it back to the foreground using tcsetpgrp? Thanks (3 Replies)
Discussion started by: tomlee
3 Replies

8. Shell Programming and Scripting

Move shell script from foreground to background

Hi, Need an urgent help. I have a program executing in foreground. I need to execute it in background and also to remove terminal dependency. Thanks In advance. 116@434 (7 Replies)
Discussion started by: 116@434
7 Replies

9. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies

10. Shell Programming and Scripting

[Solved] Background and foreground colors for xterm

Hi all, I used the code given by cfajohnson on this forum to generate background colors for xterm. Thanks cfajohnson... (sorry wasnt allowed to past the complete url) n=200 ## adjust to taste: higher value, lighter background n1=$(( 256 - $n )) bg=$( printf "#%x%x%x\n" $(( $RANDOM % $n1 +... (2 Replies)
Discussion started by: carv_13
2 Replies
IEEE1284_TRANSFER(3)						     Functions						      IEEE1284_TRANSFER(3)

NAME
ieee1284_nibble_read, ieee1284_compat_write, ieee1284_byte_read, ieee1284_epp_read_data, ieee1284_epp_write_data, ieee1284_epp_read_addr, ieee1284_epp_write_addr, ieee1284_ecp_read_data, ieee1284_ecp_write_data, ieee1284_ecp_read_addr, ieee1284_ecp_write_addr - data transfer functions SYNOPSIS
#include <ieee1284.h> ssize_t ieee1284_nibble_read(struct parport *port, int flags, char *buffer, size_t len); ssize_t ieee1284_compat_write(struct parport *port, int flags, const char *buffer, size_t len); ssize_t ieee1284_byte_read(struct parport *port, int flags, char *buffer, size_t len); ssize_t ieee1284_epp_read_data(struct parport *port, int flags, char *buffer, size_t len); ssize_t ieee1284_epp_write_data(struct parport *port, int flags, const char *buffer, size_t len); ssize_t ieee1284_epp_read_addr(struct parport *port, int flags, char *buffer, size_t len); ssize_t ieee1284_epp_write_addr(struct parport *port, int flags, const char *buffer, size_t len); ssize_t ieee1284_ecp_read_data(struct parport *port, int flags, char *buffer, size_t len); ssize_t ieee1284_ecp_write_data(struct parport *port, int flags, const char *buffer, size_t len); ssize_t ieee1284_ecp_read_addr(struct parport *port, int flags, char *buffer, size_t len); ssize_t ieee1284_ecp_write_addr(struct parport *port, int flags, const char *buffer, size_t len); DESCRIPTION
This set of functions is for tranferring bytes in the relevant transfer mode. For ECP and EPP modes two types of transfer are possible: data and address (usually referred to as channel in ECP). The supplied port must be a claimed port. The supplied buffer must be at least len bytes long. When reading, the transferred data is stored in the buffer; when writing the data to be transferred is taken from the buffer. For reads (peripheral to host): if no data is available and F1284_NONBLOCK is not in effect, the inactivity timer is started. If data becomes available before the inactivity time-out elapses it is read; otherwise the return value will be E1284_TIMEDOUT. For writes (host to peripheral): if the peripheral is not willing to accept data and F1284_NONBLOCK is not in effect, the inactivity timer is started. If the peripheral indicates that it is willing to accept data before the inactivity time-out elapses it is sent; otherwise the return value will be E1284_TIMEDOUT The flags may alter the behaviour slightly: F1284_NONBLOCK For reads (peripheral to host): if no data is available, return immediately (with E1284_TIMEDOUT). For writes (host to peripheral): if the peripheral is not willing to accept data, return immediately (with E1284_TIMEDOUT). F1284_SWE Don't use hardware assistance for the transfer, but instead set the parallel port pins according to the wire protocol. F1284_RLE (for ECP only) Use run length encoding. If the peripheral is in ECP mode with RLE, calls to ieee1284_ecp_read_data must set this flag in order for the RLE from the peripheral to be interpreted correctly, and calls to ieee1284_ecp_write_data may set this flag in order to take advantage of RLE. F1284_FASTEPP (for EPP only) Use multi-byte transfers. Several bytes at a time are transferred using hardware assistance, if supporting hardware is present. The price of this increased speed is that the return value will be less reliable when this flag is used. For ECP mode, a given direction is in force at any particular time, and it is up to the application to ensure that it is only writing when in forward mode, and reading when in reverse mode. RETURN VALUE
The return value is the number of bytes successfully transferred or, if negative, one of: E1284_NOTIMPL This transfer mode and flags combination is not yet implemented in libieee1284. E1284_TIMEDOUT Timed out waiting for peripheral to handshake. E1284_NOMEM Not enough memory is available. E1284_SYS There was a problem at the operating system level. The global variable errno has been set appropriately. E1284_INVALIDPORT The port parameter is invalid (for instance, perhaps the port is not claimed). If any bytes are successfully transferred, that number is returned. An error is returned only if no bytes are transferred. For host-to-peripheral transfers, all data is at the peripheral by the time the call returns. SEE ALSO
ieee1284_ecp_fwd_to_rev(3) AUTHOR
Tim Waugh <twaugh@redhat.com> Author. COPYRIGHT
Copyright (C) 2001-2003 Tim Waugh 09/18/2007 IEEE1284_TRANSFER(3)
All times are GMT -4. The time now is 03:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy