Sponsored Content
Top Forums Shell Programming and Scripting I tried to add a permenat alais to the bashrc Post 302932064 by jtsmith90 on Monday 19th of January 2015 01:24:07 AM
Old 01-19-2015
O joined then realized that I already had an account silly move.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

from bashrc to sh..??

:) as soon as i installed my software a couple of weeks ago.. (fedora core 2 vs, 2.6.8-1.521) i decided to switch the shell to sh shell and i know that .bashrc is the bash profile file(???) i want to use the sh version of the same file and make it the main profile file.. how can I switch it and... (3 Replies)
Discussion started by: moxxx68
3 Replies

2. UNIX for Dummies Questions & Answers

Having trouble with .bashrc

hey guys, Im trying to find all my .bashrc files in the home directory. ~/etc/bash.bashrc is the only thing i can find but its outside of my /home Could the files be hidden? I want to see all my .bashrc files in my /home structure... <cries> (5 Replies)
Discussion started by: oxoxo
5 Replies

3. UNIX for Dummies Questions & Answers

.bashrc question

Hi, I was instructed to find all the .bashrc files on my system, that MODIFY the PS1 varaible. here is what i've come up with so far: ls / .bashrc -print woo. But thats not all. I need to display the full file name ( Including the full path ) and protection. - I can display... (4 Replies)
Discussion started by: oxoxo
4 Replies

4. UNIX for Dummies Questions & Answers

.bashrc revisisted

hey guys, i've tried countless times to do this and have come up with: find / type -f ".bashrc" -exec grep PS1 '{}' \; 2>/dev/null | ls -l which tells bash: find all the files in the system with the name .bashrc and look for modifcations to PS1 and terminate and rediret error msgs... (8 Replies)
Discussion started by: oxoxo
8 Replies

5. Ubuntu

/etc/bashrc umask

Hi, I got this redhat ent 4 assigned to me now. /etc/bashrc if ; then umask 022 else umask 077 fi What does it mean? I created already three user and it never had 022 umask, always 077. Thank you in advance. (3 Replies)
Discussion started by: itik
3 Replies

6. Shell Programming and Scripting

how do i look for my .bashrc file

hi i am using cygwin and would like to modify my .bashrc file. How can search to find where it is? I have looked at multiple bashrc file in /etc but none of them seemed to work..thanks (12 Replies)
Discussion started by: npatwardhan
12 Replies

7. Shell Programming and Scripting

bashrc

i have made a few changes to my bashrc file...have set a few environmental variable that my shell scripts use. Is there any way that these changes can reflect in evryone else's bashrc who are in the network or do all of them have to copy those changes to their own bashrc file. (2 Replies)
Discussion started by: lassimanji
2 Replies

8. Shell Programming and Scripting

.bashrc file

Hi experts, I am using bash shell and I cant find any .bashrc file in my home dir. Can anybody please help me out here.... If .bashrc file is not there, from where my shell config operates? Also I want to set my prompt like... $ Please advice. (5 Replies)
Discussion started by: gentleDean
5 Replies

9. Fedora

.bashrc in Ubuntu 14.04

I am getting this: cmccabe@DTV-A5211QLM:~$ cat ~/.bashrc Command 'cat' is available in '/bin/cat' The command could not be located because '/bin' is not included in the PATH environment variable. cat: command not found cmccabe@DTV-A5211QLM:~$ nano .bashrc Command 'nano' is available in... (9 Replies)
Discussion started by: cmccabe
9 Replies

10. UNIX for Advanced & Expert Users

.bashrc questions

Are there any advantages of doing one over the other in your .bashrc? They both seem to do the same thing. HISTFILESIZE=10000 HISTSIZE=10000export HISTFILESIZE=10000 export HISTSIZE=10000 (4 Replies)
Discussion started by: cokedude
4 Replies
XtRealizeWidget()														 XtRealizeWidget()

Name
  XtRealizeWidget - realize a widget instance.

Synopsis
  void XtRealizeWidget(w)
	 Widget w;

Inputs
  w	    Specifies the widget to be realized.  Must be of class Core or any subclass thereof.

Description
  XtRealizeWidget()  creates windows for the specified widget and all of its descendants.  If the specified widget is already realized, XtRe-
  alizeWidget() simply returns.  When a widget is first created, no X window is created along with it.	Realizing a widget is  the  term  for
  creating this window, and no widget can appear on the screen until it is realized.  The reason widget creation and window creation are han-
  dled separately is one of efficiency: when an interface is first created, there is an initial process of negotiating geometry and assigning
  a layout to each widget.  If the widgets had windows at this point, the geometry negotiation would require many XConfigureWindow() calls to
  the X server, which would significantly slow down application startup time.

  The "Algorithm" section below describes the procedure followed by XtRealizeWidget().

Usage
  Most applications will call XtRealizeWidget() once just prior to calling XtAppMainLoop() to process events.  The argument to	XtRealizeWid-
  get()  is  usually  the top-level widget returned from XtAppInitialize().  If more widgets are subsequently created, they do not need to be
  realized because when a widget is created as the child of a realized widget, it is automatically realized.  Popup shells are also automati-
  cally realized, if necessary, when they are popped up.

  You can test whether a widget is realized with XtIsRealized().  Until a widget is realized, certain functions will not operate as expected.
  XtWindow(), for example will not return a valid window if called with an unrealized widget.

  You can unrealize a widget (destroy its window) but leave the widget structure intact with XtUnrealizeWidget().

Algorithm
  If the widget is already realized, XtRealizeWidget() simply returns.	Otherwise it performs the following:

  o  Binds all action names in the widget's translation table to procedures.

  o  Makes a postorder traversal of the widget tree rooted at the specified widget and calls each non-NULL  change_managed()  method  of  all
     composite widgets that have one or more managed children.

  o  Constructs  an  XSetWindowAttributes  structure  filled  in with information derived from the Core widget fields and calls the realize()
     method for the widget, which adds any widget-specific attributes and creates the X window.

  o  If the widget is not a subclass of compositeWidgetClass, XtRealizeWidget() returns; otherwise it continues and performs the following:

     -	Descends recursively to each of the widget's managed children and calls the realize() methods.	Primitive  widgets  that  instantiate
	children are responsible for realizing those children themselves.

     -	Maps  all  of  the  managed  children  windows that have mapped_when_managed True.  If a widget is managed but mapped_when_managed is
	False, the widget is allocated visual space but is not displayed.

  If the widget is a top-level shell widget (that is, it has no parent), and mapped_when_managed is True, XtRealizeWidget() maps  the  widget
  window.

  XtCreateWidget(), XtVaCreateWidget(), XtRealizeWidget(), XtManageChildren(), XtUnmanageChildren(), XtUnrealizeWidget(), XtSetMappedWhenMan-
  aged(), and XtDestroyWidget() maintain the following invariants:

  o  If a composite widget is realized, then all its managed children are realized.

  o  If a composite widget is realized, then all its managed children that have mapped_when_managed True are mapped.

  All Intrinsics functions and all widget routines should accept either realized or  unrealized  widgets.   When  calling  the	realize()  or
  change_managed()  methods  for children of a composite widget, XtRealizeWidget() calls the procedures in reverse order of appearance in the
  CompositePart children list.	By default, this ordering of the realize procedures will result in the stacking order of  any  newly  created
  subwindows being top-to-bottom in the order of appearance on the list, and the most recently created child will be at the bottom.

See Also
  XtIsRealized(1), XtUnrealizeWidget(1),
  realize(4).

Xt - Widget Lifecycle														 XtRealizeWidget()
All times are GMT -4. The time now is 05:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy