Window creation/X11: Difference between revisions
Content added Content deleted
(removed "Icon and Unicon" because the task is about interacting with the X server in a low level way with for example Xlib or XCB, here this example is the same than on the page "Window_creation") |
|||
Line 123: | Line 123: | ||
threadDelay (5000000)</lang> |
threadDelay (5000000)</lang> |
||
== Icon and Unicon == |
|||
Icon and Unicon windowing is portable between Windows and X-Windows environments. |
|||
==={{header|Icon}}=== |
|||
<lang Icon>link graphics |
|||
procedure main(arglist) |
|||
WOpen("size=300, 300", "fg=blue", "bg=light gray") |
|||
WWrite(" Hello world") |
|||
WDone() |
|||
end</lang> |
|||
{{libheader|Icon Programming Library}} |
|||
[http://www.cs.arizona.edu/icon/library/src/gprocs/graphics.icn graphics is required ] |
|||
==={{header|Unicon}}=== |
|||
This Icon solution works in Unicon. |
|||
{{improve|Unicon|The example is correct; however, Unicon implemented additional graphical features and a better example may be possible.}} |
|||
=={{header|OCaml}}== |
=={{header|OCaml}}== |