# PetscGetDisplay
Gets the X windows display variable for all processors. 
## Synopsis
```
PetscErrorCode PetscGetDisplay(char display[], size_t n)
```

## Input Parameters

- ***n -*** length of string display



## Output Parameters

- ***display -*** the display string



## Options Database Keys

- ***-display <display> -*** sets the display to use
- ***-x_virtual -*** forces use of a X virtual display Xvfb that will not display anything but -draw_save will still work. Xvfb is automatically
started up in PetscSetDisplay() with this option





## See Also
 `PETSC_DRAW_X`, `PetscDrawOpenX()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/pdisplay.c.html#PetscGetDisplay">src/sys/utils/pdisplay.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/pdisplay.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
