Video display modes: Difference between revisions

m
→‎{{header|Wren}}: Removed a blank line
m (→‎{{header|Wren}}: Minor tidy)
m (→‎{{header|Wren}}: Removed a blank line)
 
(One intermediate revision by the same user not shown)
Line 1,010:
=={{header|Wren}}==
The ability to call external processes such as ''xrandr'' is expected to be added to Wren-cli in the next release. In the meantime, we embed the following Wren script in a minimal C host (no error checking) to complete this task.
<syntaxhighlight lang="ecmascriptwren">/* Video_display_modes.wren */
 
class C {
Line 1,035:
We now embed this in the following C program, compile and run it.
<syntaxhighlight lang="c">/* gcc Video_display_modes.c -o Video_display_modes -lwren -lm */
 
 
#include <stdio.h>
9,482

edits